AdSensical

Make money online with the Google
AdSense™ advertising program.

Thursday, December 06, 2007

Blogger blogspot social bookmarks

Enlighten People:     

What is this? See four icons just above this line? This is it!

A lot of people asked me if I am familiar with any Blogger plug-in similar to Sociable for wordpress. Unfortunately my answer was always no. There are however tools to implement social bookmarks in Blogger but either they redirect you to another site or are just those one-button-wonders which never works as imagined.

Long story short; here is my javascript version with currently only four social networks but more will be added depending on interest shown by You dear visitor :).

How to use it? Copy link of your post in url field and press socialize!


preview:


copy/pasta below in front or at the end of your post:

 pretext (optional)

 url (it's a must)

 title (if none script will assign an appropriate one)

Digg
Technorati
StumbleUpon
DelIcioUs

Labels: , , ,

Friday, June 09, 2006

Place Ads in Middle of Blogger Posts

Enlighten People:     


When you make a Blogger template, you can place ads in the sidebar and on top. However, the positions of the ads are static. The main point is that you cannot place an advert inside a post. Correct?
Incorrect! Using a bit of Javascript techno-wizardry you can place AdSense ads in the middle of your Blogger posts easily. I don't promise, but it should increase your CTR. Let me show you how:
  • Log in to Blogger and go to Template
  • Find the <$BlogItemBody$> tag in your template
  • Replace it with:

<p>
<ItemPage>
<div id="adsensical<$BlogItemNumber$>start"></div>

<div style="margin:5px 0 -5px 10px">
<!--PLACE YOUR AD CODE HERE-->
</div>

<div id="adsensical<$BlogItemNumber$>end">
</ItemPage>
<div id="adsensical<$BlogItemNumber$>body"><$BlogItemBody$></div>
<ItemPage>
</div>

<script language="JavaScript">
//AdSensical Place Ads in Middle of Blogger Posts
//By hackman_3vilGuy http://adsensical-adsense.blogspot.com
//hackman {AT}caller {DOT}me {DOT}uk

var topbit=document.getElementById("adsensical<$BlogItemNumber$>start");
var bottombit=document.getElementById("adsensical<$BlogItemNumber$>end");
var s=document.getElementById("adsensical<$BlogItemNumber$>body").innerHTML;
var regexIndex=s.search(/<!--adsense-->/igm);
if(regexIndex>0) {topbit.innerHTML=s.substr(0,regexIndex);bottombit.innerHTML=s.substr(regexIndex+14);}
</script>
</ItemPage>
</p>

Copy this code
  • Replace <!--PLACE YOUR AD CODE HERE--> with your real Adsense code you want to put in
  • Now in every post place <!--adsense--> somewhere in the HTML (click Edit HTML) of the post where you want the ad to appear!
That's it! If you implement this you should hopefully get a greater CTR and therefore more cash and the method is within the ToS. This only displays the ads on item pages. If you want to display them on all pages then get rid of the ItemPage tags but watch out that you only have 3 ads per page. If you forget to put the tag in, your ad will appear just before the article. Enjoy, just please don't forget to link back here.

Labels: , , ,