This post is also available in: French

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:

  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.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:

http://wordpress.org/extend/plugins/wp-addpub/