Page 1 of 1

How to add adsense?

Posted: Tue Sep 09, 2008 12:08 pm
by apple1165
Im new in sendendipity, first install in my host,may i know how can i add adsense in my blog?

Posted: Tue Sep 09, 2008 2:59 pm
by Don Chambers
You can insert adsense in your sidebars using the HTML nugget plugin. If any code has to be loaded in the <head> of the document, you can use the head nugget plugin for that, or you can add the code directly to your template's index.tpl file (if it has one).

If you want adsense elsewhere, like at the beginning/middle/end of an entry, you have to edit your entries.tpl file.

So, a good starting point would be to know where you want to place the code....

Another decent starting point would be to take a look at a template that incorporates advertising within the template. An excellent example of that would be Carl Galloway's Affiliate template: http://www.carlgalloway.com/archives/29 ... iates.html

Posted: Tue Sep 09, 2008 3:36 pm
by apple1165
Hi Don Chambers

Thank you very much of your immediate reply on my inquiry. I want to put an adsense in my right side bar 160x600 and 336x280 above the fold
another 468x60 at the button

thanks for the info.

Posted: Tue Sep 09, 2008 4:06 pm
by Don Chambers
Once again, it would be very helpful to have a link to your blog so I can see your template code.

Google will generate the code for whatever size ads you wish to display. For the sidebar, you will need to install the html nugget plugin. This plugin can be installed as many times as you want to use it.

Once installed, simply cut and paste your google adsense code for the desired sidebar ad into the plugin's configuration screen. There is an option in the plugin to enable/disable markup - be sure to disable it. Once saved, it may not be exactly where you want it on the page - go to configure plugins again and drag it to where you want it displayed relative to your other sidebar plugins, and save again.

"Above the fold" is a subjective term since it typically means anything above the point where a user would need to scroll vertically. Regardless, I presume you mean either above everything else on the page, or perhaps above most content, but possibly below any banner/header/logo you may be using on your site.

For that, you will probably need to edit your template's index.tpl if it has one. If it does not, you will need to copy the file from /templates/default and place it in your template folder, and then edit it.

Posted: Tue Sep 09, 2008 4:18 pm
by apple1165
Im trying to use your template. Affiliate Template v1.0
im instaling now. my url is www.urlife.info

this is a game site before but unfortunately it is always hack by a hacker. so i decided to change it into a games blog

Posted: Tue Sep 09, 2008 4:42 pm
by apple1165
im trying to install the plugin but nothing happen. i check all to try it if it display into the template but nothing happen. what im missing need help please. url: urlife.info

Posted: Tue Sep 09, 2008 5:30 pm
by Don Chambers
There is an option labeled "Perform Markup Transformations". Make sure that is turned off.

Posted: Tue Sep 09, 2008 6:29 pm
by apple1165
thanks for the info, i successfully put ads into the template code. plugin did not work. i try it again tomorrow, but as of now the site is ok

Affiliate Template v1.0 template did not work for me. the side bar did not display

Related problem...

Posted: Fri Oct 17, 2008 12:44 am
by carlobal
I've got a problem related to the one that started this thread. I have a website at http://www.BotanicalGardening.com. There is a Serendipity blog associated with it (I used a nav button to get to it...works fine).

I also use adsense on the website and the blog. Everything works in Windows, but I've added a iMAC to the equation. The website is still working fine through Safari, but the google ads have disappeared from the blog.

I assume since only the blog is affected, that it's a Serendipity thing. Safari settings were played with to allow cookies, enable Java, etc. Can't get the ads to show on the MAC.

Anyone?

Re: Related problem...

Posted: Sat Oct 18, 2008 1:04 pm
by garvinhicking
Hi!

I can see your ads, so it must be a browser/client problem. Are you sure adsense displays fine on other pages? I bet it doesn't display anywhere for you and that your browser is either filtering it, or not having javascript properly enabled.

Regards,
Garvin

Posted: Sat Oct 18, 2008 4:10 pm
by Don Chambers
Must be a Safari thing - and I cannot really help you there other than to say that I also cannot see the ads using Safari, but can with Firefox.