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.5:
[+] add CDATA to javascript code to ignore by the validator (Thanks to by Jorge)
[+] add the full url to swfobject (Thanks to Jorge)
[+] add width to the banner type input
[-] bug fixed : when updating a banner without uploading a new file, it changes to html code.
Changelog 1.2.4:
[+] code optimization
[-] bug : user level access set to 8 (Thanks to Lars Schenk)
[-] bug : error when adding a html banner (Thanks to inklude)
Changelog 1.2.3:
[-] bug div id when displaying many swf in the same page.
[+] show error if cannot upload the file
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 from wordpress.org plugin directory:














#1 by didikajah on 3 March 2010 - 2 h 29 min
Quote
hello, i just installed wp addpub on my website.
first, i dont see any problem.
but since last week, my banner is dissapear…
any suggestion?
http://www.rumahdibali.com
the banner should show on the bottom of the header.
thanks
#2 by Seth on 5 January 2010 - 4 h 53 min
Quote
Quick question, not looking to add multiple lines per ID, how would you write a loop for all banners activated to show?
#3 by NightWalker on 27 November 2009 - 0 h 33 min
Quote
Thanks. I have now customizing the Plugin.
I like your plugin, its simple and the code is good structed.
#4 by admin on 25 November 2009 - 21 h 50 min
Quote
Hello,
Sorry, the plugin can only show a unique banner.
You can use bannerID to show them all :
wp_addpub ( “bannerID=1” );
wp_addpub ( “bannerID=2” );
wp_addpub ( “bannerID=3” );
wp_addpub ( “bannerID=..” );
or you could also use a loop.
Kind Regards.
#5 by NightWalker on 25 November 2009 - 21 h 18 min
Quote
zone=chap means zone=left
Hope you can help me
#6 by NightWalker on 25 November 2009 - 21 h 17 min
Quote
argh another try
Hi!
Thanks for this great Plugin.
I’ve created a zone names “left” and add it to my theme like this
if (function_exists(‘wp_addpub’)) {wp_addpub ( “zone=chap” ) ;}
and i want to show all Images which are in zone “left” in my sidebar.
But it always shows only the first Image which has this zone.
How can i fix it?
Greats Night Walker
#7 by Didikajah on 26 October 2009 - 10 h 48 min
Quote
no, i want to put the banner in one place together
#8 by admin on 26 October 2009 - 10 h 38 min
Quote
If you have 3 banners to put in 3 different places, you need to put the code 3 times using the right filter or bannerID.
#9 by Didikajah on 26 October 2009 - 10 h 17 min
Quote
sorry… i dont know what’s the problem but i couldnt post the code here…
but if you could imagine, i just copy paste your code into a div tag on my templates. i think it will be display my 3 active banner but only 1 banner shown. i don’t know what’s wrong with this.
thank you very much for your help… its just too bad that i couldnt show you the code here…
#10 by Didikajah on 26 October 2009 - 10 h 07 min
Quote
lol… i’ll try once more
#11 by Didikajah on 26 October 2009 - 10 h 04 min
Quote
#12 by admin on 26 October 2009 - 10 h 02 min
Quote
please put the code between two < code > < /code >
< ?php echo "test";?>#13 by Didikajah on 26 October 2009 - 10 h 01 min
Quote