Show Ads In The Middle of Posts

This item was filled under [ Wordpress ]

Another great hack that will boost your current click through rates ! You will be able to show your ads ( adsense , Chitika ,Yahoo and other ads) in the middle of your blog posts! This is really amazing ! Let me show you how to this :

Adding Codes to Template

Now go to your template codes expand widgets and find the codes below

<data:post.body/>

Now replace the codes above with the line lines below

Now encode your Adsense codes from here and add after the line below

<!–Your AdSense code here –>

Working demo here

Preview template , if its OK save it !

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Answering The Questions

Question 1 :

hi gosu, I’m interested to put these codes but currently I’m using ‘read more’ hack with my post so how should I do to make it appear just in full post not in summary mode?

thanks in advance…

*sorry about my english

Answer 1 : Check the picture below , delete the code in red ,and paste adsense hack script.

Sponsored Links

You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

25 Comments on “Show Ads In The Middle of Posts”

  • zariel
    23 August, 2008, 11:39

    hi gosu, I’m interested to put these codes but currently I’m using ‘read more’ hack with my post so how should I do to make it appear just in full post not in summary mode?

    thanks in advance…

    *sorry about my english

  • shitu
    23 August, 2008, 13:48

    Hey thank uuuuuu for this hack..i m really looking forward to it.

    But in it there is problem..

    1.Read more method is not working i.e. it is showing full post without opening particular post!!

    2.It shows some code in each post that is in post..

    I m really waiting for the modified code!!!

  • Gosu
    23 August, 2008, 17:47

    answer for 1st problem : probably you did something wrong , because i tested it and it works :)

    2nd , i realized that its because there must be other embedded stuff like videos , i will try to solve it

  • Gosu
    23 August, 2008, 18:04

    can you share me that code ?

    because in demo i couldnt see any code

  • Orkut Guide | Odia Scrap
    23 August, 2008, 22:42

    Yoou rock man….i love you…u r d best. this will improve my click through rate in a way…

  • Gosu
    23 August, 2008, 22:43

    ty ty =))

  • Oriya Scrap | Odia Orkut Scrap
    23 August, 2008, 22:49

    hey gosu, just noticed a prblm…
    go 2 my blog n see… it’s breaking the HTML codes inside the post :(

    Example : http://orkut-guide.blogspot.com/2008/08/orkut-glittering-graphic-scraps-bye.html

    It’s happening in all posts. If u r using general text, then it’s ok. But in case of HTMl codes to bold ur letters, it’s breaking the code. and that’s looking ugly.

    Anything to fix that?

  • Gosu
    23 August, 2008, 22:58

    well , this hack counts all the chracters in post inclucing htmls and puts ads in middle of post. i cudnt find a solution for this ,try to add more text and then add html , this is simple solution.

  • Shitu
    24 August, 2008, 5:09

    Hey gosu you can search for open tags in it and than place the adsense code after the closing tag!!

  • Gosu
    24 August, 2008, 9:40

    im not good at java scripting shitu , but im trying to fix it..

  • Mizake
    25 August, 2008, 3:17

    Hi, Gosu

    I found this hack is original and so smart. I like it..Thank’s

    Nice to know you

  • Anonymous
    26 August, 2008, 9:11

    Is not that against the rules of Google?

  • Gosu
    26 August, 2008, 9:22

    no , wordpress user have been using it for ages ,

  • 28 August, 2008, 17:31

    Hi!I did follow the instructions but once in a while this shows up “class=blsp-spelling-error id=SPELLING_ERROR_3>” in front of unrecognized word like “Clooney.”
    Any idea how I can fix this?

    By the way thanks for the “recent comments” tutorial. It’s great!

  • Edu
    31 August, 2008, 15:49

    Fail!

    Make sure that all XML elements are closed properly.
    Error Message on XML: Open quote is expected for attribute “(1)” associated with an element type “expr: id.”

  • admin
    31 August, 2008, 16:10

    it still doesnt give an error to me , check it carefully :)

  • 3 September, 2008, 7:44

    wow it’s great, never see it! Thanks mate

  • 4 September, 2008, 9:46

    Dear Gosu

    why i try it out at my blog and found this

    Your template could not be parsed as it is not well-formed. Please make sure all XML elements are closed properly.
    XML error message: Open quote is expected for attribute “{1}” associated with an element type “style”.

  • admin
    4 September, 2008, 14:49

    fixed

  • 5 September, 2008, 20:47

    Faill!!!..

    Your template could not be parsed as it is not well-formed. Please make sure all XML elements are closed properly.
    XML error message: Element type “div” must be followed by either attribute specifications, “>” or “/>”.

    can you help me…i just delete and paste the ….but that the message error appear

  • 12 September, 2008, 1:54

    Hi All,

    This is the code that works in blogger:

    var obj0=document.getElementById("aim1");
    var obj1=document.getElementById("aim2");
    var s=obj1.innerHTML;
    var t=s.substr(0,s.length/2);
    var r=t.lastIndexOf(" ");
    if(r>0) {obj0.innerHTML=s.substr(0,r);obj1.innerHTML=s.substr(r+1);}

    Only problem is that come of the HTML is shown right after the ads. That’s a bit ugly!

  • 14 September, 2008, 11:26

    Great hack bro! I’ll use this hack on my blog… Thanks!

  • 25 September, 2008, 9:22

    Thanks, I finally made it work with the ‘Read more’ hack.

  • 5 October, 2008, 7:34

    fixed…thank

  • 7 October, 2008, 16:43

    Hi, thanks so much for the hack.

    One question, can I use it with Chitika ads? I’ve been trying to replace the adsense code with chitika code with no luck.

    Thank you for your answer, greatly appreciate it.

Leave a Comment