View Full Version : Is this possible? Please help!
Switch3130
10-01-2009, 05:26 PM
Welcome, FaSho (http://www.vbulletin.com/forum/member.php?u=161314).
You last visited: Yesterday at 7:37pm
Private Messages (http://www.vbulletin.com/forum/private.php): Unread 0, Total 7.
Is there a way to have this show up only in threads etc and not on the forum home page?
James Birkett
10-01-2009, 05:36 PM
Try wrapping a conditional around it (find it first).
<if condition="THIS SCRIPT != FORUMHOME">
//code
</if>
I'm not 100% sure if that's right.. but you can try it.
Switch3130
10-01-2009, 06:04 PM
The following error occurred when attempting to evaluate this template:
Parse error: syntax error, unexpected T_STRING in /home/wrestlec/public_html/includes/adminfunctions_template.php(3950) : eval()'d code on line 22
This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
This is what came up after I surrounded the <if> code around the coding in the navbar template.
James Birkett
10-01-2009, 06:09 PM
Malformed hmm.
<if condition="THIS_SCRIPT != 'index'">
//code
</if>
Try that, it's meant to be an underscore not a space and it's index not forumhome.
Switch3130
10-01-2009, 06:11 PM
Edit: That worked. Thanks so much!
James Birkett
10-01-2009, 06:14 PM
Maybe you wrapped it around the wrong statement? Post the code where you wrapped it please.
Switch3130
10-01-2009, 06:18 PM
I edited my post after I saw you put index there instead of forumhome. It's working.
Thanks!
James Birkett
10-01-2009, 06:19 PM
No problem :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.