D7.0.3 Events Pop-up Calendar - Time Limit

I want to limit users to adding events that only occur within the next seven days.

If a user tries to add an event that happens > 7 days, an error message will appear.

Can anyone point me in the right direction?

 

Quote · 18 Nov 2010

Also, adding events that happen in the past should be blocked too.

 

Does anyone know how to do this?  Is there a simple fix?

Quote · 18 Nov 2010

Is it possible to make this a requirement in the 'checker' section of the BxEventsFormAdd file?

 

 

'EventStart' => array(


'type' => 'datetime',
'name' => 'EventStart',
'caption' => _t('_bx_events_caption_event_start'),
'required' => true,
'checker' => array (

'func' => 'DateTime',
'error' => _t ('_bx_events_err_event_start'),
),

'db' => array (


'pass' => 'DateTime',


),

'display' => 'filterDate',
),

Quote · 18 Nov 2010

bump

Quote · 19 Nov 2010

bump

Quote · 22 Nov 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.