RokAccess is an extremely popular plugin for Joomla 1.0, but hasn't yet been updated for Joomla 1.5. Thanks to Lukas White, we managed to get RokAccess working in Joomla 1.5.
How to get RokAccess working in Joomla 1.5
After installing the Joomla 1.0 RokAccess extension on your Joomla 1.5 website, you will need to change the rokaccess.php file which is located in /plugins/content/
There are 3 changes you need to make to this file:
$_MAMBOTS->registerFunction( 'onPrepareContent', 'botRokAccess' );
Change to:
$mainframe->registerEvent( 'onPrepareContent', 'botRokAccess' );
function botRokAccess( $published, &$row, &$params, $page=0 )
Change to:
function botRokAccess( &$row, &$params, $page=0 ) {
Delete:
if (!$published) {
$row->text = preg_replace( $regex, '', $row->text );
return;
}
How RokAccess works
To hide content using the RokAccess plugin you add the RokAccess tag to the content you want to hide. Here are some examples:
{rokaccess guest} Shows this content only to guest users {/rokaccess}
{rokaccess !guest} Shows this content to all users who are not a guest {/rokaccess}
{rokaccess registered} Shows this content to all users who are registered {/rokaccess}
{rokaccess guest,!editor} Shows this content this to all guests and members who are not editors {/rokaccess}
{rokaccess editor,special} Shows this content to editors, administrators, and superadministrators {/rokaccess}
In similarity to Ninja Access, when content is not shown to a particular group, the text is simply hidden.
Pros
- Free
- Complete
Cons
- You need to hack the plugin files to get this working in Joomla 1.5
- No support






























If you have to install using legacy mode, can you turn it off after install? I have lots of add-ons. Does that cause a problem? Can you turn legacy mode off and it still work?