Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 Anonymous admin?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Doughnut
Starting Member

United Kingdom
40 Posts

Posted - 10 July 2004 :  06:55:26  Show Profile  Visit Doughnut's Homepage
Alright there,

I don't know if this is the right section to ask this but if not I'm sure the mods will move the topic...

Does anyone know of a way of making only Administrators browse the forums in anonymous or perhaps invisible mode in active users or has any thought of working on this idea?

Thanks.

Doughnut
Starting Member

United Kingdom
40 Posts

Posted - 17 July 2004 :  08:08:54  Show Profile  Visit Doughnut's Homepage
Oll well just a thought
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 17 July 2004 :  23:59:17  Show Profile
You want to hide admins from the active users page? You mean totally remove them? Or you want them to appear as guests?
You want other admins to see other admins or all admins appear as a guest to ALL members?

Support Snitz Forums
Go to Top of Page

Doughnut
Starting Member

United Kingdom
40 Posts

Posted - 19 July 2004 :  09:23:20  Show Profile  Visit Doughnut's Homepage
quote:
Originally posted by Davio

You want to hide admins from the active users page? You mean totally remove them? Or you want them to appear as guests?
You want other admins to see other admins or all admins appear as a guest to ALL members?

That sounds complicated
Remove admins from the active users page altogether, it's just something I've seen on another forum or at least it is unless they are using another trick....does it sound possible?

