User Ads Limiter
User Ads Limiter is a plugin that will give you the option to limit ads posted by users.
This plugin requires Classipress theme to be installed.
Why I should use this plugin?
In Classipress there is no option to limit number of posted ads by users, even if you are using membership packs. With this plugin you will be able to limit number of ads posted by users.
So, when the user clicks on “Post ad” or “Relist ad” button the plugin will check how many ads the user has. You can decide which statuses you want to count – live, paused, expired and even custom statuses you might have. If the number of ads has been reached, the plugin will redirect user to his/her Dashboard.
On the Settings screen you can choose how many ads can be posted by users. You can do this for users without membership packs and also for every membership pack on your Classipress installation.
When ads quota will be reached, user will be redirected to Dashboard with a message saying he has reached a limit for posted ads and should remove some old ads, or purchase a membership pack with higher ads limit and make some additional money.
You can even specify how many ads a user can post on daily, weekly and monthly basis.
With additional setting you can specify what type of ads are counted when calculating current number of user ads. You can specify to exclude Featured or Normal ads or count all.
You can use membership packs to give users different possibilities with number of ads they can post.
For instance you can allow only few ads without membership pack. If a user wants to post more ads, he has to buy a package that allows that.
There is also a user setting that you can use to limit each individual user from posting more ads than you allow. This setting can be overruled in plugin’s settings.
This plugin will block users that have reached the limit from posting new ads. If a user already has more ads then the limit, he will need to remove some before posting new or relisting old ads.
Imagine the user has 4 ads on his dashboard. Two of those ads are featured. You have set the maximum number of ads to 2 and excluding Featured from count. That means user can post 2 normal ads and unlimited number of featured ads. But it’s not like that. Since the plugin can not know if new ad will be featured or not, it will not allow then user to create new ad. That’s why there is a setting called Allow additional ad. It will allow the user to create one more ad even if the ad limit has been reached.
Here are some screenshots to give you a better understanding how this plugin works.
It only works on versions 3.4 and later.
This plugin also works with child themes, as long as they use core function for creating ads.
This plugin has been tested on Classipress 3.4.x, 3.5.x, 3.6.x and 4.x.
If upgrading from version 1.x.x:
Before installing version 2 go to plugin settings and click CHANGE BACK button, so the plugin is not integrated.
Then you can copy files over.
If you have already done that and forgot to click CHANGE BACK button, then copy these two files from Classipress original installation:
Or edit them manually by removing function
2016/02/25 – 1.0.0 – Initial version
2016/02/26 – 1.1.0 – Added option to display custom text for limit reached with max ads counter
2016/02/29 – 1.1.1 – Corrected a bug about missing function
2016/03/04 – 1.2.0 – Added limitation for each user on user’s settings
2016/03/14 – 1.2.1 – Fixed a bug that was not allowing users to post ads
2016/03/14 – 1.2.2 – Fixed a slash bug and added child theme compatibility.
2016/03/16 – 1.3.0 – Option to select which statuses you want to count as total user ads
2016/04/04 – 1.3.1 – Fixed a bug with out of sync admin message. Max ads in admin user profile also in see mode and some more.
2016/04/11 – 1.3.2 – Fixed a bug that was allowing user to post ads regardless of limitations.
2016/04/12 – 1.3.3 – Fixed a bug for renewing ads
2016/05/05 – 1.4.0 – Added an option to exclude featured or normal ads when counting user ads and also added an option to allow an additional ad if you have set to exclude featured ads
2016/07/09 – 1.4.1 – Fixed a bug that was not limiting ads
2016/07/11 – 1.4.2 – Deactivating the plugin didn’t remove the function from theme
2016/08/10 – 1.4.3 – User max ads counter on user profile page was showing wrong number of ads.
2016/08/26 – 1.5.0 – Added an option to redirect user to purchase membership page when reaching ads limit.
2016/10/21 – 1.6.0 – Added an option to limit user ads on period basis (day, week, two weeks, month).
2017/01/03 – 1.6.1 – Small change for integrating the plugin
2017/01/22 – 1.6.2 – Fixed some bugs regarding ad limits and overrides
2017/01/22 – 1.6.3 – Added alternate notice for those that can not see regular notices when posting ads is limited
2017/01/30 – 1.6.4 – Fixed a bug for users with membership active and made some changed about limit messages
2017/02/03 – 1.6.5 – Fixed a bug for additional ad allowed. It was allowing one more.
2017/03/21 – 1.7.0 – Compatibility with EasyCPMods Toolbox plugin
2017/08/15 – 1.7.1 – Fixed a small bug that was giving a warning about some variable.
2017/10/02 – 1.8.0 – Added new options for period limits (3 months, 6 months and yearly)
2017/10/03 – 2.0.0 – No need for integration after installing the plugin
2017/10/22 – 2.0.1 – Fixed a bug when deactivating plugin and when posting ad
2019/09/25 – 2.1.0 – Added an option to auto pause ads over quota from dashboard
2021/03/20 – 2.1.1 – Fixed a bug with ad limitations
2021/03/30 – 2.1.2 – Fixed a bug when ad limitation was 1
2021/03/31 – 2.1.3 – Fixed a bug with paid ads
2022/06/05 – 2.2.0 – Compatibility with EasyCPMods Toolbox 2.0
Fatal error: Call to undefined function replace_in_file() in /home/mixbe958/public_html/classificados/wp-content/plugins/user-ads-limiter/ecpm-ual-functions.php on line 192
I see the problem. I’ll fix this in the morning when I come to work and let you know. Thank you for the report.
There is a new version available that fixes this issue. Kindly download it.
Checked “Membership overrules user settings” and set a limit number to it, but the membership user still cannot post more ads after reach the ‘nopack’ limits…seems the membership overrides not working?
Does the user have an active membership pack? If yes, then it shouldn’t be mixed with “nopack” option.
I have been waiting for a plugin like this for a looooong time. Thank you!
That’s good to hear. If you have any suggestions about this or any other plugin, don’t hesitate to ask.
I installed the latest version because of some bugs, but not now ta more limited. Help me, I love this plugin.
Thanks for your reply.
I have done some corrections. Kindly download version 1.4.1 and try if it is working for you.
got the error
“Fatal error: Call to undefined function cp_get_membership_packages() in /home/tradewizcom/public_html/adverts/wp-content/plugins/user-ads-limiter/ecpm-ual.php on line 43”
after purchase and installing it . kindly help
What version of Classipress are you using? It should be at least 3.4.
I have this error:
Warning: Illegal string offset ‘draft’ in xxx/gosrs/wp-content/plugins/user-ads-limiter/ecpm-ual.php on line 312
FYI, a var_dump throws this : [“enable_status”]=> string(1) “o”
(shoudn’t it be an array?)
I have added a corrected version. After you save settings you shouldn’t get this error any more.
If it’s still showing warning please get back to me.
I need period limit to be 6 months. Is there any way to add this option?
No problem. I’ll add this functionality.
Will it be released on another update version soon?
Thank you for fast response.
It is already there, on version 1.8.0.
I sent you a new link.
Thank you very much.
When I post an ad I get an error:
Warning: require_once(/home/a/admsedps/classidrom/public_html): failed to open stream: Numerical result out of range in /home/a/admsedps/classidrom.ru/public_html/wp-includes/template.php on line 688 Fatal error: require_once(): Failed opening required ” (include_path=’.:/usr/share/php’) in /home/a/admsedps/classidrom/public_html/wp-includes/template.php on line 688
When the plug-in is disabled, the error is:
Fatal error: Call to undefined function ecpm_ual_change_theme_function() in /home/a/admsedps/classidrom/public_html/wp-content/plugins/user-ads-limiter/ecpm-ual-functions.php on line 47
PHP version – 5.5.38
WP version – 4.8.2
CP version – 3.5.8
User Ads Limiter – 2.0.0
I have corrected this. Kindly download new version.
Version 2.0.1 works without errors.
Excellent support, thank you!
Will you be releasing an update for Classipress version 4
Sorry for my late reply.
User Ads Limiter works on Classipress 4. I forgot to put it on post under Compatibility.
If there are any issues please contact me.
I am going to use this important plugins also if you can check classipress sites and improve different type of plugins will be helpful frankly out there more good themes than classipress and as fans of classipress we suffering lot… spicily themes appearance are too odd for current trend if you can build a beautiful themes for us please…