What is the prefix for Group Permission

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
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
User avatar
durangod
Registered User
Posts: 804
Joined: Tue Nov 03, 2009 1:26 pm
Location: USA East Texas
Name: Dave

What is the prefix for Group Permission

Post by durangod »

Hi,

So i know there are the following permission key prefixes

ACL_A - ADMIN
ACL_U - USER
ACL_M - MODERATOR
ACL_F - FORUM

But i have not found anything for group permissions such as a ACL_G for example. So what is the prefix for group permission?

Thanks :)
Username is short for durango dave
Paul
Infrastructure Team Leader
Infrastructure Team Leader
Posts: 28842
Joined: Sat Dec 04, 2004 3:44 pm
Location: The netherlands.
Name: Paul Sohier

Re: What is the prefix for Group Permission

Post by Paul »

There isnt. Both user, moderation and admin permissions can be assigned to groups.
User avatar
durangod
Registered User
Posts: 804
Joined: Tue Nov 03, 2009 1:26 pm
Location: USA East Texas
Name: Dave

Re: What is the prefix for Group Permission

Post by durangod »

Thanks, well that explains why i could not find any lol...

So if i wanted to add a new config item for the post tab in group permissions, is there a tutorial of how to do so? If not what do you suggest? I am a php developer from the old world so i can find my way around but i have to know what im looking for to find the scent :)

Many times i start with the most simple which is the lang key and then work forwards from that.
Username is short for durango dave
User avatar
ssl
Registered User
Posts: 1974
Joined: Sat Feb 08, 2020 2:15 pm
Location: Le Lude, Pays de la Loire - France
Name: Fred Rimbert

Re: What is the prefix for Group Permission

Post by ssl »

But what permissions will you seek to have?
The phpBB permissions system is sufficiently developed
Sorry for my English ... I do my best! :anger_right:

:point_right_tone3: phpBB: 3.3.13 | PHP: 8.3.9
:point_right_tone4: [Kill spam on phpBB] - [Some French translation of extensions]
"Mistress, Mistress someone is bothering me in pm"
User avatar
durangod
Registered User
Posts: 804
Joined: Tue Nov 03, 2009 1:26 pm
Location: USA East Texas
Name: Dave

Re: What is the prefix for Group Permission

Post by durangod »

I was using the captcha+ extension and i was referencing that as a tutorial as such. I wanted to learn how to add a config value to the group permissions under the post tab.

I can do forum permissions but that is not really what i want. I want to prevent all newly registered users group from posting without captcha. I figured it would be a good learning experience for me with regard to permissions. Plus i would give the code to the dev if he wanted to add it.

As you can see there is no captcha config item in the group permission for that group yet. So i would like to add, Post without captcha and have it set to never.
groupperm.jpg
You do not have the required permissions to view the files attached to this post.
Username is short for durango dave
User avatar
ssl
Registered User
Posts: 1974
Joined: Sat Feb 08, 2020 2:15 pm
Location: Le Lude, Pays de la Loire - France
Name: Fred Rimbert

Re: What is the prefix for Group Permission

Post by ssl »

Validating the first group messages of New Registered Users is better than going through a CAPTCHA
Sorry for my English ... I do my best! :anger_right:

:point_right_tone3: phpBB: 3.3.13 | PHP: 8.3.9
:point_right_tone4: [Kill spam on phpBB] - [Some French translation of extensions]
"Mistress, Mistress someone is bothering me in pm"
User avatar
durangod
Registered User
Posts: 804
Joined: Tue Nov 03, 2009 1:26 pm
Location: USA East Texas
Name: Dave

Re: What is the prefix for Group Permission

Post by durangod »

ssl wrote: Mon Mar 04, 2024 7:47 am Validating the first group messages of New Registered Users is better than going through a CAPTCHA
Yes i agree but i thought this would be a fun way to learn how it works if i can add a config value and make it work. I just want to make a working example.
Username is short for durango dave
User avatar
ssl
Registered User
Posts: 1974
Joined: Sat Feb 08, 2020 2:15 pm
Location: Le Lude, Pays de la Loire - France
Name: Fred Rimbert

