Osclass: Renew Ads ...
 
Notifications
Clear all

Osclass: Renew Ads Free Plugin

16 Posts
5 Users
6 Reactions
2,366 Views
Alessandro Cagliostro
(@alessandro-cagliostro)
Posts: 212
Reputable Member
Topic starter
 

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 ).

 

 
Posted : April 2, 2017 18:14
Topic Tags
(@nootkan)
Posts: 29
Eminent Member
 

Here is an updated 1.0.4 version from Cartagena.  Some fixes for dashboard configuration alignment.

 

This post was modified 2 years ago by nootkan
 
Posted : August 12, 2022 06:40
(@asaga)
Posts: 31
Trusted Member
 

Hi,

This plugin used to have a log. Now i can't find that log anywhere. I use 5.2 dev version.

Thanks

 
Posted : September 20, 2022 18:00
Alessandro Cagliostro
(@alessandro-cagliostro)
Posts: 212
Reputable Member
Topic starter
 

@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}'

 
Posted : September 20, 2022 18:43
(@nootkan)
Posts: 29
Eminent Member
 

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.

This post was modified 2 years ago 2 times by nootkan
 
Posted : September 20, 2022 21:12
Editor
(@editor)
Posts: 553
Honorable Member Admin
 

@nootkan Not your fault !! No version works right with Mindstellar release 5.x.

 
Posted : September 20, 2022 21:16
nootkan reacted
Editor
(@editor)
Posts: 553
Honorable Member Admin
 

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}'

 
Posted : September 23, 2022 01:06
Page 1 / 3