The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
if else statement
Can anyone please tell me why this code can't pass template check? Thanks!
PHP Code:
|
#2
|
||||
|
||||
What is a "template check". And what template are you putting that in?
|
#3
|
|||
|
|||
Thanks for your reply. I added it to MEMBERINFO, when I saved the template, it gave me an error message - possibly incorrect if statement.
The following code works well: PHP Code:
PHP Code:
|
#4
|
|||
|
|||
The problem is the line with $userinfo['field6'] (not the one in the condition). I think it follows the same rules as php parsed strings, so you can either use $userinfo[field6] or {$userinfo['field6']}
|
#5
|
|||
|
|||
Yes, it's fixed the error. Thank you so much!!
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|