Advertisement:

Author Topic: Add to existing ban groups  (Read 13927 times)

Offline SleePy

  • Let there be light!
  • Site Team Lead
  • SMF Master
  • *
  • Posts: 30,643
  • Gender: Male
  • Thats his happy face.
    • jdarwood007 on GitHub
    • @jdarwood on Twitter
    • SleePy Code - My personal site
Add to existing ban groups
« on: November 17, 2009, 01:51:54 PM »
Link to Mod

This customization allows you to setup ban groups for the purpose of easily adding to them when banning a member via their profile.
Setup is simple, after installation visit the Modifications settings page.  You select which ban triggers are auto selected.  After which you visit your ban list and either add or modify existing ban groups that are being used as easy ban groups.
Once configured, simply visit the members profile you wish to ban and click the add ban link.  You will have a drop down box that allows you to select one of the existing ban groups or you can create a new one.  Once selecting an existing ban group, it will hide all other options and auto select the default ban triggers.  If you need to adjust the ban triggers you can or simply hit submit.
Jeremy D — Site Team / SMF Developer
Support the SMF Support team!
Profiles:
GitHub

Offline edi67

  • SMF Hero
  • ******
  • Posts: 1,532
  • Gender: Male
  • Italian Supporter
    • CrazyZone
Re: Add to existing ban groups
« Reply #1 on: November 18, 2009, 04:21:36 AM »
very intersting, sorry but i dont understood how make it work
« Last Edit: November 18, 2009, 04:29:03 AM by edi67 »
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

Offline SleePy

  • Let there be light!
  • Site Team Lead
  • SMF Master
  • *
  • Posts: 30,643
  • Gender: Male
  • Thats his happy face.
    • jdarwood007 on GitHub
    • @jdarwood on Twitter
    • SleePy Code - My personal site
Re: Add to existing ban groups
« Reply #2 on: November 18, 2009, 05:29:42 PM »
What don't you understand?
You setup the auto select trigger options in the modifications section.
You then setup bans that are "Easy ban groups".

When you are banning members you can use the drop down to add them to a ban group easily.
Jeremy D — Site Team / SMF Developer
Support the SMF Support team!
Profiles:
GitHub

Offline SilverKnight

  • Jr. Member
  • **
  • Posts: 240
Re: Add to existing ban groups
« Reply #3 on: December 17, 2009, 08:02:53 AM »
Interesting, but i wish this concept was taken on further.

What id say is a drop down box which appears next to the (pointless) report function.

Which comes up with options to ban/suspend the user. It would really make bans less of a pain, and make it better for moderators who don't have access to the ban management.

So you enter in the reason, and how long they should be banned for. all functions to ban the account are automaticly ticked, and added onto that, they get added to the ban group.

And this message appears at the bottom of their post.

(User was banned for this post. (In post: <topic name> (Reason "<reason mod/admin chooses>" by <mod/admin)))

Offline Khinxman

  • Newbie
  • *
  • Posts: 9
Re: Add to existing ban groups
« Reply #4 on: April 11, 2010, 05:16:42 PM »
I keep getting this error when trying to load the modification, any ideas or plans to update it for 2.0 RC3?

Offline Khinxman

  • Newbie
  • *
  • Posts: 9
Re: Add to existing ban groups
« Reply #5 on: April 11, 2010, 05:47:13 PM »
ok, is this something thats easily fixable? or will it require a manual installation?

Offline SleePy

  • Let there be light!
  • Site Team Lead
  • SMF Master
  • *
  • Posts: 30,643
  • Gender: Male
  • Thats his happy face.
    • jdarwood007 on GitHub
    • @jdarwood on Twitter
    • SleePy Code - My personal site
Re: Add to existing ban groups
« Reply #6 on: April 12, 2010, 08:30:21 PM »
Are you using the 1.0.1 version?
Jeremy D — Site Team / SMF Developer
Support the SMF Support team!
Profiles:
GitHub

Offline ~DS~

  • SMF Hero
  • ******
  • Posts: 2,598
  • Gender: Male