Edited by - Doughnut on 19 July 2004 09:23:45
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 19 July 2004 :  13:28:04  Show Profile
In active_users.asp find the following code. Should start about line 161:
if rsAM("M_LEVEL") = 2 then  'If admin or mod, then lets hilight em.
  response.write "<b><font color=""" & strAUModColor & """>"
elseif rsAM("M_LEVEL") = 3 then
  response.write "<b><font color=""" & strAUAdminColor & """>"
end if
response.write rsAM("M_NAME")
if rsAM("M_LEVEL") = 2 or rsAM("M_LEVEL") = 3 then
  response.write "</font><b>"
end if
Change it to this:
if rsAM("M_LEVEL") = 2 then  'If admin or mod, then lets hilight em.
  response.write "<b><font color=""" & strAUModColor & """>"
end if
if rsAM("M_LEVEL") <> 3 then
  response.write rsAM("M_NAME")
end if
if rsAM("M_LEVEL") = 2 then
  response.write "</font><b>"
end if
In inc_active_users.asp, find the following code. Should start about line 73:
if rsAM("M_LEVEL") = 2 then
  strActiveMemberList = strActiveMemberList & "<font color=""" & strAUModColor & """>"
elseif rsAM("M_LEVEL") = 3 then
  strActiveMemberList = strActiveMemberList & "<font color=""" & strAUAdminColor & """>"
end if
strActiveMemberList = strActiveMemberList & rsAM("M_NAME")
if rsAM("M_LEVEL") = 2 or rsAM("M_LEVEL") = 3 then
  strActiveMemberList = strActiveMemberList & "</font>"
end if
Change it to this:
if rsAM("M_LEVEL") = 2 then
  strActiveMemberList = strActiveMemberList & "<font color=""" & strAUModColor & """>"
end if
if rsAM("M_LEVEL") <> 3 then
   strActiveMemberList = strActiveMemberList & rsAM("M_NAME")
end if
if rsAM("M_LEVEL") = 2 then
  strActiveMemberList = strActiveMemberList & "</font>"
end if

Support Snitz Forums
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 19 July 2004 :  13:29:05  Show Profile
I haven't tested it, so you will have to tell me if it works.

But why don't you just edit each admin profile and set to not show up on the active users page? That will do the same thing you're asking.

Support Snitz Forums
Go to Top of Page

Doughnut
Starting Member

United Kingdom
40 Posts

Posted - 19 July 2004 :  15:16:17  Show Profile  Visit Doughnut's Homepage
quote:
Originally posted by Davio
But why don't you just edit each admin profile and set to not show up on the active users page? That will do the same thing you're asking.


Yea that's a good suggestion but I have to be honest I hate having anonymous users on the forum but sometimes you just wanna moderate the site in peace if you know what I mean.... I find if I show as online before I know it I'm getting loads of PM's while I'm trying to do stuff!

I know I'm awkward but that's me
I'll definately give your code a go

Edited by - Doughnut on 19 July 2004 15:16:53
Go to Top of Page

Doughnut
Starting Member

United Kingdom
40 Posts

Posted - 21 July 2004 :  09:18:33  Show Profile  Visit Doughnut's Homepage
Alright Davio,

I does work mate, but here comes the me being fussy bit
It hides the admins name but still shows the ip address and which topic you are looking at.... it might be too much work for someone as busy as you perhaps but ideally the admin would be totally hidden, would be a nice admin home option if you know what I mean.

I think Nathan re-wrote the mod last time so maybe I should suggest it as a future update?

Thanks, Robin.
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 21 July 2004 :  15:23:33  Show Profile
Oh yes, yes, yes. That only removed the name. My mistake.
I'm totally editing in the wring place.

In your inc_func_common.asp file, there is a active user mod subroutine called "ActiveUserTracker()". In that sub you will find the following code. Add the code in red:
'Ls3k- Second order of business, lets update those already-active users
if strNewUser = 0 and mLev <> 4 then 'If already-active
  strSql = "UPDATE " & strTablePrefix & "ACTIVE_USERS SET " & _
           "AU_LASTACTIVETIME='" & Chkstring(strCurrentTime, "SQLString") & "'" & _
           ", AU_LASTPAGE='" & Chkstring(strScriptName, "SQLString") & "'" & _
           ", AU_QUERYSTRING='" & Chkstring(strQueryString, "SQLString") & "' "
  if MemberID=-1 then 'If guest, update based on IP
    strSql = strSql & "WHERE AU_IP = '" & Chkstring(strUserIP, "SQLString") & "' " & _
                      "AND MEMBER_ID = " & MemberID
  else 'Update members based on MemberID
    strSql = strSql & "WHERE MEMBER_ID = " & MemberID
  end if
  my_conn.execute (strSql)
elseif strLoginStatus <> 1 and mLev <> 4 then 'Is a new user, make new record
  strSql = "INSERT INTO " & strTablePrefix & "ACTIVE_USERS (" & _
           "MEMBER_ID, AU_IP, AU_LOGINTIME, AU_LASTACTIVETIME, " & _
           "AU_LASTPAGE, AU_QUERYSTRING, AU_USER_AGENT) VALUES(" & _
           MemberID & ", " & _
           "'" & Chkstring(strUserIP, "SQLString") & "', " & _
           "'" & Chkstring(strCurrentTime, "SQLString") & "', " & _
           "'" & Chkstring(strCurrentTime, "SQLString") & "', " & _
           "'" & Chkstring(strScriptName, "SQLString") & "', " & _
           "'" & Chkstring(strQueryString, "SQLString") & "', " & _
           "'" & Chkstring(strUserAgent, "SQLString") & "')"
  my_conn.execute (strSql)
end if
See if that works.

Support Snitz Forums
Go to Top of Page

Doughnut
Starting Member

United Kingdom
40 Posts

Posted - 21 July 2004 :  16:12:21  Show Profile  Visit Doughnut's Homepage
Great I'll have another go later
Go to Top of Page

Doughnut
Starting Member

United Kingdom
40 Posts

Posted - 22 July 2004 :  15:27:05  Show Profile  Visit Doughnut's Homepage
Davio you're a very clever bloke!
I wish I had time to learn this stuff, that is absolutely spot on...I'll give it a little trial.

I guess I could upload the saved originals whenever I want things back to how they were.

Thanks very much
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 22 July 2004 :  15:56:27  Show Profile
Why thank ye. And you are welcome!

Do I get a box of doughnuts or something? lol

Support Snitz Forums

Edited by - Davio on 22 July 2004 15:57:03
Go to Top of Page

Doughnut
Starting Member

United Kingdom
40 Posts

Posted - 22 July 2004 :  18:58:47  Show Profile  Visit Doughnut's Homepage
You're too late I've eaten em all
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.44 seconds. Powered By: Snitz Forums 2000 Version 3.4.07