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 :
How-to use:
Add the following line in your theme:
-
<?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 :
Téléchargé : 124 fois
Old versions :
Téléchargé : 328 fois
Téléchargé : 136 fois
Téléchargé : 213 fois
Téléchargé : 477 fois









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
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
by FEED.NIO.NAME » wp-addpub ,
19 March 2008 @ 15:58
[…] Visit […]
by Wp Wordpress » Blog Archive » wp-addpub ,
19 March 2008 @ 16:46
[…] Visit […]
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 ?
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
by juan ,
13 April 2008 @ 18:30
Hello, something like for all banners, not whith ID
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!!!
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
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
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!
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
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.
by WordPress Plugins Database » Plugin Details » wp-addpub ,
22 November 2008 @ 13:25
[…] Visit […]
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.
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.
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
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.. -__-;
by admin ,
25 November 2008 @ 16:44
You are welcome.
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
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.
by Juan K ,
21 February 2009 @ 4:13
Thanks So much, it works perfectly!
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
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.
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
by admin ,
14 March 2009 @ 9:33
Yes, you should reload the banner because you’ve changed the content of the html code.
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
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
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
by Tony V ,
1 April 2009 @ 21:39
forgot to mention that I installed this in wp 2.7
by admin ,
2 April 2009 @ 7:59
Hi,
I’m trynna reproduce theses bugs.
I will keep you posted.
Thanks
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
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
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
by baron ,
21 June 2009 @ 16:08
Works great, thank you
by admin ,
21 June 2009 @ 16:31
You’re welcome
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?
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 ?
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.
by admin ,
24 June 2009 @ 11:37
Hi videodro,
Sorry, this plugin can’t do that.
Thanx