The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
What Am I Doing Wrong?
I am trying to display some general user info on a non-vb page. I called in global.php so that I could use vB variables.
Now, heres my code: PHP Code:
If I flip it, put the unregistred code on the first if statement, and move the registred code down, registred and logged in users see the login box instead of the welcome message. How do I fix it? |
#2
|
||||
|
||||
the problem is most likely the "and" in the if clause. a user can't be in both usergroup6 and 28. That should be an "or"
|
#3
|
|||
|
|||
Quote:
|
#4
|
||||
|
||||
Your using the wrong operator. In an if statement when comparing values you should use the equivalence operator (==) not the assignment operator (=)
And replace the and's with or's |
#5
|
|||
|
|||
Quote:
|
#6
|
||||
|
||||
No problem
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|