<% @ Language=VBScript codepage=1255 %> <% Option Explicit %> <% '**************************************************************************************** '** Copyright Notice '** '** Web Wiz Guide - Web Wiz Forums '** '** Copyright 2001-2003 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 as we maybe redirecting Response.Buffer = True 'Make sure this page is not cached Response.Expires = -1 Response.ExpiresAbsolute = Now() - 2 Response.AddHeader "pragma","no-cache" Response.AddHeader "cache-control","private" Response.CacheControl = "No-Store" 'Dimension variables Dim strUsername 'Holds the users username Dim strHomepage 'Holds the users homepage if they have one Dim strEmail 'Holds the users e-mail address Dim blnShowEmail 'Boolean set to true if the user wishes there e-mail address to be shown Dim lngUserID 'Holds the new users ID number Dim lngNumOfPosts 'Holds the number of posts the user has made Dim intMemberGroupID 'Holds the users interger group ID Dim strMemberGroupName 'Holds the umembers group name Dim intRankStars 'holds the number of rank stars the user holds Dim dtmRegisteredDate 'Holds the date the usre registered Dim intTotalNumMembersPages 'Holds the total number of pages Dim intTotalNumMembers 'Holds the total number of forum members Dim intRecordPositionPageNum 'Holds the page number we are on Dim intRecordLoopCounter 'Recordset loop counter Dim dtmLastPostDate 'Holds the date of the users las post Dim intLinkPageNum 'Holds the page number to link to Dim strSearchCriteria 'Holds the search critiria Dim strSortBy 'Holds the way the records are sorted Dim intSortSelectField 'Holds the sort selection to be shown in the sort list box Dim intForumID 'Holds the forum ID if within a forum Dim intGetGroupID 'Holds the group ID Dim strRankCustomStars 'Holds custom stars for the user group 'Initalise variables blnShowEmail = False intGetGroupID = CInt(Request.QueryString("GID")) 'If this is the first time the page is displayed then the members record position is set to page 1 If Request.QueryString("MemPN") = "" Then intRecordPositionPageNum = 1 'Else the page has been displayed before so the members page record postion is set to the Record Position number Else intRecordPositionPageNum = CInt(Request.QueryString("MemPN")) End If 'Get the search critiria for the members to display If NOT Request.QueryString("SF") = "" Then strSearchCriteria = Trim(Mid(Request.QueryString("SF"), 1, 15)) End If 'Take out parts of the username that are not permitted strSearchCriteria = disallowedMemberNames(strSearchCriteria) 'Get rid of milisous code strSearchCriteria = formatSQLInput(strSearchCriteria) 'Get the sort critiria Select Case Request.QueryString("SO") Case "PT" strSortBy = "" & strDbTable & "Author.No_of_posts DESC" intSortSelectField = 1 Case "LU" strSortBy = "" & strDbTable & "Author.Join_date DESC" intSortSelectField = 2 Case "OU" strSortBy = "" & strDbTable & "Author.Join_date ASC" intSortSelectField = 3 Case "GP" strSortBy = "" & strDbTable & "Group.Name ASC" intSortSelectField = 4 Case "SR" strSortBy = "" & strDbTable & "Group.Stars ASC" intSortSelectField = 5 Case Else strSortBy = "" & strDbTable & "Author.Username ASC" intSortSelectField = 0 End Select %> <% = strMainForumName %> חברים רשומים
<% = strTxtForumMembers %>
 <% = strMainForumName %><% = strNavSpacer %><% = strTxtForumMembers %>

<% = strTxtMemberSearch %>: ">
<% = strTxtAll %> A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
<% 'If the users account is suspended then let them know If blnActiveMember = False Then Response.Write (vbCrLf & "") 'If mem suspended display message If InStr(1, strLoggedInUserCode, "N0act", vbTextCompare) Then Response.Write(strTxtForumMemberSuspended) 'Else account not yet active Else Response.Write("" & strTxtInsufficientPermison & "

