View Full Version : Listing approval by admin based on selected plan
PGGO
December 29, 2012, 08:45 AM
Suggestion:
All listings posted under Free plan will require approval from administrator.
This option will help fight with spammers.
Mike
January 3, 2013, 07:17 AM
It can be done with small changes to the code.
includes/controllers/add_listing.inc.php
find code:
case 'done':// the last step
... some code which we don't need to change...
// change listing status
$update_status = array(
'fields' => array(
'Status' => $config['listing_auto_approval'] ? 'active' : 'pending',
'Pay_date' => 'NOW()',
'Featured_ID' => $featured ? $plan_info['ID'] : 0,
'Featured_date' => $featured ? 'NOW()' : ''
),
make changes
case 'done':// the last step
... some code which we don't need to change...
// change listing status
$update_status = array(
'fields' => array(
'Status' => $config['listing_auto_approval'] && $plan_info['Price'] > 0 ? 'active' : 'pending',
'Pay_date' => 'NOW()',
'Featured_ID' => $featured ? $plan_info['ID'] : 0,
'Featured_date' => $featured ? 'NOW()' : ''
),
PGGO
January 8, 2013, 10:20 PM
It works, great thank you!
However, there is only one minor issue with Confirmation Message.
The confirmation page stated that listing is “Activated”
I believe it should say “pending approval” instead.
Mike
January 9, 2013, 04:57 AM
One more change to fix incorrect message:
templates/your_template/controllers/add_listing.tpl and make changes
<!-- done -->
{if $cur_step == 'done'}
<div class="area_done step_area hide">
<div class="caption">{$lang.reg_done}</div>
<div class="info">{if $config.listing_auto_approval}{$lang.notice_after_ listing_adding_auto}{else}{$lang.notice_after_list ing_adding}{/if}</div>
change to
<!-- done -->
{if $cur_step == 'done'}
<div class="area_done step_area hide">
<div class="caption">{$lang.reg_done}</div>
<div class="info">{if $config.listing_auto_approval && $plan_info.Price > 0}{$lang.notice_after_listing_adding_auto}{else}{$ lang.notice_after_listing_adding}{/if}</div>
Powered by vBulletin® Version 4.1.9 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.