Re: What is the prefix for Group Permission

Post by ssl »

durangod wrote: Mon Mar 04, 2024 7:56 am I just want to make a working example.
OK, I see
Sorry for my English ... I do my best! :anger_right:

:point_right_tone3: phpBB: 3.3.13 | PHP: 8.3.9
:point_right_tone4: [Kill spam on phpBB] - [Some French translation of extensions]
"Mistress, Mistress someone is bothering me in pm"
User avatar
durangod
Registered User
Posts: 804
Joined: Tue Nov 03, 2009 1:26 pm
Location: USA East Texas
Name: Dave

Re: What is the prefix for Group Permission

Post by durangod »

im testing with a new member i just registered, that user is not able to post without the captcha right now and they are in the newly registered group, when i move them to the registered users they still cant post without the captcha, at that point i want to take the captcha away so i need to be able to set the captcha for the group permissions, not sure how to code that. So i am looking for a popcorn trail of some kind... :)
Username is short for durango dave
User avatar
Brf
Support Team Member
Support Team Member
Posts: 53514
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}

Re: What is the prefix for Group Permission

Post by Brf »

durangod wrote: Mon Mar 04, 2024 8:04 am when i move them to the registered users ...
Everyone is already in Registered Users. You wouldn't be moving them there.
User avatar
ssl
Registered User
Posts: 1974
Joined: Sat Feb 08, 2020 2:15 pm
Location: Le Lude, Pays de la Loire - France
Name: Fred Rimbert

Re: What is the prefix for Group Permission

Post by ssl »

If you have activated the NRU group, all users who register on your board will be part of the Registered Users group and the NRU group. This last group should be their default group (checkbox in ACP settings)
So you don't have to move users since they are members of both groups.
Sorry for my English ... I do my best! :anger_right:

:point_right_tone3: phpBB: 3.3.13 | PHP: 8.3.9
:point_right_tone4: [Kill spam on phpBB] - [Some French translation of extensions]
"Mistress, Mistress someone is bothering me in pm"
User avatar
durangod
Registered User
Posts: 804
Joined: Tue Nov 03, 2009 1:26 pm
Location: USA East Texas
Name: Dave

Re: What is the prefix for Group Permission

Post by durangod »

I have it set up so that they go from NRU to RU after 5 posts. Question, once they meet that 5 post threshold do they not get removed from the NRU automatically? I thought that is how it worked.
Username is short for durango dave
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26781
Joined: Fri Aug 29, 2008 9:49 am

Re: What is the prefix for Group Permission

Post by Mick »

Yes and it doesn't matter about default group, that’s just a cosmetic setting it has no effect on permissions.
  • "The more connected we get the more alone we become” - Kyle Broflovski© 🇬🇧
User avatar
ssl
Registered User
Posts: 1974
Joined: Sat Feb 08, 2020 2:15 pm
Location: Le Lude, Pays de la Loire - France
Name: Fred Rimbert

Re: What is the prefix for Group Permission

Post by ssl »

Although this may be cosmetic, it is still better that the users are not part of the NRU group, for the permissions of this group.
Once they have posted the number of messages decided in the ACP the Registered users group becomes their only group, it is their default group.
Sorry for my English ... I do my best! :anger_right:

:point_right_tone3: phpBB: 3.3.13 | PHP: 8.3.9
:point_right_tone4: [Kill spam on phpBB] - [Some French translation of extensions]
"Mistress, Mistress someone is bothering me in pm"
User avatar
durangod
Registered User
Posts: 804
Joined: Tue Nov 03, 2009 1:26 pm
Location: USA East Texas
Name: Dave

Re: What is the prefix for Group Permission

Post by durangod »

Ok thanks everyone, it is all becomming clear now. :)
Username is short for durango dave

Return to “phpBB Custom Coding”