Print Page | Close Window

Forum Statistics

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=27198
Printed Date: 02 April 2026 at 7:17pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Forum Statistics
Posted By: Rudy81
Subject: Forum Statistics
Date Posted: 01 April 2009 at 2:31am
Is there a way to prevent the "What's Going On" "Forum Statistics" section of the main page from displaying? 
 
I have looked but cannot find any on/off switch for that display. I would like to keep access to that information within the admin panel, but not make it public. 
 
If there is a way to only display that information to members, that would be fine, but I don't want it displayed to non-members of my forum.
 
Thanks.



Replies:
Posted By: Rudy81
Date Posted: 05 April 2009 at 3:53am
Anyone?


Posted By: 123Simples
Date Posted: 05 April 2009 at 1:30pm
On your default.asp file find these lines (around 836)

Response.Write(strTxtOurUserHavePosted & " " & FormatNumber(lngTotalNumberOfPosts, 0) & " " & strTxtPostsIn & " " & FormatNumber(lngTotalNumberOfTopics, 0) & " " & strTxtTopicsIn & " " & intNumberofForums & " " & strTxtForums & _
"<br />" & strTxtLastPost & "; " & DateFormat(dtmLastEntryDateAllForums) & " " & strTxtAt & " " & TimeFormat(dtmLastEntryDateAllForums) & " " & strTxtBy & " <a href=""member_profile.asp?PF=" & lngLastEntryUserIDAllForums & strQsSID2 & """ rel=""nofollow"">" & strLastEntryUserAllForums & "</a>")


Change that to this:

If blnAdmin Then Response.Write(strTxtOurUserHavePosted & " " & FormatNumber(lngTotalNumberOfPosts, 0) & " " & strTxtPostsIn & " " & FormatNumber(lngTotalNumberOfTopics, 0) & " " & strTxtTopicsIn & " " & intNumberofForums & " " & strTxtForums & _
"<br />" & strTxtLastPost & "; " & DateFormat(dtmLastEntryDateAllForums) & " " & strTxtAt & " " & TimeFormat(dtmLastEntryDateAllForums) & " " & strTxtBy & " <a href=""member_profile.asp?PF=" & lngLastEntryUserIDAllForums & strQsSID2 & """ rel=""nofollow"">" & strLastEntryUserAllForums & "</a>")


That way only admin will see how many posts have been made, but others will not
Logged in as admin -



And then logged in as normal user -



Sorry it took a while to respond


-------------
http://www.123simples.com/" rel="nofollow - Visit 123 Simples Web Design


Posted By: 123Simples
Date Posted: 05 April 2009 at 1:47pm
Sorry just re-read your post - you wanted active users to see this didn't you? (smacks my own head)

I'll come back to this Wink or perhaps by "bumping" the question someone else has the answer


-------------
http://www.123simples.com/" rel="nofollow - Visit 123 Simples Web Design


Posted By: Rudy81
Date Posted: 05 April 2009 at 7:06pm
Thank you for your help.  Ideally, only registered users could see any of this data.  My goal is to prevent non members from gathering the data presented there.
 
The goal is to have only registered users see the entire 'What's going on' section. Non-registered users would not see any of that information.  
 


Posted By: Scotty32
Date Posted: 06 April 2009 at 9:34am
TWS:

if intGroupID <> 2 then


-------------
S2H.co.uk - http://www.s2h.co.uk/wwf/" rel="nofollow - WebWiz Mods and Skins

For support on my mods + skins, please use http://www.s2h.co.uk/forum/" rel="nofollow - my forum .


Posted By: 123Simples
Date Posted: 06 April 2009 at 11:54am
Cheers Scotty Thumbs Up

-------------
http://www.123simples.com/" rel="nofollow - Visit 123 Simples Web Design


Posted By: Rudy81
Date Posted: 06 April 2009 at 9:28pm
Originally posted by Scotty32 Scotty32 wrote:

TWS:

if intGroupID <> 2 then
 
Where do I insert this?  I don't want to make any errors trying to work this and crash for forum.
 
Thank you for your help.


Posted By: 123Simples
Date Posted: 07 April 2009 at 4:27pm
Thanks to Scotty who finalised the answer as shown here in this image:



Which is a person who is not logged in and they will only see that
The answer is as above except, on lines 836 you would normally see this:

Response.Write(strTxtOurUserHavePosted & " " & FormatNumber(lngTotalNumberOfPosts, 0) & " " & strTxtPostsIn & " " & FormatNumber(lngTotalNumberOfTopics, 0) & " " & strTxtTopicsIn & " " & intNumberofForums & " " & strTxtForums & _
"<br />" & strTxtLastPost & "; " & DateFormat(dtmLastEntryDateAllForums) & " " & strTxtAt & " " & TimeFormat(dtmLastEntryDateAllForums) & " " & strTxtBy & " <a href=""member_profile.asp?PF=" & lngLastEntryUserIDAllForums & strQsSID2 & """ rel=""nofollow"">" & strLastEntryUserAllForums & "</a>")

'Display some statistics for the members
If lngNoOfMembers > 0 Then

Response.Write("<br />" & strTxtWeHave & " " & FormatNumber(lngNoOfMembers, 0) & " " & strTxtForumMembers & _
"<br />" & strTxtTheNewestForumMember & " <a href=""member_profile.asp?PF=" & saryMemebrStats(1,0) & strQsSID2 & """ rel=""nofollow"">" & saryMemebrStats(0, 0) & "</a>")


Change those lines to this:

if intGroupID <> 2 then Response.Write(strTxtOurUserHavePosted & " " & FormatNumber(lngTotalNumberOfPosts, 0) & " " & strTxtPostsIn & " " & FormatNumber(lngTotalNumberOfTopics, 0) & " " & strTxtTopicsIn & " " & intNumberofForums & " " & strTxtForums & _
"<br />" & strTxtLastPost & "; " & DateFormat(dtmLastEntryDateAllForums) & " " & strTxtAt & " " & TimeFormat(dtmLastEntryDateAllForums) & " " & strTxtBy & " <a href=""member_profile.asp?PF=" & lngLastEntryUserIDAllForums & strQsSID2 & """ rel=""nofollow"">" & strLastEntryUserAllForums & "</a>")

'Display some statistics for the members
If lngNoOfMembers > 0 Then

if intGroupID <> 2 then Response.Write("<br />" & strTxtWeHave & " " & FormatNumber(lngNoOfMembers, 0) & " " & strTxtForumMembers & _
"<br />" & strTxtTheNewestForumMember & " <a href=""member_profile.asp?PF=" & saryMemebrStats(1,0) & strQsSID2 & """ rel=""nofollow"">" & saryMemebrStats(0, 0) & "</a>")


The if intGroup ID <> 2 then makes the person who is not logged in not see the forum statistics


-------------
http://www.123simples.com/" rel="nofollow - Visit 123 Simples Web Design


Posted By: Rudy81
Date Posted: 07 April 2009 at 5:28pm
Thank you both very much.  I will give it a try and report back.
 
How can I do the same thing for the Active Users?  I know I can turn it on or off, but I would like it to be availabe to members, but not to non-registered users.
 
I'm grateful for your assistance.


Posted By: 123Simples
Date Posted: 07 April 2009 at 5:29pm
It will be available to active users rudy, but not to non registered users

-------------
http://www.123simples.com/" rel="nofollow - Visit 123 Simples Web Design


Posted By: 123Simples
Date Posted: 07 April 2009 at 5:30pm
In other words registered users will see whois online and who posted what and when. People who turn up who have not registered or logged in will only see a blank

-------------
http://www.123simples.com/" rel="nofollow - Visit 123 Simples Web Design


Posted By: Rudy81
Date Posted: 07 April 2009 at 5:53pm
Perfect, Thank you!


Posted By: 123Simples
Date Posted: 07 April 2009 at 5:56pm
Your welcome Thumbs Up
If you get stuck PM me or Scotty


-------------
http://www.123simples.com/" rel="nofollow - Visit 123 Simples Web Design


Posted By: Rudy81
Date Posted: 07 April 2009 at 11:37pm
It worked, I was able to take remove the Forum Statistics to non-registered users. 
 
How can I do the same for the Active users?  I also PM'd you regarding same, but am posting here for the benefit of others.


Posted By: 123Simples
Date Posted: 08 April 2009 at 2:32pm
Its pretty easy Rudy - on line 890 of the same default.asp file you will see this:

Response.Write(strTxtInTotalThereAre & " " & intActiveUsers & " <a href=""active_users.asp" & strQsSID1 & """>" & strTxtActiveUsers & "</a> " & strTxtOnLine & ", " & intActiveGuests & " " & strTxtGuests & ", " & intActiveMembers & " " & strTxtMembers & ", " & intAnonymousMembers & " " & strTxtAnonymousMembers)
   If strMembersOnline <> "" Then Response.Write(vbCrLf & "   <br />" & strTxtMembers & " " & strTxtOnLine & ": " & strMembersOnline)
End If


Just change that to:

if intGroupID <> 2 then Response.Write(strTxtInTotalThereAre & " " & intActiveUsers & " <a href=""active_users.asp" & strQsSID1 & """>" & strTxtActiveUsers & "</a> " & strTxtOnLine & ", " & intActiveGuests & " " & strTxtGuests & ", " & intActiveMembers & " " & strTxtMembers & ", " & intAnonymousMembers & " " & strTxtAnonymousMembers)
   If strMembersOnline <> "" Then Response.Write(vbCrLf & "   <br />" & strTxtMembers & " " & strTxtOnLine & ": " & strMembersOnline)
End If


Prefixing that line with as Scotty said:
if intGroupID <> 2 then

And then active users too will not appear unless you are registered and logged in Thumbs Up


-------------
http://www.123simples.com/" rel="nofollow - Visit 123 Simples Web Design


Posted By: Rudy81
Date Posted: 08 April 2009 at 3:06pm
Just to be clear on what I did, I added your prefix to lines 833 and 839, which match your code.  This caused the desired result for Forum Statistics, but I can still see Active Users when logged off.


Posted By: Rudy81
Date Posted: 08 April 2009 at 3:17pm
Actually, to clarify, I also added the prefix to the third line you mentioned.  It did affect some of the information on the Active users area, but I can still see the "member's online: username" with each username listed.  I was hoping to get that line to be blank for non-registered users.


Posted By: Rudy81
Date Posted: 08 April 2009 at 3:21pm
Oops, never mind.  I just refreshed the page again, and everything is gone.  I think that did it.  I appreciate all your help.
 
Regards,
Rudy


Posted By: 123Simples
Date Posted: 08 April 2009 at 3:27pm
All sorted then rudy Thumbs Up

When I tried the coding on those 3 bits it knocked out Forum Statistics and Active Users. I assume you have that now


-------------
http://www.123simples.com/" rel="nofollow - Visit 123 Simples Web Design


Posted By: Rudy81
Date Posted: 08 April 2009 at 3:36pm
That did it, thank you.Thumbs Up


Posted By: 123Simples
Date Posted: 08 April 2009 at 3:38pm
Cool - glad we got you there in the end

-------------
http://www.123simples.com/" rel="nofollow - Visit 123 Simples Web Design



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net