Re: Add to existing ban groups
« Reply #7 on: July 07, 2010, 03:09:57 PM »
SleePy There's error in the code in ManageBans.Temeplate.php

Installation code:

Find:
Code: [Select]
<dt>
<strong>', $txt['ban_reason'], ':</strong><br />
<span class="smalltext">', $txt['ban_reason_desc'], '</span>
</dt>
<dd>
<input type="text" name="reason" value="', $context['ban']['reason'], '" size="50" class="input_text" />
</dd>

When the default code in ManageBans.Temeplate.php:

Code: [Select]
<dt>
<strong>', $txt['ban_reason'], ':</strong><br />
<span class="smalltext">', $txt['ban_reason_desc'], '</span>
</dt>
<dd>
<textarea name="reason" cols="50" rows="3">', $context['ban']['reason'], '</textarea>
</dd>

That's why the install show failed showed by Khinxman's image.

Evenmore I tried to install it brings up a error page:

"Error: Cannot install - Your SMF version is not sufficient enough. Please upgrade to SMF 2.0 RC2 or higher"
“There is no god, and that’s the simple truth. If every trace of any single religion were wiped out and nothing were passed on, it would never be created exactly that way again. There might be some other nonsense in its place, but not that exact nonsense. If all of science were wiped out, it would still be true and someone would find a way to figure it all out again."
~Penn Jillette – God, NO! – 2011

Offline ~DS~

  • SMF Hero
  • ******
  • Posts: 2,598
  • Gender: Male
Re: Add to existing ban groups
« Reply #8 on: July 07, 2010, 04:09:50 PM »
For SMF 2.0 RC3 user only:

For "Error: Cannot install - Your SMF version is not sufficient enough. Please upgrade to SMF 2.0 RC2 or higher"

You will need to edit database_install.php file:

Find:
Code: [Select]
if (version_compare('2.0 RC2', $modSettings['smfVersion']) == -1)
exit('<b>Error:</b> Cannot install - Your SMF version is not sufficient enough.  Please upgrade to SMF 2.0 RC2 or higher');

Replace:
Code: [Select]
if (version_compare('2.0 RC3', $modSettings['smfVersion']) == -1)
exit('<b>Error:</b> Cannot install - Your SMF version is not sufficient enough.  Please upgrade to SMF 2.0 RC2 or higher');


Those with failed ManageBans.Temeplate.php

Find:
Code: [Select]
<dt>
<strong>', $txt['ban_reason'], ':</strong><br />
<span class="smalltext">', $txt['ban_reason_desc'], '</span>
</dt>
<dd>
<textarea name="reason" cols="50" rows="3">', $context['ban']['reason'], '</textarea>
</dd>

Replace with:
Code: [Select]
<dt>
<strong>', $txt['aebg_ban_group'], ':</strong><br />
<span class="smalltext">', $txt['aebg_ban_group_desc'], '</span>
</dt>
<dd>
<input type="checkbox" name="easy_ban_group" value="1" class="input_check"', !empty($context['ban']['easy_bg']) ? ' checked="checked"' : '', ' />
</dd>

Works for me 8)

SleePy, I have a request...it is possible to assign to membergroup? Let's say I created a membergroup called "Banned" that way members will know who's banned.
“There is no god, and that’s the simple truth. If every trace of any single religion were wiped out and nothing were passed on, it would never be created exactly that way again. There might be some other nonsense in its place, but not that exact nonsense. If all of science were wiped out, it would still be true and someone would find a way to figure it all out again."
~Penn Jillette – God, NO! – 2011

Offline SleePy

  • Let there be light!
  • Site Team Lead
  • SMF Master
  • *
  • Posts: 30,643
  • Gender: Male
  • Thats his happy face.
    • jdarwood007 on GitHub
    • @jdarwood on Twitter
    • SleePy Code - My personal site
Re: Add to existing ban groups
« Reply #9 on: July 13, 2010, 06:31:02 PM »
Fixed in my sources and will be fixed for the next update
Jeremy D — Site Team / SMF Developer
Support the SMF Support team!
Profiles:
GitHub

Offline Laza

  • Semi-Newbie
  • *
  • Posts: 29
