We have now opened a commercial services section here on the forum for registered users. If you have a Fabrik project that you wish to have someone work on for you, post it under Help Wanted. If you are an application developer and wish to earn some money helping others, post your details under Fabrik Application Developers.
Both of these are unmoderated. It will be up to both parties to work out the details and come to an agreement.
For running J!5.1 you must https://fabrikar.com/forums/index.php?wiki/update-from-github/ or include the new file manually https://fabrikar.com/forums/index.php?threads/joomla-5-1-and-fabrik-cannot-find-files-error.54473/post-285151 See also Announcements
/**
* If status is 1, allow edit. If status is 2, don't allow edit. If status is 3, punt and let normal ACLs decide
*/
switch ('{tablename___status_raw}') {
case '1':
return true;
case '2':
return false;
case '3':
return null;
}
/* This plugin compares the flight date to the jan 1 of the previous year and makes this record read only if the flight is that old.
* So - if it is 2021, and you try to edit a flight, if that flight happened in 2020 or 2021, you can edit it. If it happened in 2019, you cannot.
*/
$flight_date = strtotime('{daily_log___flight_date}'); // date of the flight as entered in the log.
$compare_date = strtotime(date('Y')-1 . '-01-01'); //Take this year - 1 and jan 1 to it and convert to unix time
if ( $flight_date < $compare_date) {
return false; // flight too old - cannot edit
}
return true; // Go ahead and edit.