Other Languages

WP-Addpub banners management (wordpress Plugin)

Hello,

WP-addpub is a very simple plugin that let's you upload your banners or your html and javascript code to your blog. Can be used, also, for any kind of script (google adsense, paypal donate, youtube video...)

The advantages of this plugin:

* Enabling and disabling the banner
* Display banners in different areas.
* Ability to display a banner depending on any special field (category, tag,…).
* Ability to display a banner depending on the language using the field filter.
* Ability to add/edit a script banner ( since 1.2).
* Ability to display a random banner ( since 1.2.1).

Requires WordPress Version: 2.3 or higher 

Installation:

1. Unzip the file and place the folder wp-addpub in the directory plugins wordpress \ wp-content \ plugins
2. Activate the plug wp-addpub
3. Go on the management of banners in the Options> WP-Addpub

Screenshot :

screenshot plugin wordpress wp-addpub Adding a script code as a banner Display a video using wp-addpub

How-to use:

Add the following line in your theme:

  1. <?php wp_addpub ( "bannerID=1" ) ; ?>

The parameter of the function is a string that contains variables:

* bannerID : Id of the banner
* zone: a text field that can be used to identify an area of your page (eg sidebar,… footer)
* filter: a text field that can be used as a criterion for display (ie value: French, English or Category1, Category2…)
* random : display a random banner (random=true) (since version 1.2.1)

These variables can be used separately or together (example: "zone=sidebar&filter=EN")

Changelog 1.2.2:

[-] bug ie7 resolved. Thanks to Tony V

Changelog 1.2.1:

[+] Display a random banner using random argument. e.g. : wp_addpub ("zone=sidebar&random=true");

Changelog 1.2:

[+] Accept a script as a banner
[+] Check if there is a new version of the plugin
[-] Correct bug : Edit banner

Changelog 1.1:

[+] add new file "swfload.swf" => enable to click an swf banner
[-] BUG Display flash
[-] Change varchar(255) to TEXT

Download the current version :

WP-Addpub 1.2.2 (36.47 Ko)
Téléchargé : 124 fois

Old versions :

WP-Addpub 1.2.1 (36.48 Ko)
Téléchargé : 328 fois

WP-Addpub 1.2 (36.45 Ko)
Téléchargé : 136 fois

WP-Addpub 1.1 (34.87 Ko)
Téléchargé : 213 fois

WP-Addpub (34.72 Ko)
Téléchargé : 477 fois

Partager et découvrir : Ces icônes sont des liens vers des sites de partage de signet sociaux où les lecteurs peuvent partager et découvrir de nouveaux liens.
  • Digg
  • del.icio.us
  • BlogMemes
  • blogmarks
  • ThisNext
  • blogtercimlap

Related posts

