Turk Hit Box

Turk Hit Box

Ramblings of a Turkish Internet Mogul

Top Pages

Recent Articles

Pages

Adsense instead of -more- tag?

Here is my first adsense placement idea for my posts. I edited one of the files in wp-includes folder to replace the <!–more–> tag in wordpress with an adsense bar. The reason I wanted this was not to go through process of adding adsense each time I post.

I first thought I had to change the tinyMCE files to do this so I have to check and test every one of the related files. The solution was simpler than I thought. You just need to find the post-template.php file in your wp-includes folder and change the code on line 98.

post-template.php wp-hack adsense

You can place any html code you want between <span id=”more-’.$id.’”> and </span>. After you click on the more link, you will see that the full post now contains an adsense banner in that place. Now I am looking for another place on my blog to place my next adsense for content bar. If anyone has any idea where I can get high CTR numbers, please feel free to comment. And don’t forget, since I am using the dofollow trackbacks plugin, if you talk about this hack on your blog, You will get a backlink in return!

PS: This wp-hack got me lots of new plugin ideas, but first things first right? When everyone thought there is no plugin left to write for wordpress :)

Posted in: Adsense

11 Responses


Vinod Ponmanadiyil on 06.03.2007 at 11:21 pm

The best CTR is obtained when you place a 336 within the post content.

Cansun on 06.04.2007 at 11:01 am

What do you mean by 336?

huseyin on 06.04.2007 at 1:27 pm

Site admine Mesaj olarak yolluyorum öncelikle bunu Belirteyim. Siteniz son derece güzel ayrica ingilizce olmasi ve böyle bilgiler vermenizde beni son derece sevindirdi.Benimde birkaç tane İngilizce web sitem var. karşılıklı Fikir alışverişi yapabileceğimize umuyorum bu yüzeden size yazdim. Eger msn adresimi eklerseniz tanışmak isterim. kOLAY GELSİN BAŞARILAR

Web 2.0 Seo on 06.14.2007 at 5:09 am

Use the new rule chang to your advantage. You get 3 linkbars nos. I am converting every site we have to take advantage :)

728 top bars, inline 468 and side bar whatever fits. Enjoy

eylultoprak on 07.23.2007 at 12:55 pm

merhaba bunu bende kullanmak istiyorum.

çok iyi bir ingilizcem yok.
97 -100 nolu satırda şunlar var

        if ( $more ) {
            $output .= '<a id="more-'.$id.'"></a>'.$content[1];
           
        } else {

elimdeki adsense kodunu nereye ve nasıl koymam gerekli

birde temada more tag'ı şöyle

<?php the_content(__('yazının devamı..')); ?>

53 numaralı satırda post-template the_content var wordpress sürüm 2.1.3 yardımçı olursanız sevinirim :)

Turk Hit Box on 11.01.2007 at 12:15 am

$output .= '<a id="more-'.$id.'">adsense kodu buraya gelecek</a>'.$content[1];

eylultoprak on 11.23.2007 at 9:10 pm

2.3.1 de adsense kodunu koydum.. fakat alttaki adsense ile yer değiştiriyor. :S anlayamadım.

eylultoprak on 11.23.2007 at 9:41 pm

$content[1]; değerini $content[2]; yapınca sorun giderildi bilginize.

Sir Pavlow on 12.20.2007 at 12:42 pm

güzel bir uygulama teşekkürler.

Bored No More on 01.15.2008 at 10:21 am

Hey ! thatz a great idea :D I think I'll try it out on my blog.

acakadut on 06.21.2008 at 9:14 am

thanks a bunch mate. I’ve been looking for this :)

one more question. Is there any way we can find out whether the post has more tag or not? otherwise we’ll miss 1 spot if the post doesn’t have the more tag :(

Leave a Reply