PDA

View Full Version : page and date


sifuhall
12-28-2008, 08:08 PM
Are their built in variables I can call in the templates to display the page name (like FORUMHOME, etc)?

Also, is there a way to check today's date in a conditional?(for example, display an image on Dec 25th)?

Lynne
12-28-2008, 08:32 PM
each vbulletin php page has the THIS_SCRIPT variable defined at the top of the page and you can use it in the templates:
<if condition="THIS_SCRIPT=='index'">
stuff for index page
</if>

The date, however, you would probably have to test using php in a plugin.