[3.3.x][DEV] Disable ban groups

A place to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Post Reply
User avatar
Kailey
Administrator
Administrator
Posts: 42
Joined: Sat May 18, 2024 4:11 am
Name: Kailey Snay

Disable ban groups

Post by Kailey »

Extension Name: Disable ban groups
Author: phpBB Modders

Extension Description: Disables the ability to ban users of selected groups; configured in the ACP.
Extension Version: 1.0.0-dev

Requirements: To be determined

Features: To be determined

Screenshots: n/a

Demo URL: n/a
Demo Username: n/a
Demo Password: n/a

Extension Download: https://github.com/phpbbmodders/disablebangroups
User avatar
Fred Rimbert
New member
New member
Posts: 16
Joined: Wed Jul 17, 2024 6:36 pm
Location: Le Lude, Pays de la Loire - France
Contact:

Re: Disable ban groups

Post by Fred Rimbert »

Hi @Kailey

I have this FATAL with this ext

Code: Select all

Fatal error: Uncaught phpbb\language\exception\language_file_not_found: Language file ./ext/phpbbmodders/groupban/language/en/common.php couldn't be opened. in /home/clients/aad2674d94bf9fbeb384ebc8b7e1c3be/home/phpbb/language/language_file_loader.php:186 Stack trace: #0 /home/clients/aad2674d94bf9fbeb384ebc8b7e1c3be/home/phpbb/language/language_file_loader.php(143): phpbb\language\language_file_loader->get_language_file_path('./ext/phpbbmodd...', 'common.php', Array) #1 /home/clients/aad2674d94bf9fbeb384ebc8b7e1c3be/home/phpbb/language/language_file_loader.php(103): phpbb\language\language_file_loader->load_file('./ext/phpbbmodd...', 'common', Array, Array) #2 /home/clients/aad2674d94bf9fbeb384ebc8b7e1c3be/home/phpbb/language/language.php(643): phpbb\language\language_file_loader->load_extension('phpbbmodders/gr...', 'common', Array, Array) #3 /home/clients/aad2674d94bf9fbeb384ebc8b7e1c3be/home/phpbb/language/language.php(180): phpbb\language\language->load_extension('phpbbmodders/gr...', 'common') #4 /home/clients/aad2674d94bf9fbeb384ebc8b7e1c3be/home/phpbb/user.php(576): phpbb\language\language->add_lang('common', 'phpbbmodders/gr...') #5 /home/clients/aad2674d94bf9fbeb384ebc8b7e1c3be/home/phpbb/user.php(546): phpbb\user->set_lang('common', false, 'phpbbmodders/gr...') #6 /home/clients/aad2674d94bf9fbeb384ebc8b7e1c3be/home/phpbb/user.php(598): phpbb\user->add_lang('common', false, false, 'phpbbmodders/gr...') #7 /home/clients/aad2674d94bf9fbeb384ebc8b7e1c3be/home/phpbb/user.php(247): phpbb\user->add_lang_ext('phpbbmodders/gr...', 'common') #8 /home/clients/aad2674d94bf9fbeb384ebc8b7e1c3be/home/index.php(29): phpbb\user->setup(NULL) #9 {main} thrown in /home/clients/aad2674d94bf9fbeb384ebc8b7e1c3be/home/phpbb/language/language_file_loader.php on line 186
phpBB: 3.3.12
PHP: 8.3.9

Using STK to deactivate the extension and access the board
User avatar
bonelifer
Administrator
Administrator
Posts: 107
Joined: Sat May 18, 2024 4:13 am
Name: William
GitHub: https://github.com/bonelifer

Re: Disable ban groups

Post by bonelifer »

In the manage groups settings:
Group ban:
Users in this group can be banned. Founders can ban all users.


So you'd make one group that is bannable? Then everyone else isn't bannable? Or is that text wrong? Should it be "can't"?
phpBB Modders is looking for developers! If you have phpBB experience and want to join us, click here!
User avatar
bonelifer
Administrator
Administrator
Posts: 107
Joined: Sat May 18, 2024 4:13 am
Name: William
GitHub: https://github.com/bonelifer

Re: Disable ban groups

Post by bonelifer »

Fred Rimbert wrote: Sun Jul 28, 2024 11:22 pm Hi @Kailey

I have this FATAL with this ext

Code: Select all

Fatal error: Uncaught phpbb\language\exception\language_file_not_found: Language file ./ext/phpbbmodders/groupban/language/en/common.php couldn't be opened. in /home/clients/aad2674d94bf9fbeb384ebc8b7e1c3be/home/phpbb/language/language_file_loader.php:186 Stack trace: #0 /home/clients/aad2674d94bf9fbeb384ebc8b7e1c3be/home/phpbb/language/language_file_loader.php(143): phpbb\language\language_file_loader->get_language_file_path('./ext/phpbbmodd...', 'common.php', Array) #1 /home/clients/aad2674d94bf9fbeb384ebc8b7e1c3be/home/phpbb/language/language_file_loader.php(103): phpbb\language\language_file_loader->load_file('./ext/phpbbmodd...', 'common', Array, Array) #2 /home/clients/aad2674d94bf9fbeb384ebc8b7e1c3be/home/phpbb/language/language.php(643): phpbb\language\language_file_loader->load_extension('phpbbmodders/gr...', 'common', Array, Array) #3 /home/clients/aad2674d94bf9fbeb384ebc8b7e1c3be/home/phpbb/language/language.php(180): phpbb\language\language->load_extension('phpbbmodders/gr...', 'common') #4 /home/clients/aad2674d94bf9fbeb384ebc8b7e1c3be/home/phpbb/user.php(576): phpbb\language\language->add_lang('common', 'phpbbmodders/gr...') #5 /home/clients/aad2674d94bf9fbeb384ebc8b7e1c3be/home/phpbb/user.php(546): phpbb\user->set_lang('common', false, 'phpbbmodders/gr...') #6 /home/clients/aad2674d94bf9fbeb384ebc8b7e1c3be/home/phpbb/user.php(598): phpbb\user->add_lang('common', false, false, 'phpbbmodders/gr...') #7 /home/clients/aad2674d94bf9fbeb384ebc8b7e1c3be/home/phpbb/user.php(247): phpbb\user->add_lang_ext('phpbbmodders/gr...', 'common') #8 /home/clients/aad2674d94bf9fbeb384ebc8b7e1c3be/home/index.php(29): phpbb\user->setup(NULL) #9 {main} thrown in /home/clients/aad2674d94bf9fbeb384ebc8b7e1c3be/home/phpbb/language/language_file_loader.php on line 186
phpBB: 3.3.12
PHP: 8.3.9

Using STK to deactivate the extension and access the board
Not sure if you caught Kailey in the middle of refactoring, but that suggests either she hadn't uploaded the common.php file yet or you missed uploading it(ie the file cant be found as it's not there). I just tried and the file was there and no error.
phpBB Modders is looking for developers! If you have phpBB experience and want to join us, click here!
User avatar
Fred Rimbert
New member
New member
Posts: 16
Joined: Wed Jul 17, 2024 6:36 pm
Location: Le Lude, Pays de la Loire - France
Contact:

Re: Disable ban groups

Post by Fred Rimbert »

I just downloaded the extension from GitHub again, now everything is OK
User avatar
Kailey
Administrator
Administrator
Posts: 42
Joined: Sat May 18, 2024 4:11 am
Name: Kailey Snay

Re: Disable ban groups

Post by Kailey »

Yeah, sorry about that, I was throwing a bunch of commits at the repo.
Post Reply