The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Help with this" if conditional"
Hello!
In postbit_legacy template I have put the following code to display a custom profile field. Code:
<if condition="$post['field6']"><div><strong>Job:</strong> $post[field6]</div></if> How should I change the conditional to achieve it? Sorry for my bad english.. |
#2
|
|||
|
|||
Try
Code:
<if condition="$post['field6'] AND $post['field6'] != 'Example'"><div><strong>Job:</strong> $post[field6]</div></if> |
#3
|
||||
|
||||
I get the error:
The following error occurred when attempting to evaluate this template: Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in C:\AppServ\www\forum\includes\adminfunctions_templ ate.php(3939) : eval()'d code on line 56 |
#4
|
|||
|
|||
Hmm...it works for me. Are you sure you don't have single quotes (like in $post['field6']) somewhere outside the if condition?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|