Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Show banner every 10 links?

Quote Reply
Show banner every 10 links?
I've been thinking about this for quite a while now. I'm wondering if it was possible to do something like;

Link
Link
Link
Link
Link
Link
Link
Link
Link
Link

BANNER

Link
Link
Link
Link
Link
Link
Link
Link
Link
Link

BANNER

Link
Link
Link
Link
Link
Link
Link
Link
Link
Link

The problem I am having, is working out how the template tags should be written.

Something like this should work to show banners alternate links;

<%if odd%>
something
<%else%>
something
banner
<%endif%>

But that is not every 10 links. Anyone got any ideas?

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Show banner every 10 links? In reply to
I assume that you are using loops. Then you can just do
Code:
<%unless row_num % 10%>
[ html for your banner ]
<%endunless%>

Ivan
-----
Iyengar Yoga Resources / GT Plugins