Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Forum Statistics
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Forum Statistics

 Post Reply Post Reply
Author
MKrivanek View Drop Down
Groupie
Groupie


Joined: 05 March 2003
Location: United States
Status: Offline
Points: 84
Post Options Post Options   Thanks (0) Thanks(0)   Quote MKrivanek Quote  Post ReplyReply Direct Link To This Post Topic: Forum Statistics
    Posted: 31 March 2003 at 8:55pm
Is there a way to turn off the forum statistics on the main page? I looked in the admin and didn't see it... could I be looking over something?  (preferably i wouldn't want to delete code to make this happen)
Back to Top
eaglesexec View Drop Down
Groupie
Groupie
Avatar

Joined: 02 December 2002
Status: Offline
Points: 127
Post Options Post Options   Thanks (0) Thanks(0)   Quote eaglesexec Quote  Post ReplyReply Direct Link To This Post Posted: 31 March 2003 at 10:19pm
ya i think you would have to delete code at this point. at least u can disable active members...
A good plan, violently executed now, is better than a perfect plan next week. -General George S. Patton.
Back to Top
MKrivanek View Drop Down
Groupie
Groupie


Joined: 05 March 2003
Location: United States
Status: Offline
Points: 84
Post Options Post Options   Thanks (0) Thanks(0)   Quote MKrivanek Quote  Post ReplyReply Direct Link To This Post Posted: 31 March 2003 at 11:24pm

hmm... alrighty then... will do. thanks

Back to Top
hans3702 View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 23 March 2003
Location: Netherlands
Status: Offline
Points: 141
Post Options Post Options   Thanks (0) Thanks(0)   Quote hans3702 Quote  Post ReplyReply Direct Link To This Post Posted: 31 March 2003 at 11:32pm

Write down the code you delete, and put that info here, so others can do the same easy.

JHH

Back to Top
MKrivanek View Drop Down
Groupie
Groupie


Joined: 05 March 2003
Location: United States
Status: Offline
Points: 84
Post Options Post Options   Thanks (0) Thanks(0)   Quote MKrivanek Quote  Post ReplyReply Direct Link To This Post Posted: 01 April 2003 at 12:38am

Delete the following code to remove forum statistics and active users from the main page (default.asp).  [Lines 525-631 deleted]:

<br/>
   <table width="<% = strTableVariableWidth %>" border="0" cellspacing="0" cellpadding="1" bgcolor="<% = strTableBorderColour %>" align="center">
 <tr>
  <td>
  <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="<% = strTableBgColour %>">
    <tr>
     <td bgcolor="<% = strTableBgColour %>">
   <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="<% = strTableBgColour %>">
    <tr>
    <td>
         <table width="100%" border="0" cellspacing="1" cellpadding="4">
          <tr>
           <td bgcolor="<% = strTableTitleColour %>" width="44%" class="tHeading" background="<% = strTableTitleBgImage %>"><% = strTxtForumStatistics %></td>
          </tr>
          <tr>
           <td bgcolor="<% = strTableColour %>" background="<% = strTableBgImage %>" class="smText" valign="top"><%
          
          
Response.Write(vbCrLf & "  " & strTxtOurUserHavePosted & "&nbsp;" & lngTotalNumberOfPosts & "&nbsp;" & strTxtPostsIn & "&nbsp;" & lngTotalNumberOfTopics & "&nbsp;" & strTxtTopicsIn & "&nbsp;" & intNumberofForums & "&nbsp;" & strTxtForums)
Response.Write(vbCrLf & "  <br />" & strTxtLastPostOn & "&nbsp;" & DateFormat(dtmLastEntryDateAllForums, saryDateTimeData) & "&nbsp;" & strTxtAt & "&nbsp;" & TimeFormat(dtmLastEntryDateAllForums, saryDateTimeData) & " " & strTxtBy & "&nbsp;<a href=""JavaScript:openWin('pop_up_profile.asp?PF=" & lngLastEntryUserIDAllForums & "','profile','toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resizable=1,width=590,height=425')"" class=""smLink"">" & strLastEntryUserAllForums & "</a>")

'Get the latest forum posts

'Cursor type to one to count
rsCommon.CursorType = 1

'Get the last signed up user
'Initalise the strSQL variable with an SQL statement to query the database
If strDatabaseType = "SQLServer" Then
 strSQL = "EXECUTE " & strDbProc & "AuthorDesc"
