%
Dim MMS_GROUP_NUMBER
MMS_GROUP_NUMBER = "2,5" 'MMS_GROUP_NUMBER = "2, 5" ' Allow only groups with IDs 2 or 5
%>
|
About This Page This page is only available to registered members that are also part of a certain group. For this demo, the member with the username admin and password admin belongs to the group that we have named Group 1. Groups are established and named in the MMS administration area, where MMS automatically assigns the group an id number. The id number is used in the program and links - so you can change the name of the group, without affecting any of your links, etc. In addition, administrators can determine if any groups are assigned to all new registrants by default and whether members can change their own group assignments. You can try removing all groups from your profile to see that you will no longer be allowed access to the group members only area. (Note: You will only be allowed to change the 'group assignment' from your profile, if the demo admin still has the Public Group Assignment field enabled.) How to protect a page: Add the following code to any of your pages in order to make it accessible only to members of desired groups. (Simply add the group ID to the MMS_GROUP_NUMBER variable as shown below.) The allowed groups are set in MMS_GROUP_NUMBER variable. This variable can contain one or many groups separated by a comma. <% Dim MMS_GROUP_NUMBER MMS_GROUP_NUMBER = "2, 5" ' Allow only members with group ID 2 or 5. %> <!--#include file="app_config.asp"--> <!--#include file="inc_enforce.asp"--> Note: You can also generate customized group code from the administration. |