Adsense into entries.tpl

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
rj
Regular
Posts: 477
Joined: Sun Sep 10, 2006 2:53 pm

Adsense into entries.tpl

Post by rj »

I have been using an adsense block in my entries.tpl file that comes up before comments when an article is loaded (not blog loaded). Adsense told me to put it below the title/date and above the beginning of my test to get the greatest benefit.

I have tried a bit of hit and miss to no avail. I need this block to present ONLY when the blog is serving one artilce, other wise there would be an adsense block in each article on the blog which is a NO NO. Limit is three per page...

Any ideas where exactly I could deposit my adsense code to have it tween the title and the first line of text on viewing one article at a time?

Thanx!

FYI, this google employee told me this could at least double the ctr...

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

Re: Adsense into entries.tpl

Post by garvinhicking »

Hi!

Wrap an {if $view == 'entry'} ... {/if} around your adsense code, this will only trigger on the detail view then.

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/
rj
Regular
Posts: 477
Joined: Sun Sep 10, 2006 2:53 pm

Re: Adsense into entries.tpl

Post by rj »

Works Great! Thanx! Seems to be a bit TOO MUCH ads but what the Hell. I will let yall know if this really works as well as I am told...
Post Reply