[BETA] Prime Ban to Group

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Anti-Spam Guide
conan_troutman
Registered User
Posts: 222
Joined: Mon Jul 19, 2010 11:06 am

Re: [BETA] Prime Ban to Group

Post by conan_troutman »

cheers I will try that... right now its not needed board still in its infancy... but if it gets bigger.... I may need to added...cheers

TiTex
Registered User
Posts: 79
Joined: Sun Jul 06, 2008 1:27 pm

Re: [BETA] Prime Ban to Group

Post by TiTex »

hello

is there any way to remove the user from any other group he's in when he get's banned ? ... so the only group he'll be is banned users

or if anybody else knows a way that when i send a mass email , banned users will not get one

User avatar
primehalo
Former Team Member
Posts: 2850
Joined: Fri May 06, 2005 5:58 pm
Location: Redding, CA
Contact:

Re: [BETA] Prime Ban to Group

Post by primehalo »

There is currently no way to do that without making modifications to the code.
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!

fairylaw
Registered User
Posts: 43
Joined: Sat Apr 11, 2009 5:12 am

Re: [BETA] Prime Ban to Group

Post by fairylaw »

I installed the MOD and everything works perfectly except for when i try to un-ban by username of a member who was banned before the MOD install. I added the member to the Banned Group to try to see if that helped and it didnt. The MOD doesnt add my members on the banned by Username to the group.

this is the error i get when i try to un-ban by username

Fatal error: Call to a member function ban_to_group() on a non-object in /home/fairylaw/public_html/includes/functions_user.php on line 1120

conan_troutman
Registered User
Posts: 222
Joined: Mon Jul 19, 2010 11:06 am

Re: [BETA] Prime Ban to Group

Post by conan_troutman »

fairylaw wrote:I installed the MOD and everything works perfectly except for when i try to un-ban by username of a member who was banned before the MOD install. I added the member to the Banned Group to try to see if that helped and it didnt. The MOD doesnt add my members on the banned by Username to the group.

this is the error i get when i try to un-ban by username

Fatal error: Call to a member function ban_to_group() on a non-object in /home/fairylaw/public_html/includes/functions_user.php on line 1120
have your tried banning the user via this mod before you tried to unbann them with it...

I know it sounds mental.. but I am sure that should help

User avatar
primehalo
Former Team Member
Posts: 2850
Joined: Fri May 06, 2005 5:58 pm
Location: Redding, CA
Contact:

Re: [BETA] Prime Ban to Group

Post by primehalo »

fairylaw wrote:I installed the MOD and everything works perfectly except for when i try to un-ban by username of a member who was banned before the MOD install. I added the member to the Banned Group to try to see if that helped and it didnt. The MOD doesnt add my members on the banned by Username to the group.

this is the error i get when i try to un-ban by username

Fatal error: Call to a member function ban_to_group() on a non-object in /home/fairylaw/public_html/includes/functions_user.php on line 1120
Sounds like this code is missing or in the wrong place:

Code: Select all

//-- mod: Prime Ban to Group -----------------------------------------------//
    global $phpbb_root_path, $phpEx;
    include "$phpbb_root_path/includes/prime_ban_to_group.$phpEx";
    $prime_ban_to_group = new prime_ban_to_group(null, 'unban');
//-- end: Prime Ban to Group -----------------------------------------------//  
This code shows up twice in that file. Make sure they are both in the correct place.
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!

User avatar
jsebean
Registered User
Posts: 378
Joined: Sat Dec 12, 2009 3:20 pm
Location: Atlantic Canada
Name: Jonah
Contact:

Re: [BETA] Prime Ban to Group

Post by jsebean »

looks nice, im gonna put this on my board once i find time :D Thumbs up :D
-Jonah
:lol:

User avatar
AHTEPO
Registered User
Posts: 37
Joined: Fri Feb 08, 2008 7:00 pm
Location: Russia, KRD

Re: [BETA] Prime Ban to Group

Post by AHTEPO »

Hello Prime!
Great mod, like all your's! Thanks!
Can you add one very useful option like BAN REASON in USER SIGNATURE? And if user will be unbanned, his original signature back.

Meatwad253
Registered User
Posts: 1
Joined: Sat Nov 06, 2010 4:22 am

Re: [BETA] Prime Ban to Group

Post by Meatwad253 »

I need help please, I keep getting this when I try to ban someone.


Fatal error: Class 'prime_ban_to_group' not found in /home/tydanrpc/public_html/includes/functions_user.php on line 746


Please help D:

conan_troutman
Registered User
Posts: 222
Joined: Mon Jul 19, 2010 11:06 am

Re: [BETA] Prime Ban to Group

Post by conan_troutman »

Meatwad253 wrote:I need help please, I keep getting this when I try to ban someone.


Fatal error: Class 'prime_ban_to_group' not found in /home/tydanrpc/public_html/includes/functions_user.php on line 746


Please help D:

after you have done the have you uploaded the files in the root folder to your ftp?

User avatar
primehalo
Former Team Member
Posts: 2850
Joined: Fri May 06, 2005 5:58 pm
Location: Redding, CA
Contact:

Re: [BETA] Prime Ban to Group

Post by primehalo »

AHTEPO wrote:Hello Prime!
Great mod, like all your's! Thanks!
Can you add one very useful option like BAN REASON in USER SIGNATURE? And if user will be unbanned, his original signature back.
That sounds more like a completely separate MOD than an option for my MOD.
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!

JC4912
Registered User
Posts: 43
Joined: Wed Feb 03, 2010 10:45 pm

Re: [BETA] Prime Ban to Group

Post by JC4912 »

Is anyone having problems using this modification on phpbb 3.0.8?

conan_troutman
Registered User
Posts: 222
Joined: Mon Jul 19, 2010 11:06 am

Re: [BETA] Prime Ban to Group

Post by conan_troutman »

I've not updated my forum as I am worried I will have to A, spend hours sorting out and fixing all my MODS and B half of them will stop functioning.

seems if people are having problems with this then I made a wise choice

User avatar
primehalo
Former Team Member
Posts: 2850
Joined: Fri May 06, 2005 5:58 pm
Location: Redding, CA
Contact:

Re: [BETA] Prime Ban to Group

Post by primehalo »

I upgraded to phpbb 3.0.8 and this MOD seems to work fine.
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!

browser123
Registered User
Posts: 162
Joined: Thu Nov 24, 2011 12:28 pm

Re: [BETA] Prime Ban to Group

Post by browser123 »

Mod works perfect, i have set a custom Avatar though, is it possible to return to the users original when they have served their time

- Problem - I have set the users to view the board even on ban but as read only, yet it still wont allow them as it sets a message they are banned then logs them out

Locked

Return to “[3.0.x] MODs in Development”