Gossamer Forum
Home : Products : Gossamer Links : Discussions :

How to add banner rotator ads between link listings

Quote Reply
How to add banner rotator ads between link listings
Hi All,

Does anybody have any idea how i would add a banner ad from a banner rotator (i can use phpadsnew or Ad Cycle) in between listings on a page? I know how to add them to the top or the bottom of the page but what i would like to do is to have the rotator add a banner ad say every 10 normal listings?

Any ideas at all?

Andy.
Quote Reply
Re: [otk567] How to add banner rotator ads between link listings In reply to
Hi,

I've answered this one via email, but just for everyone else who may need this, the following works fine :)

...in category.html, change

Code:
<%loop links_loop~%>
<%include link.html%>
<%~endloop%>

..to;

Code:
<%set counter = 0%>
<%loop links_loop~%>
<%set counter += 1%>
<%include link.html%>
<%if counter == 10 or counter == 20 or counter == 30%>
your banner code here
<%endif%>
<%~endloop%>

Hope that helps someone else too =)

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] How to add banner rotator ads between link listings In reply to
Brilliant! Works perfectly! Smile Smile Smile

And I LOVE the mods & files you have on your site!!! Well recommended everybody if you go take a look at them! Smile

Andy.
FemDomUtopia.com

Last edited by:

Andy: Mar 16, 2007, 4:26 AM
Quote Reply
Re: [Andy] How to add banner rotator ads between link listings In reply to
Or this can be done via build in GT::Template <%row_num%>

Code:
<%loop links_loop~%>
<%include link.html%>
<%if row_num = 10 or row_num = 20 or row_num = 30%>
your ad code here
<%endif%>
<%~endloop%>

Cheers,
Boris

Facebook, Twitter and Google+ Auth for GLinks and GCommunity | reCAPTCHA for GLinks | Free GLinks Plugins
Quote Reply
Re: [eupos] How to add banner rotator ads between link listings In reply to
Ah, I forgot about that <G> (havn't done anything with GLinsk for about 6 months now, so a little rusty =)).

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!