WP-Addpub banners management (wordpress Plugin)
Hello,
WP-addpub is a very simple plugin that let's you upload your banners in wordpress
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 plug Gengo
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…)
These variables can be used separately or together (example: "zone=sidebar&filter=EN")
Téléchargé : 330 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 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