adding code to entries

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
kalbzayn
Regular
Posts: 8
Joined: Fri Jan 13, 2006 4:39 pm
Location: Elgin, IL
Contact:

adding code to entries

Post by kalbzayn »

I'm trying to add the adsense code to run inside the entries instead of at the header, footer, sidebar, etc.

I was able to edit the entries.tpl file to get the ads to show up exactly how I wanted when viewing the entries. But, when I clicked on a category and got a list of all the entries for that category, the ads were showing up there too. Is there a way to only have the special code show up inside the entry, but only when the individual entry itself is being viewed?

Thanks
Mike
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: adding code to entries

Post by garvinhicking »

Yes, you can check the

Code: Select all

{if $is_single_entry}
Variable for that.

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
kalbzayn
Regular
Posts: 8
Joined: Fri Jan 13, 2006 4:39 pm
Location: Elgin, IL
Contact:

Post by kalbzayn »

Thanks. I'll give that a try and let you know how it goes in a day or two.
kalbzayn
Regular
Posts: 8
Joined: Fri Jan 13, 2006 4:39 pm
Location: Elgin, IL
Contact:

Post by kalbzayn »

Thanks for you help.

It worked like a charm.
Post Reply