Page 1 of 1

Google Adsense with Blog

Posted: Wed Apr 11, 2007 7:01 pm
by davenoise
Hello,

I am struggling with putting Google Adsense ads onto the php-based Serendipity blog. Google says their standard code is JS and is not compatible with php. Anyway, there must be a way to make this work. I am interested in inserting code into the bottom of a blog entry so as not to go back and forth into the source code.

Suggestions for a patch or anything?

Thanks.

Dave

Re: Google Adsense with Blog

Posted: Thu Apr 12, 2007 11:01 am
by garvinhicking
Hi!

You can simply install a "HTML nugget" sidebar plugin, and paste your javascript code in there to display it in a sidebar of your blog.

If you need to put it somewhere else, you can edit the *.tpl template files (checkout the s9y docs or search this forums for "entries.tpl") and put the code there. Or use the plugin "Include entry blocks" (or something like that) in the listing of event plugins in our spartacus plugin repository (http://spartacus.s9y.org/).

Best regards,
Garvin