Wordpress Plugin – Slayer’s Ad integration v 1.0

Okay if you ever wanted to monetize your blog and couldn’t find a simple and effective way to do it than you will definitely love me! Seriously.

As it’s name ” Ad integration” says the plugin’s purpose is to integrate ads in your posts. It doesn’t mattter what ad you want to ad: Google Adsense, Bidvertiser, or just a link to an image this plugin can handle it, and just as every plugin it comes with a cool options panel.

1. Requirements

1.1 Wordpress 2.2 and above
1.2 Administrator account
1.3 Ftp acces to “wp-content/plugins” directory for upload

2. Options Panel

The options panel is divided in 3 main sections:Ad Integration, Donate to Development and Options section.

1. Ad integration section

To add a new ad  click the “Add Ad” button which will take you to the add code page. There define the ad’s title and code. Advanced users: You can define your own HTML wrapper.

Ad name” = the name of your ad. It isn’t publicly displayed anywhere, it’s just so that you can make the difference between the many ads you will ad.

Ad HTML Code” = your ad’s html code(Google Adsense for example)

Use default HTML wrapper” = the plugin can conjure the ad in a custom HTML wrapper which can be defiened in the options section. If you don’t know what this is just leave it on default.

Max repeat count on same page” = This value defines how many times the ads will appear on the same page. The higher teh value the more times the ads will appear on the page(for example a category page)

Ad position” = The position of the ad inside the post.

If you want to edit your ad click the edit button next to your ad. This will take you to an advanced options page where you have even more flexibility.

Load type” = The way the ad is insterted in the posts.

- auto: the ad will be automatically inserted in the posts
- manual: the ad will be shown only in the posts in which you add”<!–slayer_Ad_Integration_[AD_ID]–>” .There’s no limit on the number of ads  you insert in a post.

Public” = you can set an ad to be visible by your readers or not. This feature is great if you don’t want to delete an ad for later usage.

To delete an ad locate in the “Ads” Section your ad and click the “Delete” button. Remember that this is undoable.

2. Donate to Development

Although i doubt that someone will donate i added a donation section(saw it at many plugins), who knows maybe Bill will start blogging, use my plugin and perhaps make a $ 1mill donation(lol).

3. Options

Default HTML Before Ad” & “Default HTML After Ad” define the wrapper for each ad. You can owerwrite this by selecting “Default html wrapper”

Custom CSS” gives you the possibility to add css styling to your ad.

Max ad count per page“  This value defines how many times the ads will appear on the same page. The higher teh value the more times the ads will appear on the page(for example a category page). This doesn’t apply to manual ad inclusion.

3. Download Slayer’s Ad Integration v 1.0

Slayer’s Ad Integration v 1.0 (Primary Download link)

Slayer’s Ad Integration v 1.0 (Mirror link)

Slayer’s Ad Integration v 1.0 for PHP 4.X

4. Installation Instructions

2.1 upload the slayer_Ad_Integration directory to wp-content/plugins
2.2 activate the plugin (dashboard -> plugins -> find “Ad Integration” -> click the activate button
2.3 eat a cookie
2.4 drink some milk
2.5 you are done, now go enjoy the plugin.

Thanks again for using my plugin :) Feedback and suggestions are as usual warmly welcome!

Digg!

Enjoyed this post? Subscribe to my RSS feed today!

Respond

