The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
Is it possible to write a conditional statement in a template based on which page the template is being viewed in?
e.g. IF pageviewed = 'main index' THEN 'do this' ELSE 'do that' All help appreciated. |
|
#2
|
||||
|
||||
|
yes, you can use the THIS_SCRIPT constant which is set at the top of all the main files.
|
|
#3
|
||||
|
||||
|
Quote:
<if condition="THIS_SCRIPT == index"> code for the forumhome/index <else /> Every other page </if> |
|
#4
|
|||
|
|||
|
Thanks for your help, it worked like a charm
|
![]() |
|
|