but only one of my two admins have rights on the chat?
Well, I guess the other one is not in the usergroup with the gid 4.
Else he would have admin rights as well.
i have just had a look at its 100% admin, its in group 4, under admins, it has admin rights in the forums and games section??
You could double check this using the code from
here again.
If this user has really the primary usergroup 4 he will definitely be Admin in AJAX Chat, just due to the simple code I posted
here.
Yep, group 4, in MyBB CP the user is listed in the admin primary list aswell
I might just marge the original working admin with this one as there both me and should get the results i need.
looking around the net and there is others with the same problem... ill merge if that works ill leave it at that.
Thanks for your help!
excellent addon to the mybb program altho i need to add extra groups so they can admin permission them
i did it to the ajax chat program
if anyone wants to know how to do it pm me
right i did a merge and it didn't work but i now no why
you cant have a secondary usergroup ticked, if you do the chat don't see you as admin
OK, then I think the MyBB integration code needs updating.
I'm not a MyBB modification expert, so maybe someone with insight can tell me how to check for admin and moderator rights properly?
Try changing
if($mybb->usergroup['gid'] == 4)
$userData['userRole'] = AJAX_CHAT_ADMIN;
else if($mybb->usergroup['gid'] == 3)
$userData['userRole'] = AJAX_CHAT_MODERATOR;
else
$userData['userRole'] = AJAX_CHAT_USER;
into
if($mybb->user['usergroup'] == 4)
$userData['userRole'] = AJAX_CHAT_ADMIN;
else if($mybb->user['usergroup'] == 3)
$userData['userRole'] = AJAX_CHAT_MODERATOR;
else
$userData['userRole'] = AJAX_CHAT_USER;