User Comments

  • BETng4U - 10 Aug 2008 12PM

    lots of hours went in to this plug-in, came out a very sexy thing in the end.

    check it out ;)

  • gestroud - 10 Aug 2008 10PM

    Sounds good. What are the different ad positions available?

  • BETng4U - 11 Aug 2008 11AM

    Sounds good. What are the different ad positions available?

    well, there are the tipical left and right aligment settings, but you can also leave it inline with your content (great setting for text ads).

    also, you can chose from 3 vertical aligment settings: top, bottom, and my favorite, middle.

    you can always fallback to using manual position by inserting “Manual insertion HTML Code” :)

  • Matt - 11 Aug 2008 6PM

    I’m running Wordpress 2.6 and php 4.3.11

    I am getting this error:

    Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in /wp-content/plugins/slayer_Ad_Integration/slayer_Ad_Integration.php on line 33

    Any idea what this is or what can fix it?

  • Jason Pelker - 11 Aug 2008 9PM

    Same issue as Matt. Any suggestions?

  • EShare - 12 Aug 2008 2AM

    great plugin!
    I’m going to have a try on my site.

  • BETng4U - 12 Aug 2008 8AM

    @ Matt & @Jason Pelker

    Recomandation: upgrade to the PHP +5.2.x brunch.

    I have added a PHP 4 fallback download link in the post.
    Link: http://static.thaslayer.com/slayer_Ad_Integration_php4.rar

    please let me know if you find any other problem.
    thanks

  • Reactive - 12 Aug 2008 12PM

    how about making a widget for it as well, so you can place it in the sidebar ? :D

  • Matt - 12 Aug 2008 3PM

    Problem with PHP 4 Plugin!

    BETng4U, I downloaded the php 4 support plugin with no error, but now I don’t see the tab to configure the plugin. In your example it looks like it should be next to the comments tab, but it’s not there. I tried downloading the plugin again for a fresh install, but still no tab for the plugin when I activate it. Must be a small thing it needs I think.

  • Jason Pelker - 12 Aug 2008 4PM

    @ BETng4U: Thanks for the download link. Again, same issue as Matt, though. You’re totally right about upgrading to php5, too.

  • BETng4U - 12 Aug 2008 5PM

    @ Matt
    I am really sry, it was my glitch. I didn’t test the plugin on php4 at first, i just trusted that it will work.

    The problem: the plugin is represented by a PHP class. In php 5 you can declare props. and methods public or private by using those 2 keywords which in php are not present, thus resulting in a fatal error. The last glitch was due to the e fact that i use a php5 style constructor to initialize the class(effectively starting the plugin). This was fixed by falling back to a classical php4 style constructor.

    @Reactive
    Interesting, I’ll run that by slayer, and if he give the all clear on the idea I’ll include that feature in the 1.1 version of this plugin.

    Please report any other problems, I’m here to support all the way. :)

  • slayer - 12 Aug 2008 5PM

    :o ^^ BETng4U is the boss @ coding around here

    oh crap…this makes me minority than, lol

  • k|torz - 16 Aug 2008 9AM

    hello, great plugin but same issue as Matt…

    fatal error: can’t be activated…

    I also tried the php4′ file, but the same thing…

  • BETng4U - 17 Aug 2008 10AM

    @k|torz

    can you please copy/paste the exact error that you get.

    thanks

  • Niklas - 14 Sep 2008 3PM

    Hello.

    How do i exclude the ads from showing in pages and just in categorys?
    Thanks.

  • EncundaMync - 07 Oct 2008 1PM

    Great blog. I like layout!!!!

  • Max@Viliat-Blog - 08 Oct 2008 1AM

    great plugin, congrats! I have the same question as @Reactive – how to insert Ads into sidebar text widget? I tried copy and paste string, but it does not work… How to fix it?

    thanks!

    Last Max’s post Increase Blog Profits 200% by Linking Keywords To Affiliate Programs

  • WoRay - 15 Oct 2008 2PM

    great?thanks

  • BETng4U - 16 Oct 2008 8PM

    Hello.
    How do i exclude the ads from showing in pages and just in categorys?
    Thanks.

    @Niklas: you can’t exclude things in this version, you can only define the categories/tags/ etc for wich the ads should be visible.

    great plugin, congrats! I have the same question as @Reactive – how to insert Ads into sidebar text widget? I tried copy and paste string, but it does not work… How to fix it?
    thanks!
    Last Max’s post Increase Blog Profits 200% by Linking Keywords To Affiliate Programs

    @Max@Viliat-Blog
    This feature(sidebar/widget ads) will be included in our next version of this plugin :)

    Stay tuned!

  • ChrisM - 27 Oct 2008 7AM

    Just noticed this plugin isn’t yet listed under your ‘free plugins’ page, linked within your menu at the top. Just thought I’d mention it, in case this wasn’t done deliberately.

  • John Lacey - 01 Nov 2008 8AM

    Hey!

    Your plugin is awesome. I’m sure I’m just an idiot… but with the middle alignment option selected it seems to insert an inexplicable line break in the middle of my posts (usually in the middle of a sentence). Not a good look. Any ideas? LOL

    Many thanks…

  • Thomas - 16 Jan 2009 3PM

    Excellent plugin. The only thing missing is the ability to disable the ads for logged in users.
    Is this something you have thought of?
    Otherwise I might fix it myself!
    Thanks
    Thomas

  • Ann - 20 Jan 2009 8PM

    How can I put an ad in between posts instead of inside a post?

  • Justbiz Duitmoney.com - 22 Jan 2009 8AM

    Is it now compatible with latest version of wordpress?

  • Ronda - 15 Feb 2009 9PM

    Gracias por el pluging un trabajo estupendo !!

  • Mich - 16 Feb 2009 6AM

    I had the biggest issues getting this installed. I followed the instructions and it took almost 2 days going step by step.

    Why could you not have required us to eat cereal first? we had no cookies left in the whole house. I had to go shopping at a real store with humans in it. Don’t you know how scary that is. Yuk they were all so dirty.

    After though…. it worked great, thanks, Bravo :)

    Peace
    Mich D aka @MichDdot

  • Ibra - 18 Feb 2009 7PM

    Can’t use the plugin,

    Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in

    Help anyone?

  • GirlPaint - 13 Apr 2009 3AM

    Me, too. FATAL ERROR trying to activate (in WP 2.7)

    Installed but could not activate:

    Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in /home/www/girlpaint.com/blog/wp-content/plugins/slayers-ad-integration/slayer_Ad_Integration.php on line 33

    WHEN WILL THE PLUGIN BE COMPATIBLE W/ THE NEWEST VERSION OF WORDPRESS?

  • GirlPaint - 18 Apr 2009 12AM

    Is it now compatible with latest version of wordpress?

    Well? Is it?

  • balazs.szabo - 04 May 2009 1PM

    Nice plugin!

    Some fix:
    Please use charset in htmlentites() function: admin_template_main.php at line 27:

    htmlentities( strlen($ad['code']) > 60 ? substr($ad['code'], 0, 60) . ‘…’ : $ad['code'],ENT_NOQUOTES,’UTF-8′)

    or

    use own charset detector

  • Craig - 14 May 2009 7AM

    The only problem I have is getting multiple ads to show. I want text ads at the top of the post and images at the bottom, I’ve set the “Max ad count* per page” to 2 but posts alternate showing either top or bottom but never at the same time. What gives?

  • Gerald - 17 May 2009 2PM

    Thanks for develop this plugin, I’ll try it with my new blog.

Trackbacks