40 Comments so far »

  1. by David MEKERSA ,

    5 February 2008 @ 10:28

    Hi, I managed to install the plugin under my Wordpress 2.0, the admin page is working well but my blog crach… error call function register blabla :-(

  2. by admin ,

    5 February 2008 @ 11:21

    Hello,

    The function wp_register_script is not integrated in wordpress v2.0.

    Try to modify the function load_swfobject() line 41 in the file /wp-content/plugins/wp-addpub/wp-addpub.php by the following code :


    function load_swfobject() {
    echo "\n".'<!-- Start Of Script Generated By wp-addpub 1.0 -->'."\n";
    echo "<script type='text/javascript' src='".get_bloginfo('siteurl')."/wp-content/plugins/wp-addpub/swfobject.js?ver=6124'></script>";
    echo '<!-- End Of Script Generated By wp-addpub 1.0 -->'."\n";
    }

    Hope that you upgrade your blog :)

  3. by FEED.NIO.NAME » wp-addpub ,

    19 March 2008 @ 15:58

    […] Visit […]

  4. by Wp Wordpress » Blog Archive » wp-addpub ,

    19 March 2008 @ 16:46

    […] Visit […]

  5. by juan ,

    8 April 2008 @ 15:55

    Great! this plugin its perfect for me!

    Can i put a single code line for all banners?

    and show something like ul - li banner#1 /li - li banner#2 /li /ul ?

  6. by admin ,

    9 April 2008 @ 14:22

    Hello,

    You can put a single code for all banners. You need to specify a filter when adding a banner.

    best regards

  7. by juan ,

    13 April 2008 @ 18:30

    Hello, something like for all banners, not whith ID

  8. by Michelle Rodriguez ,

    20 June 2008 @ 10:51

    I was able to get a banner in my sidebar without a problem, but it does not link to the corresponding website that I entered in the “link” field in the edit banner menu. Also, what do I put in the “filter” field in the edit banner menu.

    Many thanks for the great plug in!!!

  9. by admin ,

    20 June 2008 @ 12:38

    Hello,

    You can use the field “filter” to customize the banner that you want to display.

    eg: if you want to display one different banner per category, you can put the id of the category in this field and then you put the following lines in your sidebar for example:

    $catid = get_the_category(); // get the ID of the category
    wp_addpub(”filter=”.$catid[0]->term_id); // show banner that has filter equal to the cat id

    For your other question about url link. if you are using a swf file as a banner, it’s not possible in this version. You should modify your flash if you can.

    I’m looking for the solution & it should be available in the next version.

    Best regards

  10. by admin ,

    11 November 2008 @ 10:50

    Hi,

    To update my last comment. Now you are able to link a flash banner to a corresponding website that you specified in the “link” field.

    Thanks

  11. by Chris ,

    20 November 2008 @ 20:57

    How do i display different banners in the same area?
    example: i want have 10 728×90 banners to rotate through the header… how do i code that? thanks!

  12. by admin ,

    21 November 2008 @ 9:47

    Hi,

    Sorry, the actual version of wp-addpub can’t manage a rotation of banners. However, its’a an amazing features that ca

  13. by admin ,

    21 November 2008 @ 9:55

    Hi,

    The actual version cannot manage a rotation of banners. However, it’s a good feature that can be implemented in the v1.3.

    The 1.2 will accept html and javascript codes as a banner, so you will be able to add a script that rotate your banners.

    The 1.2 is coming soon.

  14. by WordPress Plugins Database » Plugin Details » wp-addpub ,

    22 November 2008 @ 13:25

    […] Visit […]

  15. by admin ,

    22 November 2008 @ 13:42

    The version 1.2 is available for download now.

    Now, You can add a javascript or html code as a banner.

    Do not hesitate to contact me if you have any further questions.

  16. by bimz ,

    25 November 2008 @ 11:15

    Hello,
    first of all, thank you for the plugin! :)

    However, I have a problem in putting more than 1 banner ‘group’ in a page. For example I want to display 2 banners, one in my sidebar, and one in my main content. I put the required code “wp_addpub(’zone=the-zone’)” in both the sidebar and main content area, but only the sidebar banners being shown. Is there a limitation for one function usage in a page, or is there something’s wrong in my part?

    Thank you.

  17. by admin ,

    25 November 2008 @ 11:35

    Hello,

    First, make sure that your banners are activated.

    If you want to display 2 different banners in the same page. you should use different zones or filter.

    The banner must have a unique (zone + filter) data

    eg:

    wp_addpub(”zone=content”)
    wp_addpub(”zone=sidebar”)

    OR

    wp_addpub(”zone=the-zone&filter=content”)
    wp_addpub(”zone=the-zone&filter=sidebar”)

    Let me know, if it works

  18. by bimz ,

    25 November 2008 @ 15:59

    Hello,
    Thanks for your reply. Well, I managed to solve the problem, which is.. uh.. a really stupid mistake on my part. I actually edited the wrong file. And that explains why the main banner isn’t shown while sidebar are shown perfectly. This plugin itself works really well!

    Thanks for your support and sorry for bothering you.. -__-;

  19. by admin ,

    25 November 2008 @ 16:44

    You are welcome.

  20. by Juan K ,

    20 February 2009 @ 20:40

    Hi

    I know Im going to sound like a complete idiot but on the How to Use Instructions: When you say: “Add the following line in your theme:

    1.

    Do you mean 1)add that line to any file on my theme? 2)add that line to the files on my theme were i will use the plug in? or 3) Is there an specific file called “theme” That I need to add this line to?

    Sorry for the stupid question but I don’t have to much experience as Im sure you can tell

    Thank you

  21. by admin ,

    20 February 2009 @ 22:53

    Hi,

    You’re right. The explanation wasn’t clear enough :)

    You can add the line in the file where you want to place the banner.

    e.g. : if you want to place the banner in your sidebar below the categories menu, you have to find the categories block (div) in the sidebar.php and add the line just after.
    You can use the theme editor of wordpress to edit the file sidebar.php.

    i hope it helps you. Don’t hesitate to ask me if you couldn’t find it out.

  22. by Juan K ,

    21 February 2009 @ 4:13

    Thanks So much, it works perfectly!

  23. by KING_Hack ,

    13 March 2009 @ 17:30

    I have a truble.
    I add new banner then upload flash file and active this. Ok
    When I edit this banner and I save it then type change from swf to code but the code is html for image tag and not for flash object.

    There is any solution for this?

    PS: sorry for my english :D

  24. by admin ,

    14 March 2009 @ 8:36

    Hi,

    if you want to add a swf banner, you should upload it as a file and the plugin will display automatically via swfobject. Html code can be used to display a html or a javascript code like adding google adsense code…

    I hope it can help you.

  25. by KING_Hack ,

    14 March 2009 @ 9:18

    Thanks you admin :)
    ..but if I re-edit flash banner because i would change his link/title when i saved my mod the type of banner changed from swf to code and I don’t visualize it on my blog.
    If i see propriety of this banner the code field’s is empty.

    I have this problem only flash banner.
    It’s only my problem?
    I have to reload the banner?
    Do you think this is the only solution?

    I’m sorry for too many questions :)

  26. by admin ,

    14 March 2009 @ 9:33

    Yes, you should reload the banner because you’ve changed the content of the html code.

  27. by KING_Hack ,

    25 March 2009 @ 9:52

    The plugin is incompatible with explorer
    I have tested banner in flash on exlorer 6 and 7.
    I have recived error message:
    “Internet Explorer cannot open the internet site http://…
    Operation Aborted”
    …and the site is blocked.

    I have edited wp-addpub.php on line:
    from (line 99)

    echo ”
    var so = new SWFObject(…
    so.write(\”wp-banner_div\”);
    “;

    to:

    echo ”
    window.addEvent(’domready’, function(){
    var so = new SWFObject(…
    so.write(\”wp-banner_div\”);
    });
    “;

    I not see flash banner but the site is not blocked.

    I suppose this is bug.
    How resolved this situation? Have you any suggestion?

    Bye

  28. by RaiulBaztepo ,

    29 March 2009 @ 0:29

    Hello!
    Very Interesting post! Thank you for such interesting resource!
    PS: Sorry for my bad english, I’v just started to learn this language ;)
    See you!
    Your, Raiul Baztepo

  29. by Tony V ,

    1 April 2009 @ 21:38

    Hi,
    installed the plugin wp-contents/plugins as recommended.

    works great in Firefox.
    but has issues in IE7

    in IE7 when I choose html option it closes up the browse option but does not provide a text area to imput the html. I have to click on add first, leave the page and come back then click on edit the new banner in order to see a text erea to add the html code in.

    Any chance you are aware of this? Any chance you have an easy fix for this?

    thanks for your time.
    thanks for an otherwise great plugin

  30. by Tony V ,

    1 April 2009 @ 21:39

    forgot to mention that I installed this in wp 2.7

  31. by admin ,

    2 April 2009 @ 7:59

    Hi,

    I’m trynna reproduce theses bugs.

    I will keep you posted.

    Thanks

  32. by Tony V ,

    3 April 2009 @ 15:42

    Thanks admin,
    any chance you were able to reproduce this issue yet?
    and maybe a fix? Getting ready to open up a service which will be in high need of this plugin.
    thanks again for your time.
    Tony V

  33. by admin ,

    11 April 2009 @ 18:52

    Hi Tony,

    Can you try the new version 1.2.2 please, and tell me if it works in IE7 ?

    Thank you

  34. by Tony V ,

    11 April 2009 @ 22:36

    Works fantastically Admin!
    Thank you very much for the update.
    And thank you very much for the great plugin.

    Tony V

  35. by baron ,

    21 June 2009 @ 16:08

    Works great, thank you

  36. by admin ,

    21 June 2009 @ 16:31

    You’re welcome :)

  37. by sammy edwards ,

    22 June 2009 @ 20:44

    thank you for such a great plugin. I would like to centre the banners on my page any ideas of how to edit my index.php to achieve this?

  38. by videodro ,

    23 June 2009 @ 3:40

    i’m not really sure what this plug-in does ? but i’m looking to add my logo in all video that i post on my website i’ve included a link for an example ; http://www.worldstarhiphop.com/videos/video.php?v=wshhsdo4cz87O2nxHf6l

    this video is not the websites own but they have thier logo on the player. is this what this plug-in does ?

  39. by admin ,

    23 June 2009 @ 8:30

    Hello Sammy,

    You can put the banners into a DIV then add a style margin:0 auto; and a fixed width.

  40. by admin ,

    24 June 2009 @ 11:37

    Hi videodro,

    Sorry, this plugin can’t do that.

    Thanx

