![]() |
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.. |
Try
Code:
<if condition="$post['field6'] AND $post['field6'] != 'Example'"><div><strong>Job:</strong> $post[field6]</div></if> |
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 :( |
Hmm...it works for me. Are you sure you don't have single quotes (like in $post['field6']) somewhere outside the if condition?
|
All times are GMT. The time now is 04:14 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:
|