djtheropy
06-24-2006, 03:00 PM
this is just something i have in place on one of my directories so thought i would share with everyone else.
what it does is if there is no featured link for the selected category it will show an ad of your choice instead.
(Demo of cat with feat. link -> here (http://www.justanotherlink.com/d/Internet/Directories/Paid/))
(Demo of cat with ad instead -> here (http://www.justanotherlink.com/d/Internet/SEO/Companies/))
firstly create a new template file (i named mine google-feat.tpl) in this file place the code for your ads (if using adsense a leaderboard ad is best)
then open up main.tpl and edit the template as follows (note: the way the following is laid out might be different in the template you are using)
look for the following;
Content visible to registered users only.
now before the {/if} and in;
Content visible to registered users only.
it should look similar to;
Content visible to registered users only.
what it does is if there is no featured link for the selected category it will show an ad of your choice instead.
(Demo of cat with feat. link -> here (http://www.justanotherlink.com/d/Internet/Directories/Paid/))
(Demo of cat with ad instead -> here (http://www.justanotherlink.com/d/Internet/SEO/Companies/))
firstly create a new template file (i named mine google-feat.tpl) in this file place the code for your ads (if using adsense a leaderboard ad is best)
then open up main.tpl and edit the template as follows (note: the way the following is laid out might be different in the template you are using)
look for the following;
Content visible to registered users only.
now before the {/if} and in;
Content visible to registered users only.
it should look similar to;
Content visible to registered users only.