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 Page  <123>
Author
123Simples View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 July 2007
Location: United Kingdom
Status: Offline
Points: 1192
Post Options Post Options   Thanks (0) Thanks(0)   Quote 123Simples Quote  Post ReplyReply Direct Link To This Post 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


Edited by MrTWS - 08 April 2009 at 4:11pm
Back to Top
Rudy81 View Drop Down
Groupie
Groupie


Joined: 11 November 2008
Location: Dallas, Texas
Status: Offline
Points: 53
Post Options Post Options   Thanks (0) Thanks(0)   Quote Rudy81 Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
123Simples View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 July 2007
Location: United Kingdom
Status: Offline
Points: 1192
Post Options Post Options   Thanks (0) Thanks(0)   Quote 123Simples Quote  Post ReplyReply Direct Link To This Post Posted: 07 April 2009 at 5:29pm
It will be available to active users rudy, but not to non registered users
Back to Top
123Simples View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 July 2007
Location: United Kingdom
Status: Offline
Points: 1192
Post Options Post Options   Thanks (0) Thanks(0)   Quote 123Simples Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Rudy81 View Drop Down
Groupie
Groupie


Joined: 11 November 2008
Location: Dallas, Texas
Status: Offline
Points: 53
Post Options Post Options   Thanks (0) Thanks(0)   Quote Rudy81 Quote  Post ReplyReply Direct Link To This Post Posted: 07 April 2009 at 5:53pm
Perfect, Thank you!
Back to Top
123Simples View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 July 2007
Location: United Kingdom
Status: Offline
Points: 1192
Post Options Post Options   Thanks (0) Thanks(0)   Quote 123Simples Quote  Post ReplyReply Direct Link To This Post Posted: 07 April 2009 at 5:56pm
Your welcome Thumbs Up
If you get stuck PM me or Scotty
Back to Top
Rudy81 View Drop Down
Groupie
Groupie


Joined: 11 November 2008
Location: Dallas, Texas
Status: Offline
Points: 53
Post Options Post Options   Thanks (0) Thanks(0)   Quote Rudy81 Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
123Simples View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 July 2007
Location: United Kingdom
Status: Offline
Points: 1192
Post Options Post Options   Thanks (0) Thanks(0)   Quote 123Simples Quote  Post ReplyReply Direct Link To This Post 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


Edited by MrTWS - 08 April 2009 at 4:12pm
Back to Top
 Post Reply Post Reply Page  <123>

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.