Re: Add to existing ban groups
« Reply #10 on: December 04, 2010, 01:06:24 PM »
Can you please update this mod for SMF 2.0 RC4  :)

Offline SleePy

  • Let there be light!
  • Site Team Lead
  • SMF Master
  • *
  • Posts: 30,643
  • Gender: Male
  • Thats his happy face.
    • jdarwood007 on GitHub
    • @jdarwood on Twitter
    • SleePy Code - My personal site
Re: Add to existing ban groups
« Reply #11 on: December 05, 2010, 09:39:25 PM »
It has been updated.
Jeremy D — Site Team / SMF Developer
Support the SMF Support team!
Profiles:
GitHub

Offline Laza

  • Semi-Newbie
  • *
  • Posts: 29
Re: Add to existing ban groups
« Reply #12 on: December 06, 2010, 10:39:24 AM »
Thank you SleePy :)

Offline Jessica.

  • Full Member
  • ***
  • Posts: 468
  • Gender: Female
  • I use SMF 2.0.2, Default theme
    • Testing Zone
Re: Add to existing ban groups
« Reply #13 on: January 18, 2011, 03:37:01 PM »
can you please convert this so it can work on 1.1.12
Testing Zone - SMF 2.0.7, default Curve
School & Chat - phpBB3, over 170 mods installed, official live forum

I use the latest version of Chrome

phpBB: Forum = a section; Board = whole site
SMF: Forum = whole site; Board = a section

Offline SleePy

  • Let there be light!
  • Site Team Lead
  • SMF Master
  • *
  • Posts: 30,643
  • Gender: Male
  • Thats his happy face.
    • jdarwood007 on GitHub
    • @jdarwood on Twitter
    • SleePy Code - My personal site
Re: Add to existing ban groups
« Reply #14 on: January 19, 2011, 08:15:32 PM »
I will not be backporting this to the 1.1 line :)
Jeremy D — Site Team / SMF Developer
Support the SMF Support team!
Profiles:
GitHub

Offline JohnnyxViet

  • Semi-Newbie
  • *
  • Posts: 18
Re: Add to existing ban groups
« Reply #15 on: February 24, 2011, 09:43:17 PM »
Can you update it to rc5 2.0
and it doesn't shwo in my mod .

Offline SleePy

  • Let there be light!
  • Site Team Lead
  • SMF Master
  • *
  • Posts: 30,643
  • Gender: Male
  • Thats his happy face.
    • jdarwood007 on GitHub
    • @jdarwood on Twitter
    • SleePy Code - My personal site
Re: Add to existing ban groups
« Reply #16 on: March 06, 2011, 12:14:13 AM »
This mod should work on RC5, you will need to emulate the version though via the emulate version in the lower right corner of the screen.
Jeremy D — Site Team / SMF Developer
Support the SMF Support team!
Profiles:
GitHub

Offline mikser

  • Semi-Newbie
  • *
  • Posts: 18
Re: Add to existing ban groups
« Reply #17 on: August 02, 2011, 03:54:20 AM »
Quote
after installation visit the Modifications settings page
Are you sure? Because I clearly don't see it. Maybe SMF 2.0 has a different location? Where?

Offline SleePy

  • Let there be light!
  • Site Team Lead
  • SMF Master
  • *
  • Posts: 30,643
  • Gender: Male
  • Thats his happy face.
    • jdarwood007 on GitHub
    • @jdarwood on Twitter
    • SleePy Code - My personal site
Re: Add to existing ban groups
« Reply #18 on: August 03, 2011, 01:30:15 PM »
This mod was only built for SMF 2.0.  These settings should appear on that page.
Jeremy D — Site Team / SMF Developer
Support the SMF Support team!
Profiles:
GitHub

Offline Aome

  • Semi-Newbie
  • *
  • Posts: 28
  • Gender: Female
  • se habla español ;)
Re: Add to existing ban groups
« Reply #19 on: April 14, 2013, 10:27:01 PM »
Hello!

Does this mod allow you to send the banned members to an specific membergroup?

Thank you
I always appreciate the help, thank you!