Osclass Renew Ads plugin will add a republish page to user dashboard.
From plugin admin you can set how many times a user can republish his ad, how long he have to wait to republish the ad again and if you want to be notified when a user republish his ad.
In plugin admin there are also cron job settings to delete expired ads and ads marked as spam.
The plugin have a log page where you can see 3 tables, one for ads that are been renewed by users, one for ads that will expire soon and one for expired ads that are been deleted. All tables are sortable by clicking on the header.
This plugin is meant to give the privilege to republish the ad only to registered users. It is NOT available at Osclass Market (so use at your own risk).
From https://plugins-zone.com/product/renew-ads/
Also you need to modify your Theme's user-custom.php file in order to fix some display mess in user dashboard Renew option. The sample file if for Osclass Wizards theme, you may need to adapt it to your theme.
The changes are in:
<div class="row"> <?php osc_current_web_theme_path('user-sidebar.php'); ?>
<div class="col-sm-8 col-md-9">
<h1 class="title"></h1>
<?php osc_render_file(); ?>
</div>
For archiving reasons, i'm attaching the latest version here (1.0.4 ).
Here is an updated 1.0.4 version from Cartagena. Some fixes for dashboard configuration alignment.
Hi,
This plugin used to have a log. Now i can't find that log anywhere. I use 5.2 dev version.
Thanks
@asaga It doesn't work right with versions 5.x
You can't even UNINSTALL the plugin:
ERROR: Call to undefined function getConnection() in /home/oc-content/plugins/renew_ads/index.php on line no 85 Error Code:0 with context:
'#0 /home/oc-includes/osclass/classes/Plugins.php(410): renew_ads_uninstall()
#1 /home/oc-includes/osclass/classes/Plugins.php(523): Plugins::runHook(\'renew_ads/index...\')
#2 /home/oc-includes/osclass/classes/controller/admin/CAdminPlugins.php(149): Plugins::uninstall(\'renew_ads/index...\')
#3 /home/oc-admin/index.php(95): CAdminPlugins->doModel()
#4 {main}'
Sorry guys I should have mentioned that I only tried it with the 8.02 and 3.8.1 versions as I don't use 5.2 because there are too many bugs to fix.
The developer fixed some issues I had with css in those versions but didn't tell me whether it would work with Navjottomer's version.
I also use his theme so I guess he only fixed it for that theme also.
Hopefully 5.2 will become stable in the not too distant future so I can give Navjottomer's version another try.
And when a user tries to renew from his dashboard:
2022-09-22 22:48:45 - ERROR: Call to a member function row() on bool in /home//oc-content/plugins/renew_ads/ModelRenewAds.php on line no 119 Error Code:0 with context:
'#0 /home/oc-content/plugins/renew_ads/user/user-page.php(111): ModelRenewAds->item_is_renewed(3551)
#1 /home/oc-includes/osclass/helpers/hTheme.php(62): include(\'/home/...\')
#2 /home/oc-content/themes/osclasswizards/user-custom.php(37): osc_render_file()
#3 /home/oc-includes/osclass/helpers/hDefines.php(293): require(\'/home/...\')
#4 /home/oc-includes/osclass/classes/controller/CWebCustom.php(103): osc_current_web_theme_path(\'user-custom.php\')
#5 /home/oc-includes/osclass/classes/controller/CWebCustom.php(84): CWebCustom->doView(\'user-custom.php\')
#6 /home/index.php(154): CWebCustom->doModel()
#7 {main}'