Log in

View Full Version : Modifying Footer template


ram94401
11-06-2008, 12:34 AM
I want to modify footer template to execute a script based on a condition. This "conditional" thing is tricky. I am not sure how to do it. I want to execute a iframe script if the footer is displayed only on /forums/faq.php or /forums/register.php; Any idea / pointers will be very much appreciated. Thanks!

SEOvB
11-06-2008, 12:44 AM
<if condition="THIS_SCRIPT == SCRIPTNAME">
Execute code
</if>

You can generally find script names at the top of the .php file (and vBulletin usually names their scripts according to the actual .php file, ie: faq.php scriptname is faq)

<if condition="THIS_SCRIPT == faq">
Execute Code
</if>

ram94401
11-06-2008, 01:06 AM
Hi FRDS, Thanks a lot! That was really fast!! It worked perfectly...

Brandon Sheley
11-06-2008, 01:55 AM
Here is a list of other vBulletin Template Conditions (http://forum.vbulletinsetup.com/f18/vbulletin-template-conditionals-list-2185.html) for further customization.