Site in read-only mode

This site is now read-only following the release of MyBB 1.8 and the new mods site.

If you are looking for MyBB 1.8 mods please click here to visit the new mods site.

You can continue to download submissions for MyBB 1.6 and earlier here, however new submissions will only be accepted via the new mods site.

Write Review

Reviews

Show group details - 2.0 by Martin M.

This is a great mod =), However there is a small bug in the showgroup.php file Lines 221 and 223. In the queries the code [OR additionalgroups LIKE '%".$group['gid']."%'] Needs to be replaced with [
OR additionalgroups LIKE '%,".$group['gid'].",%'
OR additionalgroups LIKE '%,".$group['gid']."'
OR additionalgroups LIKE '".$group['gid'].",%'
OR additionalgroups='".$group['gid']."'
]

The reason is because if you have a gid(group id) 9 and a gid 19, whenever you show the profile of a user belonging to gid 9, anyone belonging to gid 19 will also show up.

Also in the groups.php file in the root directory. The query at line 52 should be
[
$query = $db->query("
SELECT u.*, f.* FROM ".TABLE_PREFIX."users u
LEFT JOIN ".TABLE_PREFIX."userfields f ON (f.ufid=u.uid)
WHERE u.usergroup='".$mybb->input['gid']."'
OR u.additionalgroups LIKE '%,".$mybb->input['gid'].",%'
OR u.additionalgroups LIKE '%,".$mybb->input['gid']."'
OR u.additionalgroups LIKE '%".$mybb->input['gid'].",%'
OR u.additionalgroups='".$mybb->input['gid']."'
LIMIT $start, ".$mybb->settings['membersperpage']
]
Instead of what it currently is.

Thanks for this mod.

Written By: fnicholson, 19th August 2009

Write Review