Ninja Access - JACL
Ninja AccessNinja Access - JACL allows you to hide or show portions of content depending on the access level of the viewer.

It is useful for selectively hiding content from different users, such as hiding ads from administrators and subscribers. Or hiding valuable content from un registered users while still allowing access to those with a specific groupid.

This mambot is used extensively throughout this site (and even on this page in fact!) to restrict  access to specific content to certain groups.

This extension is designed to work in conjunction with the JACL Plus component from Byos Technologies. It will operate with just the default Joomla groups, but you cannot create new groups via this extension.

Description

This requires a silver membership.

Mambo 4.6.2 Compatible

Joomla 1.0.x Compatible

Joomla 1.5.x Native Compatible

Valid CSS Button

Valid XHTML Button

 

To view a demo please refer to the space below this text, if you are logged out or have a free membership, you will see a blue information box. If you are a silver member or above, you will see the download link.

Downloads are restricted to Silver Members and above. Please upgrade your membership to download.

Downloads are restricted to Silver Members and above. Please upgrade your membership to download.

Usage instructions

Please note that a space has been inserted into the second position in the activation tags in the examples below to stop them being parsed by the bot now. It has been highlighted in blue. Remove this space when you wish to use the bot yourself.

{ njaccess groupid[,groupid]}...some content...{ /njaccess}
 
One or more group ids should be passed in seperated by commas.
These id's are checked individually and not recursive so you need to enter child groups as well if you want them to have access.
Accepts groups made in JACL as well as default Joomla! groupids.
   
Default Joomla Groupids:
  • 0 - Guest
  • 18 - Registered
  • 19 - Author
  • 20 - Editor
  • 21 - Publisher
  • 23 - Manager
  • 24 - Administrator
  • 25 - Super Administrator
Usage Example:

{ njaccess 0}shows only to guest users{ /njaccess}
{ njaccess 18,19,20,21,23,24,25}shows to all users who are not a guest{ /njaccess}
{ njaccess 24,25,30,31}shows to administrators and 2 custom groups (created in JACL - groupids are examples only){ /njaccess}

Real World Example:

My piece of text for the world to see.
{ njaccess 0}You need to <a href="login.html">login</a> or <a href="regist.html">register<a> to view the rest of this page.{ /njaccess}
{ njaccess 18,19,20,21,23}You are a registered user! Here is your information ...{ /njaccess}
{ njaccess 24,25,30,31}You are an administrator or special member, here is your special information .... { /njaccess}