Comment RSS · Trackback

Leave a comment

Name: (Required)

E-mail: (Required)

Website:

Comment:

Autumn Flowers music to download Badlands download mp3 Cozmic Spore Vs Greg Gow download songs D3o english mp3 Djeli Moussa Diawara and Bob Brozman mp3 downloads Four Freshmen dowland Harry Nilsson english mp3 Ignosis downloads Jing Chi album Joe Renzetti mp3 music Lordi mp3s MoskovSKAya downloadable music Nels Cline Singers music downloading New Atlantis download Pleymo music downloading Reach The Sky mp3 online Rhonda Vincent songs Rodrigo, Falla (Carlos Bonell) review Rogerio Skylab mp3 search Salem Hill top mp3 Scooter Vs Status Quo get mp3 Technova mp3 online Tommy Flanagan With John Coltrane songs Wars of Ages all mp3 Zizi Possi music 32crash pop Assemblage 23 buy mp3 Billy Dalessandro albums Brocas Helm album Church pop David Bustamante album Deep Zone Project and Balthazar review Dj Wally Sparks and Ludacris downloadable music Ear Shot pop Eric Virgal review Frank Specht get mp3 Harold Budd and Andy Partridge mp3 search Hopkinson Smith music download Ilija Rudman top mp3 Kronos albums Mammoth Mammoth buy mp3 Mathias Kaden download mp3 Memory Garden top mp3 Minas Morgul top mp3 My Chemical Romance review Padma Previ download mp3 Sakis Rouvas instrumental Tame One mp3 songs Thousand Foot Krutch all mp3 Tom Waits and Crystal Gayle dowland Airscape dowland America mp3 search Big Tone music to download Cajun Playboys download mp3 Chop Sakis get mp3 Cortney Tidwell get mp3 DJ Groove and DJ Dan and DJ Fashist mp3 music Erol Alkan new mp3 Field Music mp3 songs Fun Da Mental best mp3 Geir Jenssen and Pete Namlook download songs Gregor Tresher and Monika Kruse songs Jessie Morales all mp3 Jonzun Crew dowland Kiko music Louis XIV mp3 Luciano Pereyra song downloads Micatone top mp3 Poisonblack mp3 song Roni Size and Reprazent mp3 Seamo With Bennie K all mp3 Senor Coconut music Shunsuke Kikuchi mp3 downloads Spirit Of Tranquility mp3 Steve Roach, David Hudson and Sarah Hopkins new mp3 Terrorizer mp3 search Underground Resistance download Abstract Rude - Tribe Unique downloads Addicts review Aeon mp3 song Alvin Youngblood Hart review Azuma Yoshitaka and Akita and Haswell and Sakaibara mp3s Balkan Beat Box review Burial mp3 search Fonya songs Gipsy Of Rajastan download Hossein Alizadeh, Homa Niknam, Madjid Khaladj downloads John 00 Fleming top mp3 Khlyst english mp3 Luke Solomon music download Lydia Lunch song downloads Ole Lukkoye download songs Pandit Jasraj and Ashwini Bhide mp3 search Post Mortem buy mp3 Prabodhi download Righteous Brothers mp3 music Stel And Good Newz pop Trentemoller And Buda song downloads Wat mp3 songs Yeah Yeah Yeahs download