Code: Select all
http://www.vbulletin.com/forum/showgroups.php
I am new to phpbb and php so could you please tell me what line to edit in memberlist.php? What code to add or anything else that would help a newbie like meDrummer wrote:The leaders mode is based on permissions. If you want to show a list of membership I suggest you to add a new mode, let's say showgroups (ha!) to memberlist.php.
group_memberships() is almost everything you need.
No it does not.Drummer wrote: It lists everyone who has any a_ or m_ permission
Idd. My fault :$Brf wrote:No it does not.Drummer wrote: It lists everyone who has any a_ or m_ permission
If shows everyone in the default Administrators usergroup and everyone else with moderator permissions.
Code: Select all
$admin_memberships = group_memberships($admin_group_id, $admin_id_ary);
Now that you said... maybe it's there to make sure the team page won't show the Administrators members if an _smart_ admin removes its administrative permissions. :pBrf wrote:I do not know why the code looks like that....
This line looks pretty strange
At that point in the code, $admin_group_id is the ID of the Administrators group and $admin_id_ary is the list of all users with admin permissions.Code: Select all
$admin_memberships = group_memberships($admin_group_id, $admin_id_ary);
It should return the list of members of the Administrators who actually have admin permissions, which seems redundant.
Further down in the code, it drops any of the admins who are not members of Administrators.
The links there to download aren't working, does somebody has that mod in their computer? I also tried to send a private message to Ashley.S. or stansmet but due to my small number op posts i can send only to staff private messages.:SHaldirman wrote:Try this MOD: Add groups in teampage.