![]() |
A PHP if statement that works outside of vbulletin but not in my header
I have this statement
Code:
<?php This is the error I'm getting Code:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in XXXX/forum/includes/adminfunctions_template.php(3939) : eval()'d code on line 16 Thanks. |
You cannot put php code in templates.
|
Use this,
Code:
<if condition="THIS_SCRIPT == 'showthread'"> |
Thanks guys that worked perfectly. I didn't realise I couldn't put PHP code into the templates.
Thanks again. |
All times are GMT. The time now is 06:20 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:
|