Else
 strSQL = "SELECT " & strDbTable & "Author.Username, " & strDbTable & "Author.Author_ID "
 strSQL = strSQL & "FROM " & strDbTable & "Author "
 strSQL = strSQL & "ORDER BY " & strDbTable & "Author.Author_ID DESC;"
End If

'Query the database
rsCommon.Open strSQL, adoCon

'Display some statistics for the members
If NOT rsCommon.EOF Then

Response.Write(vbCrLf & "  <br />" & strTxtWeHave & "&nbsp;" & rsCommon.RecordCount & "&nbsp;" & strTxtForumMembers)
Response.Write(vbCrLf & "  <br />" & strTxtTheNewestForumMember & "&nbsp;<a href=""JavaScript:openWin('pop_up_profile.asp?PF=" & rsCommon("Author_ID") & "','profile','toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resizable=1,width=590,height=425')"" class=""smLink"">" & rsCommon("Username") & "</a>")


End If

'Close the recordset
rsCommon.Close


'Get the number of active users if enabled
If blnActiveUsers Then
 'Initialise the SQL variable with an SQL statement count the number of records
 If strDatabaseType = "SQLServer" Then
  strSQL = "EXECUTE " & strDbProc & "CountOfActiveUsers"
 Else
  strSQL = "SELECT Count(" & strDbTable & "ActiveUser.Author_ID) AS ActiveUser From " & strDbTable & "ActiveUser;"
 End If

 'Query the database
 rsCommon.Open strSQL, adoCon

 'Read in the active users from the recordset
 intActiveUsers = CInt(rsCommon("ActiveUser"))

 'Close the recordset
 rsCommon.Close


 'Get the number of active guests
 'Initialise the SQL variable with an SQL statement count the number of records
 If strDatabaseType = "SQLServer" Then
  strSQL = "EXECUTE " & strDbProc & "CountOfActiveGuests"
 Else
  strSQL = "SELECT Count(" & strDbTable & "ActiveUser.Author_ID) AS ActiveUser From " & strDbTable & "ActiveUser WHERE " & strDbTable & "ActiveUser.Author_ID=2;"
 End If

 'Query the database
 rsCommon.Open strSQL, adoCon

 'Read in the active guests from the recordset
 intActiveGuests = CInt(rsCommon("ActiveUser"))

 'To save another database hit we can get the number of members online by taking the number of guest away from the total active users
 intActiveMembers = intActiveUsers - intActiveGuests

 'Close the recordset
 rsCommon.Close


 Response.Write(vbCrLf & "  <br />" & strTxtInTotalThereAre & "&nbsp;" & intActiveUsers & "&nbsp;<a href=""active_users.asp"" target=""_self"" class=""smLink"">" & strTxtActiveUsers & "</a> " & strTxtOnLine & ",&nbsp;" & intActiveGuests & "&nbsp;" & strTxtGuestsAnd & "&nbsp;" & intActiveMembers & "&nbsp;" & strTxtMembers)
End If
           %>
           </td>
          </tr>
         </table>
        </td>
       </tr>
      </table>
     </td>
    </tr>
   </table>
   </td>
 </tr>
</table>

Back to Top
whittibo View Drop Down
Groupie
Groupie


Joined: 24 May 2003
Location: United States
Status: Offline
Points: 180
Post Options Post Options   Thanks (0) Thanks(0)   Quote whittibo Quote  Post ReplyReply Direct Link To This Post Posted: 28 May 2003 at 8:40pm

HELLO AGAIN!!

I am still just poking around trying to see what all I can/can't do with my new toy!

I am wondering if I can only delete the part of the stitistics that lists how many posts in how many forums?  BECAUSE.. not everyone has access to all the forum, and if they are told there are 9 forums, but they only see 7.. well.. that's not very kind..

Thanks so much for all your guys help here.  I love my new forum.. it's exactly what I was searching for!

Back to Top
xeerex View Drop Down
Senior Member
Senior Member


Joined: 19 November 2002
Location: United States
Status: Offline
Points: 601
Post Options Post Options   Thanks (0) Thanks(0)   Quote xeerex Quote  Post ReplyReply Direct Link To This Post Posted: 28 May 2003 at 9:06pm

Sure...you can remove it from the response.write in the code listed above.

FYI, I wouldn't always post code in the forum. Its better to upload a zipped mod somewhere since a lot of coding in the forum could really slow searches down eventually.

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.