MemberCheck
Tags: Navigation, Menu, Personalization, snippet, user management
Submitted: Jul 2, 2009
Released: Jul 2, 2009
Downloads: 4
License: GPLv2
MemberCheck 1.2-beta2
Works with the following Version(s): Revolution-2.0.0 | Revolution-2.0.0-beta1 | Revolution-2.0.0-beta2
Checks to see if users belong to a certain group and displays the specified chunk if they do or an optional default chunk if they don't. Performs several sanity checks and allows to be used multiple times on a page.
- Fixed scope bug in snippet.
Download
- membercheck-1.2-beta2.transport.zip (4 downloads)
Description
Checks to see if users belong to a certain group and displays the specified chunk if they do or an optional default chunk if they don't. Performs several sanity checks and allows to be used multiple times on a page.
Instructions
Install via Package Management.
Sub-Packages
Votes: 19
Tags:
Submitted: Jul 28, 2006
Released: Jul 28, 2006
Downloads: 1255
License: LGPL
Package Website
MemberCheck PHP 4
A modified version of the MemberCheck snippet to work on PHP 4.
Votes: 20
Tags:
Submitted: Jan 3, 2008
Released: Jan 3, 2008
Downloads: 494
License: Free
Package Website
ManagerCheck
Display chunk for specified manager users.
Previous Releases
1.2-beta1
Tags: Navigation, Menu, Personalization, snippet, user management
Submitted: May 21, 2009
Released: May 21, 2009
Downloads: 144
License: GPLv3
MemberCheck 1.2-beta1
Works with the following Version(s): Revolution-2.0.0-beta1
This version has been marked as deprecated. Please use a newer version.
Checks to see if user is a member of a certain group.
Download
- membercheck-1.2-beta1.transport.zip (144 downloads)
Description
Checks to see if users belong to a certain group and displays the specified chunk if they do or an optional default chunk if they don't. Performs several sanity checks and allows to be used multiple times on a page.
Instructions
Install via Package Management.
1.1
Votes: 19
Tags: Navigation, Menu, Personalization, snippet, user management
Submitted: Apr 3, 2007
Released: Apr 3, 2007
Downloads: 1430
License: LGPL
Package Website
MemberCheck 1.1
Works with the following Version(s): 0.9.2 | 0.9.2.1 | 0.9.2.2 | 0.9.5
Checks a logged in user's group memberships and displays a chunk. Can be used multiple times on a page.
Download
- repo-1417.txt (1430 downloads)
Description
Checks to see if users belong to a certain group and displays the specified chunk if they do or an optional default chunk if they don't. Performs several sanity checks and allows to be used multiple times on a page.
Instructions
Copy contents of file to a new snippet called "MemberCheck".
Example usage:
!MemberCheck? &groups=`siteadmin, registered users` &chunk=`privateSiteNav` &default=`publicSiteNav` &ph=`MemberMenu` &debug=`true`!
This would place the 'members-only' navigation store in the chunk 'privateSiteNav' into a placeholder (called 'MemberMenu'). It will only do this as long as the user is logged in as a webuser and is a member of the 'siteadmin' or the 'registered users' groups. Otherwise, it will place the default chunk 'publicSiteNav' into the 'MemberMenu' placeholder. The optional debug parameter can be used to display informative error messages when configuring this snippet for your site. For example, if the developer had mistakenly typed 'siteowners' for the first group, and none existed with debug mode on, it would have returned the error message: The group siteowners could not be found....
UpdatesAdded the ability to define a default chunk using the &Default parameter (see below).
1.0
Votes: 20
Tags: Navigation, Menu, Personalization, snippet, user management
Submitted: Jun 29, 2006
Released: Jun 29, 2006
Downloads: 1414
License: LGPL
Package Website
MemberCheck 1.0
Works with the following Version(s): 0.9.2 | 0.9.2.1
Checks a logged in user's group memberships and displays a chunk. Can be used multiple times on a page.
Download
- repo-543.txt (1414 downloads)
Description
Checks to see if users belong to a certain group and displays the specified chunk if they do or an optional default chunk if they don't. Performs several sanity checks and allows to be used multiple times on a page.
Instructions
Copy contents of file to a new snippet called "MemberCheck".
Example usage:
!MemberCheck? &groups=`siteadmin, registered users` &chunk=`privateSiteNav` &ph=`MemberMenu` &debug=`true`!
This would place the 'members-only' navigation store in the chunk 'privateSiteNav' into a placeholder (called 'MemberMenu'). It will only do this as long as the user is logged in as a webuser and is a member of the 'siteadmin' or the 'registered users' groups. The optional debug parameter can be used to display informative error messages when configuring this snippet for your site. For example, if the developer had mistakenly typed 'siteowners' for the first group, and none existed with debug mode on, it would have returned the error message: The group siteowners could not be found....

Please login to comment.