View Full Version : Specific Directory Links?
Hey Everyone,
I am wondering if there is a way to show certain link or ad for each specific category even if just in the template file. is there an {if category= kind of statment that i could use?
thanks in advance for any help you can offer.
Jaii
Steven Myers
08-23-2006, 11:15 PM
You want to display an ad on the top or bottom of each category? correct me if I am wrong, I am kind of lost on this one.
Content visible to registered users only.
There is a banner ad MOD that David provided. I think it's in the supporters forum (e.g. $10 entrance)
Content visible to registered users only.
Sorry i realise that was not the most precise message, What i would like to do is have certain text links displayed based on the category the user is browsing outside of the regular link and featured links. not necessarily a banner, perhaps a table with links in it, etc ,etc
gearoid
08-26-2006, 04:13 PM
Hi jaii,
Taken from the latter half of http://www.phplinkdirectory.com/kb/Making_Template_Changes_to_the_Front_Page_Only.htm l
we see this;
"
Using this same principle, you could also choose to make certain content appear only in a specific category.
For example, where the category ID is 1:
{if $category.ID eq 1 and not $p and not $q}
Place the content that you only want to appear on the fro
{/if}
"
So for example, (or the way I understand it),
is that you could add a number of such statement into your main.tpl,
one after another.
With mod rewrite "on", you could find the specific category id (number), by searching through phpmyadmin until you find the category (and its ID number) in question (there may be one, or hundreds, depending on your directory and its subcategory structure).
One statement for each desired effect.
vBulletin® v3.8.0, Copyright ©2000-2012, Jelsoft Enterprises Ltd.