1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Announcing AdSense-Deluxe Plugin for WordPress Blogs

Discussion in 'WordPress' started by wkw, Jul 27, 2005.

  1. #1
    Expanding on an idea and work done by Phil Hord (www.philhord.com) several months ago, I wrote a WordPress filter plugin for embedding Google AdSense ads into blog posts. I've finally gotten around to packaging it up so that others might benefit from its ease of use and flexible options for managing AdSense code within your blogs.

    Phil's plugin allowed you to embed the HTML comment, <--adsense--> into your posts and before the post was displayed it would substitute the Google AdSense code in place of the comment. You simply edited a variable in the plugin's PHP file to paste your chosen AdSense code in place of his.
    SEMrush
    The AdSense-Deluxe plugin builds upon this paradigm by giving you a control panel where you can define unlimited "named" AdSense ad styles. To embed any of your various ad code within a post, just type in <!--adsense#SOMENAME-->. But based on my usage of the plugin, I find that I want to use a single style of ads in most blog posts, though I may change what that style is over time. So you can also just use <!--adsense--> in most places, and whichever ad block you've selected as the "default" style will be used for that placeholder. Designating a different "default" style changes the ads everywhere that you've used the default placeholder. You can embed up to three ad blocks per post/page, and use different combinations of default and named ad blocks anywhere.

    AdSense-Deluxe features:

    * Define unlimited AdSense ad styles for use in your WordPress blog posts.
    * Use multiple, different AdSense blocks within a single post.
    * Enable/disable individual ad blocks with two clicks.
    * Enable/disable where ads are shown (home page, post pages, archives, search pages, etc.)
    * Change ad styles globally from the control panel.
    * Includes an AdSense Preview tool within the AdSense-Deluxe control panel for quickly viewing the ads Google would place on a given web page.
    * WordPress 1.5+ compatible (requires 1.5 or later)
    * Simple installation, no understanding of plugin code or PHP required.
    * [naturally, ...] it's free!

    More information and download available at http://www.acmetech.com/blog/adsense-deluxe/

    [​IMG]

    cheers,
    -wayne
     
    wkw, Jul 27, 2005 IP
    .Essence., honey and vegabond like this.
    SEMrush
  2. honey

    honey Prominent Member

    Messages:
    15,556
    Likes Received:
    712
    Best Answers:
    0
    Trophy Points:
    325
    #2
    great plugin, that adds more value to wordpress. I will have this live on my lil blog www.f0ur.com !! Thanks.
     
    honey, Jul 27, 2005 IP
  3. wkw

    wkw Well-Known Member

    Messages:
    205
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    148
    #3
    Thanks Honey. I'ts been great for me thus far. I intended to release it to the masses circa 6 weeks ago, but I can never just call something "release 1.0" and take a rest. So I kept trying to add the other features I think I want in it, and eventually got distracted by other work and it languished all alone in the shadows of my blogs.

    I'm glad for the closure and it's much better to see what the rest of the world thinks of it since I can't think of every cool feature myself... :rolleyes:

    (and I certainly appreciate you mentioning it in your blog.)
     
    wkw, Jul 27, 2005 IP
    Dreamshop and potnuru like this.
  4. Dreamshop

    Dreamshop Peon

    Messages:
    1,026
    Likes Received:
    84
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Great contribution...I'm going to test this out tomorrow!
     
    Dreamshop, Jul 27, 2005 IP
  5. largeheartedboy

    largeheartedboy Peon

    Messages:
    223
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Wow, thanks! This adds much needed functionality to Wordpress.
     
    largeheartedboy, Jul 28, 2005 IP
  6. Up2U - YourWorld

    Up2U - YourWorld Peon

    Messages:
    47
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Brilliant Idea, will get that in use by tomorrow afternoon on my blog.

    Hey, have you listed that on WP or Google APIs?
     
    Up2U - YourWorld, Jul 28, 2005 IP
  7. wkw

    wkw Well-Known Member

    Messages:
    205
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    148
    #7
    I've announced in some of the obvious places for wordpress plugins, and any private blogs which ever mentioned wordpress and adsense. but if you have suggestions, I'll take them.

    Thanks to a user's suggestion today, I realized I forgot to add a button in the post QuickTags toolbar, and am close to having that in place now.

    Really interested in feedback since it's been crafted for what I wanted in the plugin, but not sure what other people are looking for.

    -wayne
     
    wkw, Jul 28, 2005 IP
  8. swaz

    swaz Active Member

    Messages:
    540
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    90
    #8
    yup,the quicktags are missing.Is it possible to have custom block quicktags too? instead of just <!--adsense-->.
     
    swaz, Jul 29, 2005 IP
  9. wkw

    wkw Well-Known Member

    Messages:
    205
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    148
    #9
    working on the quicktags thingie. got the button in place, but it's not functioning yet.What I'd like to implement is some sort of drop down menu from the button so you can select from all your available AdSense blocks. anyone knows how to make that happy in the WP QT context, please send pointers.
    -w
     
    wkw, Jul 30, 2005 IP
  10. HomeOfficeVoice

    HomeOfficeVoice Peon

    Messages:
    31
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Great plugin, Wayne ... congratulations on all the hard work.

    Anything that makes AdSense work better with WP will be a big hit.
     
    HomeOfficeVoice, Aug 2, 2005 IP
  11. wkw

    wkw Well-Known Member

    Messages:
    205
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    148
    #11
    Well, 515 downloads since release last thursday and I've gotten good feedback. I've incorporated the fixes and changes into release 0.3. You can Download AdSense-Deluxe from that link.

    Quick rundown on changes for v0.3:
    - Fixed problem of AdSense showing up in Full Text RSS feeds.
    - Fixed call-time pass-by-reference warnings from PHP.
    - No longer “rewarding author” on anything other than Post or Page pages.
    - Fixed problem with only two (2) ads being shown on a given page.
    - Added AdSense-Deluxe quicktag menu to post editor.
    - Stopped showing live adsense in post editing previews; now displays a placeholder
    - Added stripslashes() around calls to edit an ad and to display adsense code in posts.
    [axodys] reported his ads getting escaped on WP 1.5.3 (with magic_quotes_gpc Off).
    - Editing an ad which was disabled causes it to be enabled when saving (fixed).
     
    wkw, Aug 2, 2005 IP
  12. swaz

    swaz Active Member

    Messages:
    540
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    90
    #12
    oo thats fast.how do i upgrade? just upload the new plugin? and will my previous ads disappear?
     
    swaz, Aug 3, 2005 IP
  13. wkw

    wkw Well-Known Member

    Messages:
    205
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    148
    #13
    Just replace the plugin .php file. All your data is stored in WP's database so you won't lose anything when upgrading.
    -w
     
    wkw, Aug 3, 2005 IP
  14. blacknight

    blacknight Well-Known Member

    Messages:
    254
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    125
    #14
    Very nice plugin. Thanks for all the hard work.
     
    blacknight, Aug 3, 2005 IP
  15. wkw

    wkw Well-Known Member

    Messages:
    205
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    148
    #15
    Blacknight, hope you got the v0.4 release from today. A couple more little tweaks in it, and now I'm hoping to back off an get to paying work before tackling the big stuff on my wish list for the plugin.
    thanks though,

    -wayne
     
    wkw, Aug 3, 2005 IP
  16. blacknight

    blacknight Well-Known Member

    Messages:
    254
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    125
    #16
    Wayne

    Seems like I am completely up to date :)

    Michele
     
    blacknight, Aug 3, 2005 IP
  17. wkw

    wkw Well-Known Member

    Messages:
    205
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    148
    #17
    I've just posted version 0.5 of the AdSense-Deluxe WordPress plugin.

    That link explains the new features (support for inserting ads in WordPress template files, and automatic version checking). The main Plugin page can be found at AdSense-Deluxe.
     
    wkw, Oct 3, 2005 IP
  18. Phynder

    Phynder Well-Known Member

    Messages:
    2,606
    Likes Received:
    146
    Best Answers:
    0
    Trophy Points:
    178
    #18
    Excellent! I've been using v.4 for a while - looks like it is time to upgrade...
     
    Phynder, Oct 3, 2005 IP
  19. cdl512

    cdl512 Well-Known Member

    Messages:
    125
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    128
    #19
    I prefer to put my ads in the code not individual posts, less mistakes that way, but if you have a long post and wan to break it up a bit this is a good way to go!
     
    cdl512, Jan 20, 2006 IP
  20. blacknight

    blacknight Well-Known Member

    Messages:
    254
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    125
    #20
    You can put adsense directly into your template code using the plugin. It contains a number of hooks for you to use
     
    blacknight, Jan 20, 2006 IP