Home  Extras  MODx Add-Ons  MemberCheck

MemberCheck



Votes: 0
Tags: Navigation, Menu, Personalization, snippet, user management
Submitted: Jul 2, 2009
Released: Jul 2, 2009
Downloads: 4
License: GPLv2


MemberCheck 1.2-beta2 | Author: splittingred

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


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


Forums Support Thread Votes: 19
Tags:
Submitted: Jul 28, 2006
Released: Jul 28, 2006
Downloads: 1255
License: LGPL
Package Website


MemberCheck PHP 4 | Author: garryn

A modified version of the MemberCheck snippet to work on PHP 4.


Forums Support Thread Votes: 20
Tags:
Submitted: Jan 3, 2008
Released: Jan 3, 2008
Downloads: 494
License: Free
Package Website


ManagerCheck | Author: sottwell

Display chunk for specified manager users.



Previous Releases


1.2-beta1

Votes: 6
Tags: Navigation, Menu, Personalization, snippet, user management
Submitted: May 21, 2009
Released: May 21, 2009
Downloads: 144
License: GPLv3


MemberCheck 1.2-beta1 | Author: splittingred

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


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

Forums Support Thread 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 | Author: Jason W. Falk (Whitefen)

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


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

Forums Support Thread 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 | Author: rethrash

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


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....




Comments

Please login to comment.

Close ]


 
 
 

Contact Us | Team Blog | FAQ | Site Credits

© 2005-2009 the MODx CMS project. All rights reserved. Privacy Policy | Terms of Service