Andy wrote:
If you wanna do it every 5 links, for example - just re-use the same kinda code: Code:
<%if row_num == 5 or row_num == 10 or row_num == 15 or row_num == 20 or row_num == 25%> ..show code here
<%endif%>
Obviously this assumes you have 25 records per page (as standard)
Cheers
I know this is an old message, but I've seen this come up a few times, and I know I've done something similar on several of my sites, but I used something like:
Code:
<%ifnot row_num % 5 %> ....show advert code here....
<%endif%>
So, until the remainder is "0" no ad will show. So, every 5th link, 5 % 5 = 0. 10%5=0,. etc will show an ad.
If you make the "5" a global, such as $skip_links, you can set the number of links per page and the number of links to skip from the admin interface, without editing the template again.
Code:
<%ifnot row_num % $skip_links %> ....show advert code here....
<%endif%>
PUGDOG� Enterprises, Inc.
The best way to contact me is to NOT use Email.
Please leave a PM here.