Page 1 of 1

Adsense into entries.tpl

Posted: Fri Oct 30, 2009 3:56 am
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

Re: Adsense into entries.tpl

Posted: Fri Oct 30, 2009 10:03 am
by garvinhicking
Hi!

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

Regards,
Garvin

Re: Adsense into entries.tpl

Posted: Fri Oct 30, 2009 3:13 pm
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...