The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
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!
|
#2
|
||||
|
||||
![]()
<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> |
#3
|
|||
|
|||
![]()
Hi FRDS, Thanks a lot! That was really fast!! It worked perfectly...
|
#4
|
||||
|
||||
![]()
Here is a list of other vBulletin Template Conditions for further customization.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|