Google Adsense with Blog

Creating and modifying plugins.
Post Reply
davenoise
Posts: 2
Joined: Wed Apr 11, 2007 6:48 pm

Google Adsense with Blog

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Google Adsense with Blog

Post 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
# 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/
Post Reply