| Author |
Topic Search Topic Options
|
Rudy81
Groupie
Joined: 11 November 2008
Location: Dallas, Texas
Status: Offline
Points: 53
|
Post Options
Thanks(0)
Quote Reply
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.
|
 |
Rudy81
Groupie
Joined: 11 November 2008
Location: Dallas, Texas
Status: Offline
Points: 53
|
Post Options
Thanks(0)
Quote Reply
Posted: 05 April 2009 at 3:53am |
|
Anyone?
|
 |
123Simples
Senior Member
Joined: 08 July 2007
Location: United Kingdom
Status: Offline
Points: 1192
|
Post Options
Thanks(0)
Quote Reply
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
|
|
|
 |
123Simples
Senior Member
Joined: 08 July 2007
Location: United Kingdom
Status: Offline
Points: 1192
|
Post Options
Thanks(0)
Quote Reply
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  or perhaps by "bumping" the question someone else has the answer
|
|
|
 |
Rudy81
Groupie
Joined: 11 November 2008
Location: Dallas, Texas
Status: Offline
Points: 53
|
Post Options
Thanks(0)
Quote Reply
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
|
 |
Scotty32
Moderator Group
Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
|
Post Options
Thanks(0)
Quote Reply
Posted: 06 April 2009 at 9:34am |
|
|
|
|
 |
123Simples
Senior Member
Joined: 08 July 2007
Location: United Kingdom
Status: Offline
Points: 1192
|
Post Options
Thanks(0)
Quote Reply
Posted: 06 April 2009 at 11:54am |
Cheers Scotty
|
|
|
 |
Rudy81
Groupie
Joined: 11 November 2008
Location: Dallas, Texas
Status: Offline
Points: 53
|
Post Options
Thanks(0)
Quote Reply
Posted: 06 April 2009 at 9:28pm |
Scotty32 wrote:
TWS:
|
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.
|
 |