djie
New Member
The caneditrow plugin seems only available for version 3.1 of Fabrik. I will be running Fabrik 3.0 on a production site (Joomla 2.5) so have no possibility to upgrade yet. I really would like to disable new/edit records after a certain condition (current time > recordtime).
But on use with the latest version of the plugin it returns a blank page. Is the Fabrik 3.0 version of the plugin still available?
I even got the true/false return code covered (see below), but even the sample wiki code doesn't work. The plugin keeps returning a blank page.
But on use with the latest version of the plugin it returns a blank page. Is the Fabrik 3.0 version of the plugin still available?
I even got the true/false return code covered (see below), but even the sample wiki code doesn't work. The plugin keeps returning a blank page.
PHP:
$db = JFactory::getDbo();
$query = $db->getQuery(true);
$eventid = ("{time_submitted___submit_events_raw}");
$query ->select('event_enddate')
->from('time_events')
->where('id = ' . $db->quote($eventid));
$db->setQuery($query);
$value = $db->loadResult();
if (time() > strtotime($value)) {return false;} return true;