I'm running into an issue when I use the JACLPlus for joomla 1.5.15 and Yoothemes new templates (specifically VOX Feb 2010 download but this will apply to the earlier ones). Specifically, when I use this template, the menu (either in the left position or in menu position) only shows the built in joomla access levels unless I change the menu _style_ from list to one of the legacy's and keep the menu in the left position (module manager, main menu). The only problem with using legacy is that there seems to be no CSS _style_ attached (as what would show up if I used list).
I found through searching yoothemes forum that this issue is caused by yoothemes template - specifically yoomenu.php located in templates(yootheme name)htmlmod_mainmenuyoomenu.php. BYOS solved this issue a few years ago for the exact same issue for a user simply by supplying some modified code for the yoomenu.php file:
if ($node->name() == 'ul') {
// remove inaccessable items according to user rights
foreach ($node->children() as $child) {
// Start JACLPlus Modification
if( defined('_JACL') ) {
if (!JACLPlus::inList($child->attributes('access'), $user->get('jaclplus', '0'))) {
$node->removeChild($child);
}
} else
// End JACLPlus Modification
if ($child->attributes('access') > $user->get('aid', 0)) {
$node->removeChild($child);
}
}
The only problem is that this code was written several years ago (Feb 2008 I beleive and this doesn't seem to work with their current templates. I've attached the current yoomenu.php file in hopes that it can be modified to show the menu items that have the JACL access attached to them.