<% @ Language=VBScript %> <% Option Explicit %> <% '**************************************************************************************** '** Copyright Notice '** '** Web Wiz Guide - Web Wiz Forums '** '** Copyright 2001-2004 Bruce Corkhill All Rights Reserved. '** '** This program is free software; you can modify (at your own risk) any part of it '** under the terms of the License that accompanies this software and use it both '** privately and commercially. '** '** All copyright notices must remain in tacked in the scripts and the '** outputted HTML. '** '** You may use parts of this program in your own private work, but you may NOT '** redistribute, repackage, or sell the whole or any part of this program even '** if it is modified or reverse engineered in whole or in part without express '** permission from the author. '** '** You may not pass the whole or any part of this application off as your own work. '** '** All links to Web Wiz Guide and powered by logo's must remain unchanged and in place '** and must remain visible when the pages are viewed unless permission is first granted '** by the copyright holder. '** '** This program is distributed in the hope that it will be useful, '** but WITHOUT ANY WARRANTY; without even the implied warranty of '** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR ANY OTHER '** WARRANTIES WHETHER EXPRESSED OR IMPLIED. '** '** You should have received a copy of the License along with this program; '** if not, write to:- Web Wiz Guide, PO Box 4982, Bournemouth, BH8 8XP, United Kingdom. '** '** '** No official support is available for this program but you may post support questions at: - '** http://www.webwizguide.info/forum '** '** Support questions are NOT answered by e-mail ever! '** '** For correspondence or non support questions contact: - '** info@webwizguide.info '** '** or at: - '** '** Web Wiz Guide, PO Box 4982, Bournemouth, BH8 8XP, United Kingdom '** '**************************************************************************************** 'Set the response buffer to true Response.Buffer = True 'Dimension variables Dim intUserGroupID 'Holds the group ID Dim strGroupName 'Holds the name of the group Dim lngMinimumPosts 'Holds the minimum amount of posts to be in that group Dim blnSpecialGroup 'Set to true if a special group Dim intStars 'Holds the number of stars for the group Dim strCustomStars 'Holds the custom stars image if there is one fo0r this group Dim strMode 'Holds the mode of the page 'Initlise variables lngMinimumPosts = 0 blnSpecialGroup = False intStars = 1 'Read in the details intUserGroupID = CInt(Request.QueryString("GID")) 'Read in the page mode strMode = Request("mode") 'Read the various groups from the database 'Initalise the strSQL variable with an SQL statement to query the database strSQL = "SELECT " & strDbTable & "Group.* FROM " & strDbTable & "Group WHERE " & strDbTable & "Group.Group_ID = " & intUserGroupID & ";" 'Set the Lock Type for the records so that the record set is only locked when it is updated rsCommon.LockType = 3 'Query the database rsCommon.Open strSQL, adoCon 'If this is a post back update the database If (strMode = "edit" OR strMode = "new") AND Request.Form("postBack") Then 'Read in the group details strGroupName = Request.Form("GroupName") lngMinimumPosts = CLng(Request.Form("posts")) blnSpecialGroup = CBool(Request.Form("rank")) intStars = CInt(Request.Form("stars")) strCustomStars = Request.Form("custStars") 'If this is a non ladder group place -1 into the minimum posts variable If blnSpecialGroup Then lngMinimumPosts = CInt("-1") End If With rsCommon 'If this is a new one add new If strMode = "new" Then .AddNew 'Update the recordset .Fields("Name") = strGroupName .Fields("Stars") = intStars .Fields("Custom_stars") = strCustomStars If intUserGroupID <> 1 AND intUserGroupID <> 2 Then .Fields("Minimum_posts") = lngMinimumPosts .Fields("Special_rank") = blnSpecialGroup End If 'Update the database with the group details .Update End With 'If this is a new forum go back to the main forums page If strMode = "new" Then 'Release server varaibles rsCommon.Close Set rsCommon = Nothing adoCon.Close Set adoCon = Nothing Response.Redirect("view_groups.asp") End If 'Re-run the query to read in the updated recordset from the database rsCommon.Requery End If 'Read in the forum details from the recordset If NOT rsCommon.EOF Then 'Get the category name from the database strGroupName = rsCommon("Name") lngMinimumPosts = CLng(rsCommon("Minimum_posts")) blnSpecialGroup = CBool(rsCommon("Special_rank")) intStars = CInt(rsCommon("Stars")) strCustomStars = rsCommon("Custom_stars") End If 'Reset Server Objects rsCommon.Close Set rsCommon = Nothing adoCon.Close Set adoCon = Nothing %> User Group Details
User Group Details
Return to the the Administration Menu
Return to the User Group Administration page

<% 'If this is the admin group or guest group then don't let em change anything else If intUserGroupID <> 1 AND intUserGroupID <> 2 Then %> <% End If %>
User Group Details
Group Name*:
Number of Stars*:
This is the number of stars displayed for this user group, unless you use your own custom stars/image.
Custom Stars Image Link:
If you wish to use your own custom stars/image for this group type the path in here to the image.

Non Ladder Group:
If you check this box then this group will not be a part of the Ladder System.

>
Ladder Group Minimum No. of Posts:
This is the number of posts a user needs to post to automatically become a member of this group. This will not effect a Non Ladder Group.


What is the Ladder System?
The Ladder system enables your members to move up forum groups automatically depending on the number of posts they make. Once a member has made the minimum amount of posts for a Ladder User Group that member will be moved up to that user group.

If you select that a user group is a Non Ladder Group, any member of the group will not be effected by the ladder system, this is useful if you wish not to use the Ladder System or for special groups like moderator groups.