View Full Version : Hiding template elements
fordp
05-22-2007, 04:10 AM
Is there a way, without making two templates, to insert an if else statement that could hide template elements when displayed on your vbadvanced homepage? For example, I want to hide the pathway (to the left of the login box) on the homepage
Brian
05-22-2007, 12:27 PM
I'm sorry, but I'm not sure what you mean by "pathway"...
fordp
05-22-2007, 01:09 PM
I want to hide where, for example on this thread, it says
"vBadvanced Forums > vBadvanced Products > vBadvanced CMPS > vBadvanced CMPS v3.0 > "How Do I..." Questions > Hiding template elements"
Brian
05-22-2007, 02:46 PM
<if condition="THIS_SCRIPT != 'adv_index'">
Code you don't want on the CMPS here
</if>
fordp
05-22-2007, 03:56 PM
Worked great, thanks brian!
Just a note for anyone who might find this thread
I had to change the code to avoid errors:
<if condition="THIS_SCRIPT != 'adv_index'">
Code you don't want on the CMPS here
</if>
Correct me if I'm wrong
Brian
05-22-2007, 04:22 PM
Ahhh, sorry about that. Yes, the " was missing from the end.
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.