WordPress.org

Ready to get started?Download WordPress

Forums

Announce: Adsense plugin (18 posts)

  1. phord
    Member
    Posted 9 years ago #

    I wrote a quick plugin to put Adsense ad blocks in-line in your blog entries. The advantage is that you can choose where the blog appears in your blog text. Enjoy.

  2. ThomasCarreno
    Member
    Posted 9 years ago #

    Phord..

    Nice job on the plugin..

    here is a follow up question..:

    Since I will be having multiple authors on my blog who will not be paid for posting.. I wonder if there is a way to automatically insert the google ads within the content text on each blog posting?

    the reason I need this is that I cannot ask my contributing authors to insert google ad code on each of their posts... it wouldnt be appropriate..

    is there an automatic way to insert the google ad code say after the first or second paragraph of each main posting page??

    or does anyone know a solution for this..?

    I think google ad code that is inserted within the editorial content on the main posting page is probably the most effect advertising solution...

    A good example of how I want to integrate a google block is as follows:

    http://www.askdavetaylor.com/whats_an_rss_aggregator.html

    he seems to be using movable type though... *sigh*

    tom

  3. davidchait
    Member
    Posted 9 years ago #

    I made a hack of my code to insert ad blocks within the content body. It's a pain, and relies on finding 'blank lines' between paragraphs to insert itself. Hadn't thought much about making it a plugin, but I could certainly look into it (it's a general system, can insert whatever code you want, basically, since I use it to call into PHPAds2).

    -d

  4. ThomasCarreno
    Member
    Posted 9 years ago #

    If its not too much trouble, would love to see this as a plug in... Ideally would only insert the google code in the widecolumn format of postings (full posting) after the second paragraph...

    that would be perfect.. and would be an ideal place for the google ads can go...

    would love to see it if you are up to it..

    tom

  5. davidchait
    Member
    Posted 9 years ago #

    I need to finish some things up in the 1.0 CG-PowerPack final final release and get it out, but then I'm 'migrating' to WP 1.5 and will take a look at making all my other fun CG hacks into plugins and having them available.

    -d
    CHAITGEAR

  6. ThomasCarreno
    Member
    Posted 9 years ago #

    Awesome davidchait,

    Looking forward to your contributions when you are able to...

    Best Regards,

    tc

  7. shiva777
    Member
    Posted 9 years ago #

    There is another adsense plugin called moosecandy. It can also be used to drop other types of ads/content in between your posts. http://jason.goldsmith.us/wp-plugins/moosecandy.phps

  8. Nick Momrik
    Member
    Posted 9 years ago #

    I've been thinking about something like this too, but since David is already has code in the works, I guess I'll just wait. :-)

  9. davidchait
    Member
    Posted 9 years ago #

    HEH.

    I'm still in mid-conversion process moving the WP1.0 hacked code into WP1.5 plugins. Lemme see if I can get back to the ad/insertion stuff and make some progress... (Other code has been taking up my time lately, as it doesn't all migrate nice and easily... grrr...)

    -d

  10. tavarish
    Member
    Posted 9 years ago #

    Uploaded and activated the plugin. everything works except for the Adsense button on posts. It's there but when I press it nothing happen. So I have to manually add <!--adsense--> in the posts.

    The plugin work, the only problem is the button ... has anyone experienced the same or can suugest a fix? Tried to leave a coment at the authors site, but I guess he is quite busy with other stuff.

    Nice plugin btw :-)

  11. phord
    Member
    Posted 9 years ago #

    The adsense button is added to the edit page with a Javascript function. You may have javascript disabled or you might have an overzealous popup blocker that's blocking it. (But if javascript is disabled, I think many of the other buttons wouldn't work... so...?)

    Add this code to your wp-admin/quicktags.js file in the same area where you find the other edButtons entries (around line 24):


    edButtons[edButtons.length] =
    new edButton('Adsense'
    ,'Adsense'
    ,'<!--adsense-->'
    ,''
    ,''
    );

    Sorry I haven't been keeping up with the comments on the blog. I've discovered comment notification is broken (!!) and am working on fixing it now.

  12. Nick Momrik
    Member
    Posted 9 years ago #

    Any progress David? If not, is there a chance I could get my hands on the code you've been using so that I could whip it into a plugin for myself?

  13. richards1052
    Member
    Posted 9 years ago #

    I installed the plugin, installed my adsense code in the file, activated the plugin. I see the button in my quicktags bar, but when I click on it nothing happens. What could be wrong?

  14. nmallory
    Member
    Posted 9 years ago #

    Is this CG-Inline?

  15. davidchait
    Member
    Posted 9 years ago #

    No, although I was going to make an 'include' macro, so you could include an adsense html file in the middle of your post with a simple inline.

    I never got to finish my plugin -- it's half-way moved from my 1.0 hacked-up codebase over to a 1.5-generation plugin. My new CG-Inbetween covers some of the Adsense cases anyway, so I haven't been rushing for the auto-insert-in-the-post-body thing. If people are still waiting for it, maybe next weekend when I get through some of my paying work I can take another looksee... ;)

    -d

  16. Denis de Bernardy
    Member
    Posted 9 years ago #

    Ad Space gives you the option to embed the ad into the content. Where exactly will depend on the content's length.

    http://www.semiologic.com/projects/ad-space/

  17. kuproverto
    Member
    Posted 9 years ago #

    David, could the auto insert adsense plugin you are working on be based on the enhancement of the original Phord version found here - http://www.mneylon.com/blog/?p=305 I'd like to have the text wrapping around the ads.

    Will it be possible to have the adsense code inserted after a certain number of words or will it be after a number of paragraphs?

  18. AcmeTech
    Member
    Posted 9 years ago #

    Latest plugin for adding google ads to your WordPress blog:

    Adsense-Deluxe, info and download @ http://www.acmetech.com/blog/adsense-deluxe/
    -wayne

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.