Please Note: Development on this plugin is currently on hold due to lack of time. Expect MASSIVE update soon.
I am proud to announce the release of our first plugin, Multiuser ad management for the WordPress platform. The plugin is ideal for blogs with multiple authors and acts as an incentive for making quality posts. When the add-on is enabled, users will have full control over the advertisements displayed on their own posts. Using a space preallocated by the blog administrator, authors will be able to display various forms of advertisements in addition to accepting Paypal donations. This, in turn will also motivate writers to increase the frequency and quality of posts in order to reach a higher popularity and maximize the ability to monetize. Since this is our first attempt at a WordPress plugin, the installation process is still a bit rough. In this post, I will take you through the entire installation and configuration process (it’s rather short) to make implementation as easy as possible. We truly hope you enjoy using the plugin. Depending on the popularity, new features will continuously be added as needed by our users.
Download Links (July 24, 2010):
i) Sourceforge ii) WordPress.org
Unless otherwise stated, the plugin on this site is provided “as-is,” without any express or implied warranty. In no event shall Ravall be held liable for any damages arising from the use of the software. Please backup your blog before installation to ensure no data loss occurs.
Features:
- Ability to change advertisement settings through a graphical interface on the fly.
- Users can display image ads, input their own <HTML> codes (with admin verification), or accept donations by entering their Paypal account. With respect to image ads, users can also specify a time limit until the advertisement expires.
- As an added layer of security, the plugin will not be seen by users with a subscriber status. Since users with the power to post on your blog are typically trusted, the worry of misuse should be minimized. Despite this, we have sanitized all the inputs besides the Code textarea. To eliminate it’s misuse, the field is disabled until access is granted by an administrator.
Installation:
- The installation process is rather simple and starts with the extraction of the multiauthors folder from the RAR archive. In order to extract the folder, you will need a program such as Winrar.
- Without changing anything (Not even the folder name), place the extracted multiauthor folder into the plugins directory of your WordPress installation.
- Login to the administrative panel of the WordPress installation and activate the plugin. At this point in time, a MU Ad management option should appear on the admin navigation bar. This option will be visible to authors on your blog as well.
- In order to actually display the ads, we need to call the function: <?php mu_sidebar(get_the_author_id()); ?>. Wherever this function is placed, the ad will show. As you may be able to tell, on Ravall.com we have included this function at the bottom of the sidebar.
After following the steps above, although everything should be functioning, the script is still optimized for Ravall.com. We now need to modify the code to better suit your website.
Configuration:
- The first thing we need to configure is, the maximum size of custom (image) ads allowed. To do so, open the file, adminpanel.php and edit the variables, $maximagewidth & $maximageheight. The default values for these two variables are 152X172. Users will not be able to link to image files that are larger than the maximum restriction set by these two variables.
- All the actual outputting is done by multiauthorcommerce.php. If you dislike any message displayed by the script, simply navigate to this file and make the change.
The script functions off of the presence of two files. The file: adminpanel.php is responsible for taking in inputs by the user and displaying all the information present in the MU Ad Management option of the admin panel. The multiauthorcommerce.php file is responsible for grabbing data from the MySql database and outputting the data to the location where the mu_sidebar(get_author_id()) function is called.
We hope you enjoy using this plugin! If you have any questions, comments or feature request, feel free to leave a comment. We will get back to you as soon as possible!











