1. Halo Guest, pastikan Anda selalu menaati peraturan forum sebelum mengirimkan post atau thread baru.

[FREE] Single Post - Simple Adsense Injection Wordpress Plugin

Discussion in 'Freebies' started by daylight, Jun 23, 2010.

  1. daylight

    daylight Ads.id Fan

    Joined:
    Dec 8, 2008
    Messages:
    249
    Likes Received:
    103
    Location:
    Solo
    sesuai dengan judulnya, plugin ini bekerja di platform wordpress self host, support wordpress all version.
    Fungsi plugin ini adalah memasukkan Google Adsense kedalam single posts.

    How to use?
    Simple to use:
    1. Buka adsense.php file
    2. Ganti warna merah dengan adsense code kamu
    3. upload di direktori plugin blog kamu
    4. Aktifkan plug-in
    5. Pada saat membuat posting akan ada button "Adsense" Click "Adsense" button pada quicktags bar untuk memasukkan Adsense pada posts.
    6. Default setting posisi adsense adalah rata kiri, bisa diedit kalo' emang pengen dipindah (edit paragraf warna ijo)


    script:
    <?php

    /*

    Plugin Name: Adsense

    Version: 0.1

    Plugin URI: http://www.aming.info

    Description: Inserts Google Adsense inside your posts where you see fit. Simple to use: Edit the adsense.php file to use your Adsense code instead of mine; Activate the plug-in; Click the "Adsense" button on the quicktags bar to insert the Adsense marker in your posts. Please make sure you read <a href="https://www.google.com/adsense/policies">Google's TOS</a> before using this plugin!

    Author: Web Ware Craft Technologies

    Author URI: http://www.aming.info

    */



    /*

    adsense

    This function replaces <!--adsense--> tags with actual Google Adsense code

    */



    function phord_insert_adsense($data) {

    $tag = "<!--adsense-->";









    /**************************************************************************

    ** Replace this HTML code with your own customized Google Adsense code. **

    **************************************************************************/



    $adsense_code = '

    <!-- Begin Google Adsense code -->

    <p style="float:left;text-align:left;margin:0 10px 0 0;"><script type="text/javascript"><!--

    google_ad_client = "pub-7093331452******";

    /* 336x280,created6/7/10 */

    google_ad_slot = "6128139020";

    google_ad_width = 336;

    google_ad_height = 280;

    google_language = "en";

    //-->

    </script>

    <script type="text/javascript"

    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">

    </script>
    </p>


    <!-- End Google Adsense code -->

    ';



    /**************************************************************************

    ** All done! No more changes need to be made below this line! Enjoy! **

    **************************************************************************/









    return str_replace( $tag, $adsense_code, $data );

    }



    add_filter('the_content', 'phord_insert_adsense');





    //---- The following AddAButton code comes from the Edit Button Template

    //---- found here: http://codex.wordpress.org/Plugins

    //---- and originally written by Amming W. Widhonno

    //---- It was originally here: http://www.aming.info/category/script/

    //---- But I had trouble downloading it from there.



    add_filter('admin_footer', 'phord_InsertAdsenseButton');



    function phord_InsertAdsenseButton()

    {

    if(strpos($_SERVER['REQUEST_URI'], 'post.php'))

    {

    ?>

    <script language="JavaScript" type="text/javascript"><!--

    var toolbar = document.getElementById("ed_toolbar");

    <?php



    edit_insert_button("Adsense", "adsense_button", "Adsense");



    ?>



    function adsense_button()

    {

    edInsertContent(edCanvas, '<!-'+'-adsense-'+'->');

    }



    //--></script>

    <?php

    }

    }



    if(!function_exists('edit_insert_button'))

    {

    //edit_insert_button: Inserts a button into the editor

    function edit_insert_button($caption, $js_onclick, $title = '')

    {

    ?>

    if(toolbar)

    {

    var theButton = document.createElement('input');

    theButton.type = 'button';

    theButton.value = '<?php echo $caption; ?>';

    theButton.onclick = <?php echo $js_onclick; ?>;

    theButton.className = 'ed_button';

    theButton.title = "<?php echo $title; ?>";

    theButton.id = "<?php echo "ed_{$caption}"; ?>";

    toolbar.appendChild(theButton);

    }

    <?php



    }

    }

    ?>

    skrinsot:
    [​IMG]

    [​IMG]

    silahken download FREE alias gratis..
    happy earning, n gag nolak kalo dikasih cendol.. :gembira:
     
    Last edited: Jun 28, 2010
  2. chikmonk

    chikmonk Super Hero

    Joined:
    Jun 10, 2009
    Messages:
    1,919
    Likes Received:
    172
    Location:
    di kolong jembatan
    :gembira:
    thanks bos...
    tombol thanks di luncurkan
     
  3. siapasaya

    siapasaya Hero

    Joined:
    Aug 6, 2007
    Messages:
    537
    Likes Received:
    39
    nice... btw klo blog pake robot gedeg dipasangin adsense aman gak yah?
     
  4. jinchuricki

    jinchuricki Super Hero

    Joined:
    Nov 9, 2009
    Messages:
    990
    Likes Received:
    66
    Location:
    127.0.0.1
    nice share gan..
    ane udah pnah pake tapi bingung ga tau cara pake nya.. :lol:
    akhirnya ganti pk plugin inii deh
    All in One Adsense and YPN
     
  5. naufaljogja

    naufaljogja Super Hero

    Joined:
    Feb 17, 2009
    Messages:
    3,029
    Likes Received:
    127
    wah mantab nih bro..

    thanks buat share ilmu nya...
     
  6. jajank

    jajank Hero

    Joined:
    May 13, 2010
    Messages:
    668
    Likes Received:
    17
    Location:
    DEPOK, cikumpa
    mantab om an teken deh tombol thanks buat ente:silau:
     
  7. raedyfor

    raedyfor Super Hero

    Joined:
    Feb 3, 2008
    Messages:
    2,061
    Likes Received:
    91
    sip makasih :gembira:
     
  8. daylight

    daylight Ads.id Fan

    Joined:
    Dec 8, 2008
    Messages:
    249
    Likes Received:
    103
    Location:
    Solo
    gelar tiker dulu,.. nunggu master adsense-nya yg berbicara :silau:
     
  9. DiniBudiHandayani

    DiniBudiHandayani Ads.id Fan

    Joined:
    Jun 22, 2010
    Messages:
    168
    Likes Received:
    11
    gg ngrti buat apaan nih..
     
  10. rieand

    rieand Hero

    Joined:
    Jul 7, 2008
    Messages:
    525
    Likes Received:
    14
    penghasilannya dibagi 2 gak om? terus emang aman nih?? :hmm:
     
  11. khafi

    khafi Super Hero

    Joined:
    Jun 1, 2008
    Messages:
    1,297
    Likes Received:
    21
    Location:
    Bumi AREMA !
    wogh...
    skrinsut nya

    nembak kiword purchased structured settlement...
    sama kayak ane..
    heuhueh

    makasih share nya bro
     
  12. daylight

    daylight Ads.id Fan

    Joined:
    Dec 8, 2008
    Messages:
    249
    Likes Received:
    103
    Location:
    Solo
    dibagi 2 ama sapa? selama gag melanggar TOS kayanya aman2 ajah deah

    --- Update ---

    hiya nih.. HPK sih
     
  13. rieand

    rieand Hero

    Joined:
    Jul 7, 2008
    Messages:
    525
    Likes Received:
    14
    di bagi dua sama si pemilik pluginnya :hmm:
    klo gak salah ane pernah nemu plugin adsense yg kayak begitu
    jadi hasil GA kita dipotong berapa persen gitu buat donasi ntu plugin (CMIIW)
     
  14. seo akira

    seo akira Banned

    Joined:
    Jun 21, 2010
    Messages:
    25
    Likes Received:
    0
    masih bingung! (maaf masi newbie)
    jadinya iklan adsense akan muncul sebgai post di blog kita?
    lalu kalau ada orang yang klik akan masuk ke akun adsensenya si pembuat plugin?
    kemudian hasilnya dibagi 2 ke kita?

    si pembuat plugin gimana caranya tahu itu dari web kita?
     
  15. hersu

    hersu Super Hero

    Joined:
    May 5, 2009
    Messages:
    929
    Likes Received:
    49
    tengkyu...minta ijin make ppluginnyah...:kembang:
     
  16. daylight

    daylight Ads.id Fan

    Joined:
    Dec 8, 2008
    Messages:
    249
    Likes Received:
    103
    Location:
    Solo
    pertanyaan2 ini cuman butuh jawaban:
    1. coba dilihat lagi isi script-nya,.. diteliti lagi, GAG ADA pembagian sama siapapun
    2. adsense code-nya harus kamu ganti milik kamu sendiri kalo' pengen earningnya masuk ke account adsense anda!
    3. still confused? if it yes, don't use the script.
     
  17. badut jenaka

    badut jenaka Ads.id Fan

    Joined:
    Jun 10, 2010
    Messages:
    216
    Likes Received:
    4
    nice plugin bro..ane ijin pake..:mataduitan:
     
  18. minzicool

    minzicool Super Hero

    Joined:
    Feb 18, 2010
    Messages:
    1,021
    Likes Received:
    19

    gak kok, kalo di share kan harus kita approved dulu di addsense dashboard kita
     
  19. student

    student Super Hero

    Joined:
    Nov 27, 2009
    Messages:
    1,446
    Likes Received:
    48
    Location:
    www.imamsujono.com
    tombol thx dah tak pencet om, mantab :D
     
  20. neobyadver

    neobyadver Super Hero

    Joined:
    Apr 22, 2010
    Messages:
    1,323
    Likes Received:
    119
    Location:
    Taman Dayu Pandaan
    wah ne yang w cari simple, makasi ya oM
     

Share This Page