[SOLVED] Hide Admin in Online Module

9 years 5 months ago #135125 by memorymoon
Is there anyway to Hide the admin in the Online Module (mod_comprofilerOnline) ?
B)

Post edited by: krileon, at: 2010/06/09 14:55
9 years 5 months ago #135126 by nant
find this code in your modules -> mod_comprofileronline -> mod_comprofileronline.php file:

[code:1]$query = "SELECT DISTINCT a.username, a.userid, u.name"
."\n FROM #__session AS a, #__users AS u"
."\n WHERE (a.userid = u.id) AND (a.guest = 0) AND "
. ( ( checkJversion() == 1 ) ? "(a.client_id = 0)" : "(NOT ( a.usertype is NULL OR a.usertype = ''))" )
."\n ORDER BY " . ( ( $ueConfig > 2 ) ? "a.username" : "u.name" ) . " ASC";
[/code:1]

and modify to this:

[code:1]$query = "SELECT DISTINCT a.username, a.userid, u.name"
."\n FROM #__session AS a, #__users AS u"
."\n WHERE (a.userid != 62) AND (a.userid = u.id) AND (a.guest = 0) AND "
. ( ( checkJversion() == 1 ) ? "(a.client_id = 0)" : "(NOT ( a.usertype is NULL OR a.usertype = ''))" )
."\n ORDER BY " . ( ( $ueConfig > 2 ) ? "a.username" : "u.name" ) . " ASC";
[/code:1]

this should hide your default superadmin.
9 years 5 months ago #135130 by memorymoon
Wow! Thanks, worked like a charm :-)
9 years 3 months ago #138040 by memorymoon
Hi again, is there a way to do the same in the module: mod_cbpblatest ?
Trying to find the line where to exclude admin (62)
But after a 20 tries or so, i do not succeed.
Moderators: beatnantkrileon
Time to create page: 5.213 seconds
Facebook Twitter Google LinkedIn