members ads - expiry

Hi Guys,

 probably been asked before, but can't find a thread on it - how can I make the 'ADS' permanent instead of expiring after 30 days?

 

Tried increasing the number of days that an ad is valid for in admin, but anything over 30 just results in an error.

 

Any ideas?

 

thanks in advance,

 

Sky'

Quote · 27 Mar 2010

I think  there will need hardcode

We only have a unique modules for dolphin!
Quote · 27 Mar 2010

Would   -1 as a value work ?

https://dolphin-techs.com - Skype: Dolphin Techs
Quote · 27 Mar 2010

 

Would   -1 as a value work ?

 

Tried both 0 and -1 but no luck, still just reports an error. Frown

 

Could maybe do with a 'Renew ads' feature to save retyping them in every month.

Quote · 28 Mar 2010

Has this been reported as a bug?

Quote · 28 Mar 2010

if you open /modules/boonex/ads/BxAdsModule.php  look around line 739 for:

$sMaxedString = _t('_bx_ads_Warn_max_live_days', 30);

And look for this these lines around 871-887

'LifeTime' => array(
     'type' => 'select',
     'name' => 'LifeTime',
     'caption' => _t('_bx_ads_Life_Time') . " ({$sDaysC})",
     'info' => $sMaxedString,
     'value' => 30,
     'values' => $aLifeTimeValues,
     'required' => true,
     'checker' => array (
      'func' => 'length',
      'params' => array(1,2),
      'error' => _t('_Error Occured'),
     ),
     'db' => array (
      'pass' => 'Int',
     ),
    ),

This should allow you to either not make it required at all or set them to say 365 for a whole year.

https://dolphin-techs.com - Skype: Dolphin Techs
Quote · 4 Apr 2010

 

if you open /modules/boonex/ads/BxAdsModule.php  look around line 739 for:

$sMaxedString = _t('_bx_ads_Warn_max_live_days', 30);

And look for this these lines around 871-887

'LifeTime' => array(
     'type' => 'select',
     'name' => 'LifeTime',
     'caption' => _t('_bx_ads_Life_Time') . " ({$sDaysC})",
     'info' => $sMaxedString,
     'value' => 30,
     'values' => $aLifeTimeValues,
     'required' => true,
     'checker' => array (
      'func' => 'length',
      'params' => array(1,2),
      'error' => _t('_Error Occured'),
     ),
     'db' => array (
      'pass' => 'Int',
     ),
    ),

This should allow you to either not make it required at all or set them to say 365 for a whole year.

 

This is correct but you will aslo need to change 'params' =>array(1,2), to 'params' =>array(1,3), to enable this to work.

'LifeTime' => array(
     'type' => 'select',
     'name' => 'LifeTime',
     'caption' => _t('_bx_ads_Life_Time') . " ({$sDaysC})",
     'info' => $sMaxedString,
     'value' => 360,
     'values' => $aLifeTimeValues,
     'required' => true,
     'checker' => array (
      'func' => 'length',
      'params' => array(1,3),
      'error' => _t('_Error Occured')

Quote · 24 Jul 2010
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.