Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Template (luna) question

Quote Reply
Template (luna) question
I'm running LinksSQL 2.x and have a question on the template. I need to place a banner ad on the homepage only. Of course if I use the default includes, for right content this places the banner on all pages. I tried to paste the code on the homepage but this didn't position the banner properly. I'm thinking some kind of nesting to do this but I can't get my head around it. How would I acheive this?

Thanks in advance for your help!!

M
Quote Reply
Re: [greenmktg] Template (luna) question In reply to
Hi,

Links 2??? I thought that the luna templates came out in 3.0.1???? Could be wrong

Either way, a link to your site would be helpful.. not a lot we can see/ work out based on a description Wink

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] Template (luna) question In reply to
HI Andy,

It's me, Meredith. I lost my old login password/email and had to start again here as a Noob. In more ways than one I guess - must be 3.x then, I'm not upgraded. Have to login to check. It's the ConstructionClub website. I need to post the ad on the homepage only for SEO purposes. Just the basic template really, not much customization anymore....

Thanks!

M

EDIT: OK, it's 3.2.0

Last edited by:

greenmktg: Sep 23, 2011, 6:46 AM
Quote Reply
Re: [greenmktg] Template (luna) question In reply to
Hi,

Np. Got an example of where I can see the problem? Having a look at the site, and I don't see any banners? You can PM me it if you don't wanna post here

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] Template (luna) question In reply to
Ok, sent you a PM, thanks!!
Quote Reply
Re: [greenmktg] Template (luna) question In reply to
So whatcha think? Any ideas?
Quote Reply
Re: [greenmktg] Template (luna) question In reply to
Ah weird... I sent a reply to your PM, but looking at my "Sent" box, it never actually sent (maybe I didn't press send or something ;))

You should be able to achieve it by adding this at the top of home.html:

Code:
<%set isHome = 1%>

...then in the sdiebar, do:

Code:
<%if isHome%>
...show the banner HTML
<%else%>
..show nothing, or maybe a different banner for the other pages
<%endif%>

Hope that helps.

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] Template (luna) question In reply to
Super, worked perfectly - another satisfied advertiser Smile

Thanks!!