Need some custom code changes to the phpBB core simple enough that you feel doesn't require an extension? Then post your request here so that community members can provide some assistance.
NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
cpg-at-work wrote: ↑Sat Jun 20, 2020 2:41 pm
in ACP Group Rights you have to do what you want.
If by that statement you mean set the permissions then that is impossible as there is no unique permission for the Memberlist (many say that there should be - but that is a different topic!)
If that is not what you mean then please explain how to achieve what the OP wants to do.
David Remember: You only know what you know and - you don't know what you don't know!
I now no longer support any of my extensions but they will start to become available here
I've been playing and trying all day and it works. But would anyone be so kind to take a look at the code.
Is this so good you think?
Or is this going to cause problems?
Everything works. Only Admins, Moderators, and a specific user group can view the member list.
if (!$auth->acl_getf_global('m_'))
{ if (!$auth->acl_getf_global('a_'))
if ($user->acl['group_id'] == '8' || $user->data['group_id'] == '1' || $user->data['group_id'] == '2')
{trigger_error("You don't have permission to view the memberlist.");
}
}
if (!$auth->acl_gets('a_', 'm_') && !$auth->acl_getf_global('m_'))
{
if ($user->acl['group_id'] == '8' || $user->data['group_id'] == '9' || $user->data['group_id'] == '2')
{
trigger_error("Je hebt geen permissies om de ledenlijst te bekijken.");
}
}
if (!$auth->acl_gets('a_', 'm_') && !$auth->acl_getf_global('m_'))
{
if ($user->acl['group_id'] == '8' || $user->data['group_id'] == '9' || $user->data['group_id'] == '2')
{
trigger_error("Je hebt geen permissies om de ledenlijst te bekijken.");
}
}
if (!$auth->acl_gets('a_', 'm_') && !$auth->acl_getf_global('m_'))
{
if ($user->data['group_id'] != 10)
{
trigger_error("Je hebt geen permissies om de ledenlijst te bekijken.");
}
}
But how do I add an extra group?
if ($user->data['group_id'] != 10, 12) doesn't work
Whereas there's nothing wrong with the coalman's suggestion, it's custom coding in .php files.
There's another option and that is using the Group Templates Variables extension.
Yes, it also requires editing default phpBB files but only style templates (.html) and if edits have to be undone, they can easily be found .
Disclaimer: it's currently marked as abandoned but I'm using it with phpBB 3.3.11 without issues.
Spelling is freeware, which means you can use it for free.
On the other hand, it is not open source, which means you cannot change it or publish it in a modified form.
Time flies like an arrow, but fruit flies like a banana.