The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#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
![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|