Conditionals on mod (THIS_SCRIPT)
vBulletin allows the use of <if condition="THIS_SCRIPT == 'page'">
to display different things based on the current page.
How do I get the similar affect with vBAdvanced?
They wouldn't provide any support to me since it's a mod.
I installed the vBAdvanced Homepage mod which is at: mydomain.com/index.php. All of the regular forum pages are at: mydomain.com/forum/xxx.php
I added the following to the phpinclude_start template:
define('THIS_SCRIPT2', '../page');
I wanted to use the same header file for all pages instead of the index_header on the vBAdvance page. In the header template, I added:
<if condition="$THIS_SCRIPT2 == 'index'">
do something
<else />
do this instead
</if>
It doesn't work. Am I doing something wrong?
|