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

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Classic ASP versions(v3.4.XX)
 Hiding SuperAdmin
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

acoustika
Junior Member

Denmark
311 Posts

Posted - 07 December 2003 :  17:17:59  Show Profile  Visit acoustika's Homepage  Send acoustika an ICQ Message
Is it Possible to hide the SuperAdmin for the user???
in both members and when online????????

May The Code Be With You
www.UniqueDk.dk *** The Open Forums of Denmark ***

masterao
Senior Member

Sweden
1678 Posts

Posted - 07 December 2003 :  19:23:36  Show Profile  Visit masterao's Homepage
To hide it in members.asp, search for the following and add the line marked red:

Members_MemberDate = arrMemberData(mM_DATE, iMember)

if intI = 1 then
CColor = strAltForumCellColor
else
CColor = strForumCellColor
end if

if Members_MemberID <> intAdminMemberID then 'Hide superadmin


and then search for the following and add the line marked red:

end if ' Hide superadmin
rec = rec + 1
intI = intI + 1
if intI = 2 then intI = 0

Im not able to provide any linenumbers, as my members.asp is heavily modified.

To hide superadmin in active_users, edit profile and choose No on Show on Active Users (if you have allowed that option in the AU Config). If you haven't, or you want the superadmin to not even show up as an anonymous member, open up inc_func_common.asp.

Look for the following about line 56 and add the code marked red (it is located inside Sub ActiveUserTracker()):

  'Ls3k- First Order of business, is this person new?
  if MemberID="-1" then 'If this is a Guest, check by IP
    strSql = "SELECT AU_LASTACTIVETIME FROM " & strTablePrefix & "ACTIVE_USERS WHERE AU_IP = '" & Chkstring(strUserIP, "SQLString") & "' AND MEMBER_ID = -1"
  else 'If this is a Member, check by Member_ID
    strSql = "SELECT AU_LASTACTIVETIME FROM " & strTablePrefix & "ACTIVE_USERS WHERE MEMBER_ID = " & MemberID & " AND MEMBER_ID <> " & intAdminMemberID
  end if


Then look for the following code starting on line 83:

    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 & " AND MEMBER_ID <> " & intAdminMemberID
    end if
    my_conn.execute (strSql)
  else 'Is a new user, make new record
   If strLoginStatus = 0 AND MemberID <> intAdminMemberID then


This will make the superadmin totally invisible to the active users mod, although I must say that I haven't tested this 100%. If you encounter any errors, please let know and I'll take a look.

Jan
===========
FR Portal Forums | Active Users 4.0.20 Mod
Go to Top of Page

tekgirl
Starting Member

USA
40 Posts

Posted - 27 February 2004 :  22:25:08  Show Profile  Visit tekgirl's Homepage  Send tekgirl an AOL message
quote:
Originally posted by masterao

To hide superadmin in active_users, edit profile and choose No on Show on Active Users (if you have allowed that option in the AU Config). If you haven't, or you want the superadmin to not even show up as an anonymous member, open up inc_func_common.asp.

Look for the following about line 56 and add the code marked red (it is located inside Sub ActiveUserTracker()):

  'Ls3k- First Order of business, is this person new?
  if MemberID="-1" then 'If this is a Guest, check by IP
    strSql = "SELECT AU_LASTACTIVETIME FROM " & strTablePrefix & "ACTIVE_USERS WHERE AU_IP = '" & Chkstring(strUserIP, "SQLString") & "' AND MEMBER_ID = -1"
  else 'If this is a Member, check by Member_ID
    strSql = "SELECT AU_LASTACTIVETIME FROM " & strTablePrefix & "ACTIVE_USERS WHERE MEMBER_ID = " & MemberID & " AND MEMBER_ID <> " & intAdminMemberID
  end if


Then look for the following code starting on line 83:

    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 & " AND MEMBER_ID <> " & intAdminMemberID    end if
    my_conn.execute (strSql)
  else 'Is a new user, make new record
   If strLoginStatus = 0 AND MemberID <> intAdminMemberID then


This will make the superadmin totally invisible to the active users mod, although I must say that I haven't tested this 100%. If you encounter any errors, please let know and I'll take a look.



Hi masterao,

I'm using v3.4.04 and have been unable to find the code highlighted in bold. I would really like to hide the Super Admin in Active Users, but have had no success. Thanks in advance for any help you can offer.



--tekgirl
Go to Top of Page

masterao
Senior Member

Sweden
1678 Posts

Posted - 28 February 2004 :  18:40:54  Show Profile  Visit masterao's Homepage
tekgirl, that line is added in the shadow-guest fix for active users (found here).

Jan
===========
FR Portal Forums | Active Users 4.0.20 Mod
Go to Top of Page

tekgirl
Starting Member

USA
40 Posts

Posted - 29 February 2004 :  01:19:19  Show Profile  Visit tekgirl's Homepage  Send tekgirl an AOL message
Jan,

Thanks! Works flawlessly

--tekgirl

Edited by - tekgirl on 29 February 2004 01:40:15
Go to Top of Page

masterao
Senior Member

Sweden
1678 Posts

Posted - 29 February 2004 :  08:48:32  Show Profile  Visit masterao's Homepage
You're welcome .

Jan
===========
FR Portal Forums | Active Users 4.0.20 Mod
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 1.77 seconds. Powered By: Snitz Forums 2000 Version 3.4.07