The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#21
|
||||
|
||||
Yes, I made sure it was before I did the code.
|
#22
|
||||
|
||||
hmm, i haven't made more changes, so this should work
here is the whole block: Code:
$replacearray = array( "createlists('\\7', '\\5')", "createlists('\\4')", "checkurl('\\5', '\\7')", "checkurl('\\4')", "stripbrsfromcode('" . iif(islicensed(), "\\5", addslashes(gettemplate('unlicensed_viewcode', 0, 0))) . "')", "phphighlite(stripslashes(addslashes('" . iif(islicensed(), "\\5", addslashes(gettemplate('unlicensed_viewcode', 0, 0))) . "')))", "sqlhighlite('" . iif(islicensed(), "\\5", addslashes(gettemplate('unlicensed_viewcode', 0, 0))) . "')", "java script:", "about :", "vbscript :" ); |
#23
|
||||
|
||||
Could this be my problem?
I'm using this for the condition. iif($bbuserinfo[usergroupid]==6 |
#24
|
||||
|
||||
logout button doesn't log me out
|
#25
|
||||
|
||||
nope bob, it would just be a problem if bbuserinfo isn't global
@drives fast: your cookie might be corrupted delete it manually |
#26
|
||||
|
||||
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? |
#27
|
||||
|
||||
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 |
#28
|
||||
|
||||
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.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|