" & strTxtForumMembershipNotAct & "


" & strTxtToActivateYourForumMem) End If 'If email is on then place a re-send activation email link If InStr(1, strLoggedInUserCode, "N0act", vbTextCompare) = False AND blnEmail AND blnLoggedInUserEmail Then Response.Write("

" & strTxtResendActivationEmail & "") Response.Write("




") 'If the user has not logged in dispaly an error message ElseIf intGroupID = 2 Then Response.Write (vbCrLf & "" & strTxtMustBeRegistered & "

") Response.Write (vbCrLf & "  





") 'If the user has logged in then read in the members from the database and dispaly them Else 'If this is to show a group the query the database for the members of the group If intGetGroupID <> 0 Then 'Initalise the strSQL variable with an SQL statement to query the database strSQL = "SELECT " & strDbTable & "Author.Author_ID, " & strDbTable & "Author.Username, " & strDbTable & "Author.Group_ID, " & strDbTable & "Author.Homepage, " & strDbTable & "Author.No_of_posts, " & strDbTable & "Author.Join_date, " & strDbTable & "Author.Active, " & strDbTable & "Group.Name, " & strDbTable & "Group.Stars, " & strDbTable & "Group.Custom_stars " strSQL = strSQL & "FROM " & strDbTable & "Author, " & strDbTable & "Group " strSQL = strSQL & "WHERE " & strDbTable & "Author.Group_ID = " & strDbTable & "Group.Group_ID AND " & strDbTable & "Author.Group_ID=" & intGetGroupID & " " strSQL = strSQL & "ORDER BY " & strSortBy & ";" 'Else get all the members from the database Else 'Initalise the strSQL variable with an SQL statement to query the database strSQL = "SELECT " & strDbTable & "Author.Author_ID, " & strDbTable & "Author.Username, " & strDbTable & "Author.Group_ID, " & strDbTable & "Author.Homepage, " & strDbTable & "Author.No_of_posts, " & strDbTable & "Author.Join_date, " & strDbTable & "Author.Active, " & strDbTable & "Group.Name, " & strDbTable & "Group.Stars, " & strDbTable & "Group.Custom_stars " strSQL = strSQL & "FROM " & strDbTable & "Author, " & strDbTable & "Group " strSQL = strSQL & "WHERE " & strDbTable & "Author.Group_ID = " & strDbTable & "Group.Group_ID AND " & strDbTable & "Author.Username Like '" & strSearchCriteria & "%' " strSQL = strSQL & "ORDER BY " & strSortBy & ";" End If 'Set the cursor type property of the record set to dynamic so we can naviagate through the record set rsCommon.CursorType = 1 'Query the database rsCommon.Open strSQL, adoCon 'Set the number of records to display on each page rsCommon.PageSize = 25 'If there are no memebers to display then show an error message If rsCommon.EOF Then Response.Write "" & strTxtSorryYourSearchFoundNoMembers & "" 'If there is a recordset returned by the query then read in the details Else 'Set the page number to display records for rsCommon.AbsolutePage = intRecordPositionPageNum 'Count the number of members there are in the database by returning the number of records in the recordset intTotalNumMembers = rsCommon.RecordCount 'Count the number of pages there are in the database calculated by the PageSize attribute set above intTotalNumMembersPages = rsCommon.PageCount 'Display the HTML for the total number of pages and total number of records in the database for the users Response.Write vbCrLf & " " Response.Write vbCrLf & " " Response.Write vbCrLf & " " Response.Write vbCrLf & " " Response.Write vbCrLf & "
" 'If we are showing all the forum memebers then display how many members there are If Request.QueryString("SF") = "" Then Response.Write vbCrLf & " " & strTxtThereAre & " " & intTotalNumMembers & " " & strTxtForumMembersOn & " " & intTotalNumMembersPages & " " & strTxtPageYouAerOnPage & " " & intRecordPositionPageNum 'Else display how many results were fround from the search Else Response.Write vbCrLf & " " & strTxtYourSearchMembersFound & " " & intTotalNumMembers & " " & strTxtMatches End If Response.Write vbCrLf & "
" Response.Write vbCrLf & "
" %>
<% = strTxtSortResultsBy %>
<% If blnPrivateMessages = True Then %> <% End If %> <% 'For....Next Loop to loop through the recorset to display the forum members For intRecordLoopCounter = 1 to 25 'If there are no member's records left to display then exit loop If rsCommon.EOF Then Exit For 'Initialise varibles dtmLastPostDate = "" 'Read in the profile from the recordset lngUserID = CLng(rsCommon("Author_ID")) strUsername = rsCommon("Username") 'strEmail = rsCommon("Author_email") 'blnShowEmail = CBool(rsCommon("Show_email")) strHomepage = rsCommon("Homepage") lngNumOfPosts = CLng(rsCommon("No_of_posts")) dtmRegisteredDate = CDate(rsCommon("Join_date")) intMemberGroupID = CInt(rsCommon("Group_ID")) strMemberGroupName = rsCommon("Name") intRankStars = CInt(rsCommon("Stars")) strRankCustomStars = rsCommon("Custom_stars") 'If the users account is not active make there account level guest If CBool(rsCommon("Active")) = False Then intMemberGroupID = 0 'Write the HTML of the Topic descriptions as hyperlinks to the Topic details and message %> <% If blnPrivateMessages = True Then %> <% End If %> <% 'Move to the next record in the database rsCommon.MoveNext 'Loop back round Next End If %>
<% = strTxtUsername %> <% = strTxtType %> <% = strTxtRegistered %> <% = strTxtPosts %> <% = strTxtHomepage %><% = strTxtAddBuddy %><% = strTxtSearch %>
<% = strUsername %> <% = strMemberGroupName %>
" alt="<% = strMemberGroupName %>">
<% = DateFormat(dtmRegisteredDate, saryDateTimeData) %> <% = lngNumOfPosts %> <% If NOT strHomepage = "" Then Response.Write("") %> <% = strTxtAddToBuddyList %><% = strTxtSearchForPosts %> <% = strUsername %>
<% 'If there is more than 1 page of members then dispaly drop down list to the other members If intTotalNumMembersPages > 1 Then 'Display an drop down list to the other members in list Response.Write (vbCrLf & " ") End If %>
") 'Display a prev link if previous pages are available If intRecordPositionPageNum > 1 Then Response.Write("<< " & strTxtPrevious & " ") Response.Write (strTxtPage & " " & _ vbCrLf & " " & strTxtOf & " " & intTotalNumMembersPages) 'Display a next link if needed If intRecordPositionPageNum <> intTotalNumMembersPages Then Response.Write(" " & strTxtNext & " >>") Response.Write("
<% 'Reset Server Variables rsCommon.Close End If 'Reset Server Objects Set rsCommon = Nothing adoCon.Close Set adoCon = Nothing Response.Write(vbCrLf & "
" & _ vbCrLf & "
") '***** START WARNING - REMOVAL OR MODIFICATION OF THIS CODE WILL VIOLATE THE LICENSE AGREEMENT ****** If blnLCode = True Then If blnTextLinks = True Then Response.Write("Hebrew Translate By Web Wiz Hebrew Forums
Hebrew Version " & strHebrewVersion & "

") Response.Write("Powered by Web Wiz Forums version " & strVersion & "") Else Response.Write("Hebrew Translate By Web Wiz Hebrew Forums
Hebrew Version " & strHebrewVersion & "

") Response.Write("") End If Response.Write("
Copyright ©2001-2003 Web Wiz Guide") End If '***** END WARNING - REMOVAL OR MODIFICATION OF THIS CODE WILL VIOLATE THE LICENSE AGREEMENT ****** 'Display the process time If blnShowProcessTime Then Response.Write "

" & strTxtThisPageWasGeneratedIn & " " & FormatNumber(Timer() - dblStartTime, 4) & " " & strTxtSeconds & "
" %>