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
See Announcement
We are still working on the Joomla update.
foreach ($this->_optionVals[$sql] as &$opt)
{
eval($eval);
}
Did you try this one? (I think the rest is a discussion between Rob and Hugh)I would say use a database join element instead which would point to a database table which contains columns for the label, the value and the view access.
You could then write either an sql where statement to filter the options based on teh current users access level
... or use the eval sub options textarea to filter the returned options.
Im not at my pc to be able to give you more precise help though I think the eval method would be the simplest
1:this is my label visible to one and all
2: ohh you registered with us - neat
3: oh get you aren't you special
$bits = explode(':', $opt->text);
$accessLevel = $bits[0];
$opt->text = $bits[1];
$user = JFactory::getUser();
$levels = $user->getAuthorisedViewLevels();
if (!in_array($accessLevel, $levels)) {
return false;
}
$bits = explode(':', $opt->text);
$accessLevel = $bits[0];
$opt->text = $bits[1];
$user = JFactory::getUser();
$levels = $user->getAuthorisedViewLevels();
if (!in_array($accessLevel, $levels)) {
return false;
}