http://www.goodwebpractices.com/joomla/hide-content-from-certain-users.html
THIS IS AN AMAZING BLOG ENTRY!!
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. |
No comments:
Post a Comment