Quote:
Originally Posted by utahwildlife
I am trying to insert a an unique image heard for each of main page, HOME, Forum, What's New etc. How would you do that with condition?
Fore example: If you are on the Home page include home heard image, If you are on the Forum page include Forum image, and so on.
Please see attachments.
|
You'd use this condition:
Code:
<vb:if condition="THIS_SCRIPT == 'calendar'">Show this only on calendar.php</vb:if>
You need to find out what the script names are for each page you want to show... I think home is "index" and forums is "forumdisplay"
So basically...
Code:
<vb:if condition="THIS_SCRIPT == 'index'">Image 1</vb:if>
<vb:if condition="THIS_SCRIPT == 'forumdisplay'">Index 2</vb:if>
Any other pages (like "showthread" and "calendar") won't show an image at all...
--------------- Added [DATE]1285699615[/DATE] at [TIME]1285699615[/TIME] ---------------
NEW POST HERE-- Stupid Auto Merge
FYI This is a useful conditional if you want to hide the Facebook Like button in forums that aren't open to the public. If someone "Likes" a thread in a private forum people will be greeted with a no-permission "have to register" message which usually people will just get annoyed at rather than register. In fact if it's a private forum they may not even have access even after registering.
To use this conditional edit the SHOWTHREAD template... find the code:
Code:
<vb:if condition="$show['fb_likebutton']">
and change it too:
Code:
<vb:if condition="$show['fb_likebutton'] AND !in_array($threadinfo['forumid'], array(3,4,5))">
Where 3,4,5 are forum id's of the forums you want to hide the button in.