=== WP-Addpub === Contributors: cyberscorp Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=6286924 Tags: banner, ads, html, flash, manage Requires at least: 2.3 Tested up to: 2.8 Stable tag: 1.2.2 Banners Management (images, flash and html code) - can be used to customize banners by language or by category using zone and filter fields == Description == 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, etc). * Ability to display a banner depending on the language using the field filter. * Ability to add/edit a script banner. * Ability to display a random banner. == 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 These variables can be used separately or together (example: "zone=sidebar&filter=EN") == Frequently Asked Questions == = Can I manage a banner per category ? = Yes, you can use filter to specify the category's ID. e.g. $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 == Screenshots == 1. Add a banner 2. Edit a banner (How-to insert a HTML Code) 3. Display an embedded object == Changelog == = 1.2.2 = * bug ie7 resolved. = 1.2.1 = * Display a random banner using random argument. e.g. : wp_addpub ("zone=sidebar&random=true"); = 1.2 = * Accept a script as a banner * Check if there is a new version of the plugin * Correct bug : Edit banner = 1.1 = * add new file "swfload.swf" => enable to click an swf banner * BUG Display flash * Change varchar(255) to TEXT == A brief Markdown Example == How-to use: Add the following line in your theme: 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)