[SOLVED] Hide Admin in Online Module

12 years 5 months ago #135125 by memorymoon
[SOLVED] Hide Admin in Online Module was created 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

Please Log in to join the conversation.

12 years 5 months ago #135126 by nant
Replied by nant on topic Re:Hide Admin in Online Module
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.

Please Log in to join the conversation.

12 years 5 months ago #135130 by memorymoon
Replied by memorymoon on topic Re:Hide Admin in Online Module
Wow! Thanks, worked like a charm :-)

Please Log in to join the conversation.

12 years 4 months ago #138040 by memorymoon
Replied by memorymoon on topic Re:Hide Admin in Online Module
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.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.204 seconds

Facebook Twitter LinkedIn