View Full Version : advertisement in link detail page
wyszukaj
08-18-2006, 07:02 PM
Hello!
I need to place advert., only in the link details page, not display on main and category page.
Place for the advert. is on the right (greenleves template) on the place where display sponsored links (on category or main page view).
http://www.wyszukaj.com/place.gif
I think, i must edit footer.tpl, but i don't know how ({if} - {foreach}).
BR
Tomek
{if $link.id eq 3}
some html content for this link only
{/if}
Now what ever you place between the "if's" will only show for that link, in this case link "#3" Of course you could have many of these as you want. To find link id just mouseover the edit button for that link and look down at the lower left corner of screen (addy url?) That will show link id and category id.
So find this in footer.tpl
<td valign="top" height="10%" class="column">
And add this code just below it:
<div class="box">
<div class="box-content">
{if $link.id eq 3}
put ad code here
{/if}
</div>
</div>
That should work. But that is for specific links, The only other way I can think of is to create another footer.tpl and at the bottom of view-link.tpl you'll see:{include file="footer.tpl"} Rename that to your new footer.tpl and then the same ad will show on all details pages, Let me know. :)
wyszukaj
08-18-2006, 10:48 PM
Thanks Greg!
I make this in second sugestion, i change footer.tpl for new_footer.tpl
and this work properly.
Thank You again.
Tomek
Thanks Greg!
I make this in second sugestion, i change footer.tpl for new_footer.tpl
and this work properly.
Thank You again.
Tomek
You're welcome Tomek :good:
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.