![]() |
I love the new "not logged in" message in code boxes...
For those of you who don't know, click "Logout" at the top, then go to:
https://vborg.vbsupport.ru/showthrea...threadid=54178 LOL:p Hilarious and cool:) Does this protect against pirates? Also - I've never noticed this before - A recent thing or a "this has been here since 1902" thing?:p Satan |
I've been meaning to ask them how they do that. Might be nice to have.
And what is this about? "A recent thing or a "this has been here since 1902" thing?" |
I have never noticed it before - I was wondering if it were a recent addition, or whether it has been here for some time;)
Satan |
I could be wrong, but I think it was there shortly after Chen handed over the reigns to the new staff.
|
Because I'm too lazy, I'm assuming that you mean the code blocks becoming hidden...which was my idea :p
|
Ok, how do you do that? The would be good to have.
|
This way, guest can view hack threads, but not download hacks or view code.
|
Ok, guys. I'll figure it out. ;)
|
Yeah, i implemented it shortly after i got the ftp details :)
The idea was by filburt, and i've implemented it in a quite easy way i think. thanks god there is the iif function ;) bob, hmm maybe i'll post the modification when i'm back at home :) |
I seem to be missing out on something here. When I logged out and tried to go to that link, I got bounced right back to the main page.
You guys don't? |
Quote:
|
Can someone tell me what it is because i hate logging out :)?
|
You'll have to log out and find out. :p
|
"You cannot view codes as long as you haven't prooved your license status!" in the code and php boxes.
A creative idea, that's for sure |
Bob here is the little part which is changed from a normal phpbox creation:
PHP Code:
you can replce the islicensed with any other condition and you can also hardcode the text, i've put it into a template, so if you do the same, you have to add the templatename to global.php template chache ;) |
[code], too?
|
Quote:
"phphighlite(stripslashes(addslashes('" . iif($bbuserinfo[usergroupid]==6, "\\5", addslashes(gettemplate('unlicensed_viewcode', 0, 0))) . "')))", |
@filburt: yes, code, php and sql tags, i just used php as the example :)
@bob: are you sure you have inserted it into the right phphighlight section? there are two of them iirc. also this is the php tag change, you won't see a difference in code tags, until you change that, too ;) |
I think so. I replaced:
PHP Code:
PHP Code:
|
Is $bbuserinfo global in that function?
|
Yes, I made sure it was before I did the code.
|
hmm, i haven't made more changes, so this should work :)
here is the whole block: Code:
$replacearray = array( |
Could this be my problem?
I'm using this for the condition. iif($bbuserinfo[usergroupid]==6 |
logout button doesn't log me out
|
nope bob, it would just be a problem if bbuserinfo isn't global
@drives fast: your cookie might be corrupted delete it manually |
LOL It's working. I logged in as another usergroup and it shows the message fine now. Now all I have to do is figure what condition to use. Thank for the code, Stefan. Any way I could get the SQL tags code from you? I have been wanting that one for a while now. ;)
I'm curious, does "iif" actually mean "if not" or something close to that? |
hmm, the sql function is made by chen, so you have to ask him if you'll get it.
the iif is a vbfunction, you can find it's definition in functions.php :) to say it in short, if the condition is true it returns the first value, else the second one |
That's what I was doing wrong. I was testing it as the Admin which was showing the code like it was supposed to instead of the template. When I tested it as a registered user, I saw the template contents. DOHH!!! ;) Thanks again, Stefan. I'll get an email off the Chen and check on the SQL code and let you know.
|
All times are GMT. The time now is 09:36 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|