Members Hider in memberlist
Imran Offline
Member
***
Posts: 204
Joined: Apr 2010
Post: #1
Question Members Hider in memberlist
I am using this function

PHP Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
function mem_hide()
{
	global $db, $mybb, $usergroup, $groupscache, $uid, $user;
	$enable = $mybb->settings['mem_hide_enable'];
	$uid = $user['uid'];
	$xuid = explode(",",$mybb->settings['mem_hide_uid']);
	$gid = $user['usergroup'];
	$xgid = explode(",",$mybb->settings['mem_hide_gid']);

	if ($enable != '0')
	{
		if (in_array($uid,$xuid) && in_array($gid,$xgid) && $mybb->user['usergroup'] != '4')
		{
			continue;
		}
	}
}


and plugin hooked to:

PHP Code:
$plugins->add_hook("memberlist_user", "mem_hide");


But it comes up empty ! Ouch

Help Zinga !


[Image: logo.png]

[Image: twitter.png]
07-04-2010 09:43 PM
Visit this user's website Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
Members Hider in memberlist - Imran - 07-04-2010 09:43 PM
RE: Members Hider in memberlist - Imran - 07-06-2010, 12:44 AM

 Standard Tools
Forum Jump: