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
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 Topic: Forum Statistics
    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.
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: 05 April 2009 at 3:53am
Anyone?
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: 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


Edited by MrTWS - 08 April 2009 at 4:08pm
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: 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
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: 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.  
 


Edited by Rudy81 - 05 April 2009 at 7:09pm
Back to Top
Scotty32 View Drop Down
Moderator Group
Moderator Group


Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scotty32 Quote  Post ReplyReply Direct Link To This Post Posted: 06 April 2009 at 9:34am
TWS:

if intGroupID <> 2 then
S2H.co.uk - WebWiz Mods and Skins

For support on my mods + skins, please use my forum.
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: 06 April 2009 at 11:54am
Cheers Scotty Thumbs Up
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: 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.
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.