14 Apr 2008 |
|
In this post we will be discussing the pros and cons of each of these plugins and explaining how to make RokAccess work in Joomla 1.5. Hiding content depending on whether a user is a registered member or a guest is a really useful feature to have. Fortunately, there are a number of different options available set content permissions in Joomla 1.5... JoomiHideHow JoomiHide worksThis is the simplest plugin available for Joomla 1.5 to hide content. Although it's simple it works seamlessly for showing content either to registered members or guests. Content in an article can be restricted to be displayed to certain visitors by adding these tags: {reg} This content is only displayed to registered users logged in {/reg}{unreg} This content is only displayed to unregistered users or non-logged in users {/unreg} When content is restricted for non-members, this plugin replaces the restricted text with: "To view rest of this section, please login or register". This is a nice feature but a little annoying to have it displayed each time content is not displayed. To remove or edit this text, you can hack the plugin by changing the html code on line 108 of joomihide.php which is in /plugins/content/. Unlike content restricted for non-members, when content is not shown to registered users there is no text added. Pros
Cons
Click here to see what other people are saying about JoomiHide. Click here to download this plugin. Ninja AccessHow Ninja Access worksHide content using this plugin by surrounding the content you want to be seen by certain groups in a tag. Ninja Access uses numbers to specify which group the content includes: {njaccess 0} Shows this content only to guests {/njaccess} When content is not shown to a particular group, the text is simply hidden. As you can see from the examples above, you need to know the default Joomla GroupIDs: 0 - Guest, 18 - Registered, 19 - Author, 20 - Editor, 21 - Publisher, 23 - Manager, 24 - Administrator, 25 - Super Administrator. Pros
Cons
Find out more about Ninja Access here. RokAccessRokAccess 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.5After 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' ); function botRokAccess( $published, &$row, &$params, $page=0 ) Delete: How RokAccess worksTo 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} In similarity to Ninja Access, when content is not shown to a particular group, the text is simply hidden. Pros
Cons
Click here to see what other people are saying about RokAccess. Click here to download this plugin. Which should plugin should you choose?It just depends on what your needs are. We recommend you choose the plugin you're comfortable using... If you don't want to hack any files and need support with getting the plugin to work, we recommend you use the Ninjoomla plugin. Do you have any experience with these plugins? We welcome your comments below. Comments (43)
![]()
...
Hi David,
...
Great article David!
...
Thanks for the info here. I thought I'd add some info on JoomSuite products as I've purchased four of them; JoomMember, JoomUser, JoomContent, and JoomDefender. While I think these components have potential, they are all technically still in beta. Support is just ok, so expect to wait a few days for responses. The English in all the components is atrocious, so plan on digging through the ini files. Note that all components are also encrypted, so customization is limited. This being said, JoomUser is pretty stable but does require a hack to your login mod if you don't use theirs, but I held off on buying the permissions component due to way too many bugs. I'd say visit them in August when they claim their components will be officially released.
...
re: Rok Access ...
...
Even with the changes you indicated to make it work with Joomla! 1.5, I still had a problem that appeared on all my site's pages:
...
Rokaccess is an ESSENTIAL part of my Joomla 1.0.x site and now I'm upgrading to Joomla 1.5. I've tried the hack mentioned above and it seems to work for my content items, but NOT in the modules I also use Rokaccess in. Can anybody confirm that this hack does not work within modules or did I do something wrong? Also, thanks for the informative article.
...
I like what Andrea had to say; I also have a church site with similar requirements. However, I'm wondering if there's a way to make certain groups of users have access to certain content.
...
I wanted to chime in again to let folks know that the Joomsuite extensions I reviewed earlier this year have been updated. I'm very happy with JoomMember and JoomUser, but there are some hacks that may be needed to get things working with thrid-party login modules and member registration.
...
I'd like to recommend a plugin called 'Hider'.
...
I installed Hider and it worked well within the articles, but when I tried to implement it within a custom template, {reg}Organization:{/reg} actually was outputted on the page in the browser as "{reg}Organization:{/reg}". Any ideas on how to get this to work within the template html?
...
Hi again, that is strange. Have you tried Hider? http://www.dioscouri.com/freed...deContent/ ?
...
I have succesfully installed RokAccess on 1.5, a huge thanks guys, but I can confirm it does not work in my modules.
...
Great article David on getting RokAccess for 1.5.
...
Hi. |




When building a website with Joomla 1.5, you might need to hide content from registreted users and guests. When we were recently building a website with Joomla 1.5, we came across the 3 options:

.


