View Full Version : conditionals based on current page?
Beowolf
03-28-2005, 01:32 PM
Is there a built in variable for the name of the page a user is on (like showthread.php) that I can use in the templates? Like:
<if condition="$vbpage['showthread.php']"> stuff </if>
Deaths
03-28-2005, 01:42 PM
Do you mean the page which the user is browsing at that time?
Beowolf
03-28-2005, 02:10 PM
Yeah. Doesn't have to have the query string, just the base page.
tgmorris
03-28-2005, 02:19 PM
Try <if condition="THIS_SCRIPT=='showthread'">stuff</if>
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.