View Full Version : [3.0.3] Text link in Category


Floris
19th July 2004, 05:59 AM
How To Add A Text Link In A Category

By: Floris - http://www.vBulletin.nl/
For: vBulletin version 3.0.3

Description: This will place a text link in the right part of a category beside the collapse icon, for advertisement purposes.

Requested by: Admiral Spock

Installation Instructions:

Open the template forumhome_forumbit_level1_nopost and find this code:

<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumbit_$forumid')"><img id="collapseimg_forumbit_$forumid" src="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_forumid}.gif" alt="" border="0" /></a>

Below that code, on a new line, add this code:

<if condition="$forumid == '3'"><span class="smallfont"><a style="float:$stylevar[right]" href="banner.html" target="_blank"> < text link > </a></span></if>

Replace the forumid in the conditional with the category you want to show it in. Remove the conditional <if> and </if> tags from the above code to show the link in all the forums.

Now set your desired text link and replace banner.html with the URL to load.


Save the template and you are done.