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
Google Adsense with Blog
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Google Adsense with Blog
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
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/
# 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/