Comments:
When I check my Email to get the link to add custom code. It says Page Not Found.. and does not make the custom text field free to write in.
hmm, the verification is done through the verify.php file. Can you send me the link it sends you in the email and the location of your verify.php file?
Edit:
.
I found the source of the problem. Originally, the plugin folder was named “/multiauthors/” but WordPress.org creates it’s own archive called “/wordpress-multiple-user-ad-management.” As a result, the links generated by the plugin where still searching for files within the “multiauthors” folders, resulting in a 404 error. I have updated the plugin to point to the folder generated by wordpress and everything should be functioning now
Correct, I got that last night lol was just coming back to let you know but you got it as well
Is there a way to make multiple different ads on a single page or just the one?
I am currently working on being able to call the function multiple times to display many instances of the ads
Also trying to make a stat counter to track the number of clicks. Probably will be included in the next release!
Looking at any WooTheme you can not help however discover how amazingly designed these types of styles are. Not are WooThemes visually stimulating, but they are designed to provide excellent user interaction and continue in order to modern website design developments.
mhm. I agree with you on that one
Probably the reason I signed up as an affiliate with them!
Hi,
Do you plan to improve the plugin so it can be used for Google Adsense ? where every author will post his Adsense code [ with certain size ] and no need for expiration date.
And the plugin can divide the code rotation between author and site owner ? say [60% for author code] and [40% for site owner code]
thanks a lot
Hello,
I can definitely implement the 60% author/40% admin feature on the next release. For the adsense code, you can simply paste it into the code section and it will display.
Oh in addition, setting an expiry time of 0 or leaving the expiry blank altogether will disable it.
Thanks for the input!
Manthan
Hello,
(Sorry for my bad english, I’m from France)
Thank you very much for this awesome plugin, it’s a very very very good work !
I just want to know, as althahabi has suggest you, if there was a release soon with a rotation option. Then, administrator could choose different rotations (60/40, 50/50, 40/60, etc…).
With this option, this plugin would be the must for sharing ads on WordPress. I’m going to spread it all over my webmaster/ blogger contacts, thank you again !
Np, your English is fine! As for the update, expect a release within the next week or so. I’ve been sort of caught up with Organic Chemistry work from university. After the course ends, I have all the time in the world to further improve the plugin
Hi Revalm! Thanks for answering me quickly !
Super, I wish you the best for your university work, take all the time you need, I can wait
Thanks a lot for your amiability !
Salvation from Paris !
Great post!
your plugin doesn’t work when WordPress is installed under a subfolder like mydomain.com/wordpress.
it looks for WP files under mydomain.com
Thanks for letting me know! Will upload the corrected version soon
Hello and thank you very much for this wonderful plugin.
I had the same problem but it seems to be fixed, I just modified the path in verify.php line 5
require $path/[mywpfoldername]/wp-load.php
As I do not know anything about programmation I do not know if I did well but it seems to work.
Thanks again Revalm
I fixed it for the next release. The problem was that the file was originally using the $_SERVER['DOCUMENT_ROOT'] function to include the wp_load.php file in the verify.php and ads.php files. Unfortunately, I overlooked the fact that, not everyone installs WordPress on the server root. As a result, PHP spits out an error that basically says, “What the heck? The file you were looking for is not here!” I have replaced the require function with: require(“../../../wp-load.php”); in the new release which will come out pretty soon
@ revalm : I am very thankful to you for giving out this great plugin for rewarding the other contributors with our readers reading and interest.
Please help me out, I have just installed this plugin a day before and done all settings and now it’s live on my blog digmlm.com but when users are submitting their html for their promotional banner then also only my default banner is keep showing and the contributors are complaining about the bad experience with my new launch of rewarding them for their valuable article submission at mine place.
Note:- I have given a setting of Numerical Ad rotation ratio at 0%
Recent post: http://www.digmlm.com/new-changes-in-adsense-for-content-ad-units where author is given his hostgator banner for publishing at my fixed area of advertisement by the contributors but only my banner is coming there
Phew! That was quite a challenge finding the bug. To my defence, it was an issue with WordPress and not the script haha. I still can’t believe the level of impact a simple incorrect !is_single() output can have!
Hello Revalm!
Thanks for this new release, containing rotation options !
I just have one request : in the case that the author has not properly setup the ad management system or if he has disabled ads, how to automatically display admin ads ?
Can you send me a hack to make it possible ?
Further more, how the plugin determines who is the admin ? Because when I put “60%” on the admin settings, my two admin accounts display : “This probability of your ads getting displayed on your posts is 40%”.
So the plugin considers my admin accounts like authors accounts. How to choose one of my admin accounts ?
Thousand thanks !
As of right now, the plugin assumes that the admin account is the user that has a id of 1. This in turn is the first account that WordPress automatically made for you when you completed installation. I will add a menu option so that you may choose the default admin user!
As for the admin ads by default, one step ahead of you there haha! Based on the recommendation of another user, I have already modified the code to display the default admin ads when a user chooses the disable option.
The new release will be out later this week. I’ll let you know
Thanks ! So if I have understood fine (because of my poor level in english), I just have to wait for the new release to have these 2 functions, isn’t it ? Thousand thanks for your help and your awesome work !
Hello Revalm,
Thanks for the new release ! I’m just reporting a little problem : the Ad Settings have disappeared from admin navigation bar for all authors and editors (only admin can see the ad settings).
Thanks !
Hey Job, Can you log into the admin account and go to administrative settings. Then there should be an option that states, minimum userlevel, can you choose authors for that and update?
Hmm, that is a weird issue, are you using any userlevel management scripts by any chance that would alter the original roles?
I’ve choosen “authors” from the beginning, and it doesn’t display for authors and editors, only for admin.
I’ve tested it on a new wordpress blog (latest release of wordpress) without any plugins activated, and it makes the same problem…
It’s strange because the precedent release of the plugin runs perfectly, authors show the plugin settings :/
I’ll check this issue out first thing tomorrow morning! Could you possibly link me to the installation where the problem is occurring? Additionally, would it be alright if I contact you via email?
Edit: I just tested the plugin on a new WordPress installation with a test user account and it seemed to function: http://imgur.com/t27MZ.png I will try to crack down the problem you are experiencing as soon as I receive the link
.
Sorry for the inconvenience.
Hello! For sure, you can contact me on my mail, I’ll send you credentials.
First off great plugin. Is it possible to limit admin setting to the super admin only?
Hey, I’ll look into it! Moving to new house atm. Reply back as soon as Internet Connection revives.
Edit:
The change will most likely be in the: multiauthorcommerce.php file with the line: add_submenu_page(“MU_Ad_management”, “Administrative_Management”, “Admin settings”,’manage_options’, “Administrative_Management”, “mu_admin_settings”);
Hello! Good plugin!
There should be an option to resend the googleads activation request to admin, because if admin forgets to authorize the user, the user cant do anything.
Also you could avoid bad code issues by letting the admin insert the googlead block with the size already set, so that users only have to put their PUB ID and google slot ad, and it will be replaced in the block of code that the admin set.
Hello, that should be easy to implement in the next release. The only problem is that I am currently very busy due to school work so it may take time. I’ll definitely note it down on my things to do list and appreciate the input!
I’m looking at using this for a multi-author site.
What we want is to be able to have people use their own Adsense (or whatever) code, and get 100% of the revenue (or perhaps slightly less if we find we need to keep a little to keep the site going).
But we don’t want to give the authors too much control over the ads. We don’t want them, for example, to make the ad giant and prominent, or to have ads of questionable content.
Does this plugin allow us to split control between the individual authors and the admins? Not revenue, but allow the admins certain controls while giving users others?
Also, does this plugin allow for a site that has several admins?
Looks to be a promising plugin but I’ve been unable to get it working on either of the two sites I have installed it on because it appears to have an issue with Another WordPress Classified Plugin. I get the following error on both sites.
Fatal error: Cannot redeclare isvalidurl() (previously declared in /home3/sitename/public/site/wp-content/plugins/another-wordpress-classifieds-plugin/functions_awpcp.php:1946) in /home3/sitename/public/site/wp-content/plugins/wordpress-multiple-user-ad-management/adminpanel.php on line 116
Have you heard of this issue before?
Same problem here, conflict with AWCP plugin.
I found a fix for this if your interested Darin
Fatal error: Cannot redeclare isvalidurl()
If you edit the file in the plugin folder named
“adminpanel.php” and do a search and replace
Your looking for “isvalidurl” and you replace with “ismyValidURL”
everything works fine after that. Thanks for the plugin Ravim. Suggest you rename that function when you have the chance so there are no future conflicts.
Thanks a ton for helping me solve that issue! I am a little caught up in university work but I will certainly update the function in the plugin so that it will not conflict
Thx 4 the plugin but it doesn’t work on my Wp 3.01 Mu website with Mystique theme.
All the Authors are able to see only my ads not their.
So I’ve tryed to create a new “Author” and set is account now in his posts NO BANNER is shown…
I’ve tried to place it in left sidebar.
Best regards,
Marco.
I am trying to run the plugin with the latest WordPress and a custom theme. I have the default user set to 1 and I’m trying to display a custom image ad using mu_sidebar(1) on all the pages and I’m getting this error: “The ad management script is not properly configured for this user”. Does anybody else have this error? Any help would be very much appreciated. Thanks!
WOULD LOVE TO SEE FEATURE LINKS THESE IN YOUR PLUGIN.
http://www.facebook.com/benjamin.howen#!/video/video.php?v=762316384744
Doesnt look like this plugin is configured or updated for WP 3.01, no matter what URL I insert, I keep getting the following error:
The text link title has been updated.
There is a problem with the url of your text link.
I tried http://www.domain.com and http://domain.com to no avail, correct me if I’m wrong but this should be a simple bug that can be fixed?
I just tried it out on a test blog. The error, “There is a problem with the url…” shows up when you only fill in one of the two required fields for a text link. Have you tried entering both the text link title & url before clicking the update button?
I just installed it, and have added the code for the function.
Now I go to MU user managementand … how do I add the adsense code?
I see the “Your own Code (For items such as Adsense): ” but it’s greyed out.
How do I approve myself? I don’t want to setup email to send me email.
Also, how do I disable all advertisement types except adsense?
Unfortunately at the moment everyone is required to validate themselves via email before access to this field. This was a bit of an overlook on my part which I will fix in the next major release coming out (Christmas break, a heck of a lot of time to edit the code!)
Do ads managed by this plugin self-expire, and if so can they be set tp expire after ‘x’ amount of page-views, unique page-views, etc.?
Currently only the custom ads can be set to expire after a certain period of time. However, I think your idea is brilliant! The next major release in December will have this feature implemented for sure.
I would like to apologize for the lack of support I have been able to offer for the last couple of months. I have been terribly busy and have not had the time to respond promptly. Rest assure however that I have taken the time to read every single comment left on this page. In the christmas holiday, I plan on adding requested features and fixing any bugs found in the plugin.
Sometimes it works, sometimes it doesn’t without modifying a single thing and I can’t understand why.
I’ve checked any single step my Authors were doing using Join.me (something like Team Viewer) and they did nothing wrong if you wanna take a look go here: http://downloadtaky.info
Admin username is Downloadtaky and MU banner are on the left My Banner is given from Smowtion and the one of my users are from different Ads Services. I’ve modified a lil bit my Mystique Template so I’ve placed the code straight into a sidebar instead of the Widgets.
Thanks for letting me know. I’ll take a look at it this weekend
Hi, now I’ve got it, it works but each time I activate it my feeds don’t validate anymore it creates white spaces into my feeds.
The problem started when I’ve upgraded my website from WP 3.0.1 to 3.0.3.
Any fix for it?
Thx a lot!
Problem solved
You have placed too much white spaces into your plugin so I have deleted them so it looks like it is working now and I have no more problems with my feeds 
Please remember my comment for next Plugin Upgrade, thx a lot!
Thank you for letting me know! i’ll add a CSS option in the next update so you don’t have to go through all the code
Thanks for the plugin but currently I can’t get the ads to work for multiple users.
So far my one user is able to put in his own code for a google adsense, but my default ad keeps showing up on his post where i put the sidebar code.
Something i’d suggest for the future is making multiple google adsense ads, perhaps all the categories, possible. Also, how do you place an ad next to content instead of below?
Thanks so much.
Hi, I got a questions. How to display page=MU_Ad_management in a custom page? Since I’m not allowing my user to have access to the WordPress backend?
I will create something like this: http://mydomain.com/admanagement and the page will display the ad management setting.
Is it possible?
Unfortunately, the current release does not have this option. I’ll add this to my stuff to do for the next release!
This plugin is very much what i have been looking for! I am not a great coder but do know enough to get around but I am hoping you or any of your knowledgeable commenters will be able to help me out.
I understand I can change the mu_sidebar(get_the_author_id() to look for some other identifier but I am wondering that with WP MU each blog is given a numerical id…is there a call that can work for the ads that work off the blog_id so that the ad could be placed outside the loop (for instance in the header) of each page?
Also has a new version come out that will allow for multiple and different ad sizes to be shown on a page?
Thanks so much for any help that can be provided!
Adam
Hey, i’ll add this to my massive list of things to do
. Ah, if only I had time right now. So eager to work on this plugin with the great ideas you guys are providing but can’t due to school!
Hello, I recently started a blog and the writers who have come on board are having difficulty understanding how to activate the plugin, request access for AdSense code, and whatnot. I’ve tried simply logging in after I create their account w/ a temp password & request permission before their first login, but when they change their password it says I cannot activate access b/c there are differences in the MySQL variables. I’ve tried looking through my site’s MySQL databases and can’t seem to find a way to manually add in a variable for them to enable the AdSense code w/o them trying to do it themselves; is this possible?
@TechTeenager Hey, sorry for the late reply. Ok so within the adminpanel.php, there is a line that says something like ”
As for the manual activation, I’ll add that in the next release for sure
. Wow, lots of stuff to do!
Hi revalm
Your plugin is exactly what I was looking for. But due to whatever issue, I cannot get it to work properly. My site is in a subfolder and I am using a custom theme. And like others, only the admin banners are showing up.
I’m more than willing to make a donation because this solves an annoying issue issue for me.
@CarPicks hi. Reading week break just started so I am off of university for a week. Will start working on the script as soon as some assignments are cleared up
I am looking for a solution like this one. I need a plugin that will handle multiple advertisers and multiple authors. Does this work with advertisers like clicksor,bidvertiser, and infolinks instead of just adsense. If you have a good solution please email me.
It it’s current state, you can paste the ad code from any publisher in the custom field. The custom field allows users to directly paste the code provided by their ad providers.
Also, I am currently rewriting the entire script. The navigation will be fully Ajax enabled, the script will allow users to directly sell ads on their posts and much more! All the features requested in this post are also to be implemented so I will add fields for clicksor and other providers.
hi webmaster, I recently found your site from lycos and read several of your many other articles. They are brilliant. Pleasee keep them coming!! Regards,
I love the concept! Anxious for the newer update. At this point the current plugin seems complicated, but I would love to add this feature to an area of my website
Hi,
I’ve installed your plugin but it not recognize me as administrator. I can edit the plugin setting but in “Ad setting” page recognize me as author and the in single post page show me this error: “error: the ad managemente script is not properly configured for this user”. Can you help me? Thanks,
Tiziana
Hmm, the most common reason leading to that error is that the is placed before the wordpress loop. Can you please try replacing that function with and tell me what that gives you? If it works then, that means that get_the_author_id() a wordpress function is not getting the author (function is placed before the wordpress loop). Also, you aren’t using the Buddypress plugin right? The reason why I ask is because the plugin is not currently compatible with Buddypress.
Hello, does this plugin work on the latest wordpress version? I’m planning to start a revenue sharing blog and I want to know which version of wordpress I’ll need to make this plugin work. Thanks.
Hello, the plugin should work under the latest wordpress version. Just entire you place the callout function after the wordpress loop. Otherwise, the function will not receive the correct current author value from WordPress and it won’t work.
Hi,
Thank you so much for this plugin. I have installed it and I hope it is ok.
My question are:
1) Does it means a user can not display more than one ads type? eg If I active Advertisement Type 1, then other will not be visible. Right.
2) If a user submits or changes his advertisement type, do I get an email for approval or does the ads show up on the webpage without approval?
3) Is it possible for me to disable all the advertisement type and keep only only one?
Hope to hear from you soon.
Thank you.!
1) Only one type of ad can be enabled at a time by the user. That is correct.
2) At the moment, there is no notification system built in when a user changes ad type. Since the plugin is meant for individuals with an author status or above, I thought it wouldn’t be necessary to include a notification system. After all, they can probably cause much more damage by posting content that is against the TOS!
3) In the php document with all the form elements, you can add the value, “enabled = false” and that form will be disabled. For example, let’s say you do not want the donations field to be active. Find the donation form element in the document and add enabled = “false” to it and it will be disabled.
Hope that answers the questions!
nice
thank u
Np, glad you liked the plugin!
Thanks for a very helpful product!
My site went down today and I determined that it was essentially because the ‘adimpressions’ user_meta value for the admin user was suddenly using more space than it should have. I couldn’t even log into my admin screens because of this. It wasn’t until I did a careful analysis of the database tables and noticed the user_meta table had grown from 1 MB to 10 MB in less than a day that I was able to track this down.
There were three entries for the same user, and they were all filled (totaling about 10 MB of space) with what appeared to be array data. Although I can see in your code that you are treating the data as a numeric value, I don’t think it was every reset, and it may be that upon initialization the data meta data began as an array, I don’t know. Also, the functions being used in the code were technically deprecated in 3.x, so although they still work, it probably would be good to switch to the replacement functions.
There are no other plugins referencing the word ‘adimpressions’.
That said, here’s a sample of the data I found in the records:
(1000, 1, ‘adimpressions’, ‘a:3:{i:0;a:3:{i:0;a:3:{i:0;a:3:{i:0;a:3:{i:0;a:3:{i:0;a:3:{i:0;a:3:{i:0;a:3:{i:0;a:3:{i:0;a:3:{i:0;s:5:”69296″;i:1;s:5:”69296″;i:2;s:5:”69296″;}i:1;a:3:{i:0;s:5:”69296″;i:1;s:5:”69296″;i:2;s:5:”69296″;}i:2;a:3:{i:0;s:5:”69296″;i:1;s:5:”69296″;i:2;s:5:”69296″;}}i:1;a:3:{i:0;a:3:{i:0;s:5:”69296″;i:1;s:5:”69296″;i:2;s:5:”69296″;}i:1;a:3:{i:0;s:5:”69296″;i:1;s:5:”69296″;i:2;s:5:”69296″;}i:2;a:3:{i:0;s:5:”69296″;i:1;s:5:”69296″;i:2;s:5:”69296″;}}i:2;a:3:{i:0;a:3:{i:0;s:5:”69296″;i:1;s:5:”69296″;i:2;s:5:”69296″;}i:1;a:3:{i:0;s:5:”69296″;i:1;s:5:”69296″;i:2;s:5:”69296″;}i:2;a:3:{i:0;s:5:”69296″;i:1;s:5:”69296″;i:2;s:5:”69296″;}}}i:1;a:3:{i:0;a:3:{i:0;a:3:{i:0;s:5:”69296″;i:1;s:5:”69296″;i:2;s:5:”69296″;}i:1;a:3:{i:0;s:5:”69296″;i:1;s:5:”69296″;i:2;s:5:”69296″;}i:2;a:3:{i:0;s:5:”69296″;i:1;s:5:”69296″;i:2;s:5:”69296″;}}i:1;a:3:{i:0;a:3:{i:0;s:5:”69296″;i:1;s:5:”69296″;i:2;s:5:”69296″;}i:1;a:3:{i:0;s:5:”69296″;i:1;s:5:”69296″;i
It goes on an on. I hope this information is helpful.
I’ve installed the plugin and all seems to be working…except the Ad Type 4 won’t enable even after approving, adding Google code and updating the code setting. What am I missing? Thanks for your help on this.
I am having most amount of difficulty trying to apply . I just do not know where I can put in this php function. Should I log into cpanel and manually update a file? Do I paste it into a post? I went to the widget and put in a custom one, ebedded the code and had no luck. Also, it seems as though I was not able to post in the adsense code. I like the idea of multi user posts, but I cannot figure this one out.
Hello, i post the comment after the post loop, but it only show my ads. The plugin is no compatibily with wp 3.3
Can you help me? is urgent.
Thanks a lot!
Hey, Unfortunately the plugin is quite outdated at this point in time. Between my classes I am coding an updated version. I have decided to start coding from scratch since this was my first plugin and the code wasn’t as optimized as it could have been. I am planning on launching a beta test before I release the new version. Would you be interested in that?
Yes i’m interested, the plugin is awesome and very util. And i dont find any other plugin like this
Any news my friend?
Heya, working on it
. So far I have got the registrations page, login page and some other features down. The new plugin will add quite a bit to “functionality.” Also, my course load decreases starting from February 1st so I will have even more time to allocate to the plugin! I know waiting sucks but hang in there (I’m almost in my final year of Uni so the workload is getting quite intense)
Hey Revalm,
I just discovered your plugin and it works great. However I have a quick question. If you look at a sample post on my site here:
http://www.themarsreel.com/bignews/2012/01/18/orange-in-new-orleans-is-syracuse-ready-to-make-a-final-four-run-3/
Notice the ads in the sidebar. Will authors be able to profit from the pre-set ads in the sidebar and header or do they only have the option to profit from ads inside the post that you see?