[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!
Scam Warning
Locked
User avatar
primehalo
Former Team Member
Posts: 2850
Joined: Fri May 06, 2005 5:58 pm
Location: Redding, CA
Contact:

[BETA] Prime Ban to Group

Post by primehalo »

MOD Title: Prime Ban to Group
MOD Description: Automatically moves users into a special group when they are banned. Users will be removed from the group when they are manually unbanned or when their temporary ban has ended.

Placing banned users into specific groups allows you to visually indicate that a user has been banned through the use of group attributes, such as a custom rank image.
MOD Version: 0.0.1
MOD Download: Main Download

Demo Board: http://www.absoluteanime.com/forum/
Demo Username: Not required
Demo Password: Not required

For the release history, please view the Installation Instructions.

Screenshot (ver. 0.0.0):
Image
Last edited by primehalo on Mon Mar 17, 2008 9:18 am, edited 1 time in total.
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!

User avatar
WhiteWolfSix
Registered User
Posts: 258
Joined: Sun May 15, 2005 5:43 am

Re: [BETA] Prime Ban to Group

Post by WhiteWolfSix »

Hi primehalo,

this seems to be a nice MOD. Will be this MOD compatible/working with released Ban users by x warnings?
Image
WhiteWolfSix (WW6)

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 »

WhiteWolfSix wrote:Hi primehalo,

this seems to be a nice MOD. Will be this MOD compatible/working with released Ban users by x warnings?
I haven't tested it, but it looks like it should be compatible.
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!

Balero
Registered User
Posts: 145
Joined: Tue Dec 18, 2007 10:57 am

Re: [BETA] Prime Ban to Group

Post by Balero »

Testing this mod with the mod Ban users by x warnings, occurred normal.

I translate to Portuguese Brazil, following below:

prime_ban_to_group

Code: Select all

<?php
/**
*
* prime_ban_to_group [Portuguese Brazil]
*
* @package language
* @version $Id: prime_ban_to_group.php,v 0.0.0 2008/02/06 14:30:00 primehalo Exp $
* @copyright (c) 2008 Ken F. Innes IV
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @translated by Micael (Balero)
*
*/

/**
* DO NOT CHANGE
*/
if (!defined('IN_PHPBB'))
{
	exit;
}

if (empty($lang) || !is_array($lang))
{
	$lang = array();
}

// DEVELOPERS PLEASE NOTE
//
// All language files should use UTF-8 as their encoding and the files must not contain a BOM.
//
// Placeholders can now contain order information, e.g. instead of
// 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
// translators to re-order the output of data while ensuring it remains correct
//
// You do not need this where single placeholders are used, e.g. 'Message %d' is fine
// equally where a string contains only two placeholders which are used to wrap text
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine
//
// Some characters you may want to copy&paste:
// ’ » “ ” …
//

$lang = array_merge($lang, array(
	'G_SUSPENDED_USERS'	=> 'Usuários suspensos',
	'G_BANNED_USERS'	=> 'Usuários banidos',
));

?>
Thanks and Bye ;)

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 »

Balero wrote:Testing this mod with the mod Ban users by x warnings, occurred normal.

I translate to Portuguese Brazil, following below:

Thanks and Bye ;)
Thanks, I'll include it in the release!
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!

Kharon
Registered User
Posts: 235
Joined: Thu Oct 26, 2006 5:27 pm

Re: [BETA] Prime Ban to Group

Post by Kharon »

nice mod :)


ncc50446
Registered User
Posts: 26
Joined: Thu Aug 02, 2007 9:39 pm

Re: [BETA] Prime Ban to Group

Post by ncc50446 »

Hi
I'm not sure if I missed something, but if you ban a username for anything other than permanent, it doesn't change them to banned. Is there any way to have this changed so that it shows no matter how long the ban is in effect for?
Very nice mod by the way! I had been thinking of making something like this, but yours is much better, so thank you very much, very nice job
Thanks

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 »

ncc50446 wrote:Hi
I'm not sure if I missed something, but if you ban a username for anything other than permanent, it doesn't change them to banned. Is there any way to have this changed so that it shows no matter how long the ban is in effect for?
Very nice mod by the way! I had been thinking of making something like this, but yours is much better, so thank you very much, very nice job
Thanks
Did you miss the Do-It-Yourself instructions at the bottom? That tells about permanent and temporary bans.
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!

ncc50446
Registered User
Posts: 26
Joined: Thu Aug 02, 2007 9:39 pm

Re: [BETA] Prime Ban to Group

Post by ncc50446 »

Sorry, it would seem that I did... :oops: Very nice Mod! Thank you very much, and sorry for the stupid question lol

DJ Skitzo
Registered User
Posts: 596
Joined: Sun Aug 12, 2007 7:25 pm

Re: [BETA] Prime Ban to Group

Post by DJ Skitzo »

Another great mod, I will install this now and report back.

Thanks

DJ Skitzo
Registered User
Posts: 596
Joined: Sun Aug 12, 2007 7:25 pm

Re: [BETA] Prime Ban to Group

Post by DJ Skitzo »

Installed this without any problems, thanks again Primehalo :D

User avatar
WhiteWolfSix
Registered User
Posts: 258
Joined: Sun May 15, 2005 5:43 am

Re: [BETA] Prime Ban to Group

Post by WhiteWolfSix »

I have installed your MOD that works fine. One of my Global mods had suspended user 'mahatma' for 24 hours. After that he was successfuly removed from usergroup SUSPENDED and everithing seemd to be fine, but suddenly following logs in ACP appears after visiting the forum. It logs anonymous users, registered users, bots, all users except me. How could I stop it?
Image

P.S.: No bots were suspended and they appear like removed from SUSPENDED usergroup too. :?
Image
WhiteWolfSix (WW6)

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 »

WhiteWolfSix wrote:I have installed your MOD that works fine. One of my Global mods had suspended user 'mahatma' for 24 hours. After that he was successfuly removed from usergroup SUSPENDED and everithing seemd to be fine, but suddenly following logs in ACP appears after visiting the forum. It logs anonymous users, registered users, bots, all users except me. How could I stop it?
Image

P.S.: No bots were suspended and they appear like removed from SUSPENDED usergroup too. :?
Yes, I noticed this too and has been fixed in the latest version. The problem was the built-in function that removes users from a group doesn't check to see if members actually belong to the group before removing and logging. So I added this check.
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!

User avatar
WhiteWolfSix
Registered User
Posts: 258
Joined: Sun May 15, 2005 5:43 am

Re: [BETA] Prime Ban to Group

Post by WhiteWolfSix »

Does it means, you have made an update? OK, I am going to check it and update as well. :mrgreen:

Edit: Yeah, it seems to be perfectly working now. Thanks. ;)
Image
WhiteWolfSix (WW6)

Locked

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