Advertisement:

Author Topic: Redirect Banned Users  (Read 33412 times)

Offline Matthew K.

  • SMF Super Hero
  • *******
  • Posts: 12,430
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
Redirect Banned Users
« on: January 23, 2010, 09:18:35 PM »
Link to Mod

Redirect Banned Users


Author: Labradoodle-360
Latest Version: 2.0
Compatible With: SMF 2.0



Summary
Redirect Banned Users allows you to redirect banned users to whatever URL you want!

Features:
  • Define Redirect URL
  • Only Redirect Never Expiring Bans
  • Disable the Triggering of Errors when banned members visit your forum
  • Delay {x} Seconds before Redirect
  • Disable or Enable the whole mod




Languages





Installation
Package Manager should work in most cases. If you need to make any edits, the full list can be obtained from the Parse function on the right.

Useful links
Manual Installation Of Mods
How Do I Modify Files?




Version 2.0 Changelog
!+) Complete Re-write (Read Summary)




Link to Mod | Buy me Coffee - Support my Projects
« Last Edit: July 12, 2011, 05:46:51 PM by Labradoodle-360 »

Offline Sabre™

  • SMF Hero
  • ******
  • Posts: 2,527
  • Gender: Male
  • IF IT AINT BROKE, I CAN FIX IT TILL IT IS!!
Re: Redirect Banned Users
« Reply #1 on: January 24, 2010, 04:41:40 AM »
Nice mod mate.
Cheers :)
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


Offline Eclipse16V

  • Sophist Member
  • *****
  • Posts: 1,070
  • Gender: Male
  • Tornado Map
    • Eclipse16V on Facebook
    • @Eclipse16V on Twitter
    • Tornado Map
Re: Redirect Banned Users
« Reply #2 on: January 24, 2010, 08:35:59 AM »
Nice Mod
Please make it for SMF 2.0RC2
I worked with:
SMF 2 in German

My Shop:
Das Lieschen

Offline Matthew K.

  • SMF Super Hero
  • *******
  • Posts: 12,430
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
Re: Redirect Banned Users
« Reply #3 on: January 24, 2010, 09:10:23 AM »
Thanks guys!

Updating Redirect Banned Users to SMF 2.0 RC2 is on my to-do list, I'll do my best to release it shortly.
Labradoodle-360

Offline ZUMZUM

  • Jr. Member
  • **
  • Posts: 114
Re: Redirect Banned Users
« Reply #4 on: January 29, 2010, 06:04:33 PM »
i have installed this mod but see no options to redirect a member ?

Offline Matthew K.

  • SMF Super Hero
  • *******
  • Posts: 12,430
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
Re: Redirect Banned Users
« Reply #5 on: January 29, 2010, 06:05:58 PM »
@ ZUMZUM - Do you have a 1.1. version? This is not yet created for 2.0 yet.

Offline ZUMZUM

  • Jr. Member
  • **
  • Posts: 114
Re: Redirect Banned Users
« Reply #6 on: January 29, 2010, 06:08:59 PM »
Yes i use 1.1.11

Offline Matthew K.

  • SMF Super Hero
  • *******
  • Posts: 12,430
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
Re: Redirect Banned Users
« Reply #7 on: January 29, 2010, 06:34:16 PM »
Well, make sure the edits were made properly.

./Sources/ModSettings.php
Code: (Find) [Select]
// Labradoodle-360's Redirect Banned Users Mod.
array('text', 'banned_url'),
array('check', 'redirect_fb_only'),
'',

./Sources/Security.php
Code: (Find) [Select]
// You banned, sucka!
if(!empty($modSettings['redirect_fb_only']) && ($_SESSION['ban']['expire_time'] == NULL) && !empty($modSettings['banned_url']))
redirectexit($modSettings['banned_url']);
elseif(empty($modSettings['redirect_fb_only']) && !empty($modSettings['banned_url']))
redirectexit($modSettings['banned_url']);
else
fatal_error(sprintf($txt[430], $old_name) . (empty($_SESSION['ban']['cannot_access']['reason']) ? '' : '<br />' . $_SESSION['ban']['cannot_access']['reason']));

Offline kizer

  • Jr. Member
  • **
  • Posts: 383
  • Gender: Male
    • Links4Jeeps.com
Re: Redirect Banned Users
« Reply #8 on: February 05, 2010, 01:47:48 PM »
I haven't installed this as of yet, but does it delay at all before sending them to a page? The reason I ask I have the show ban time mod installed and I'd like to let the banned member know for one they are banned and for how long.

However on the flip side with some spammers I can care less and I'd like to simply get rid of them ,but I have to at least take care of my decent members if I was to do a temp ban.
Own a Jeep? Links4Jeeps.com

Offline Matthew K.

  • SMF Super Hero
  • *******
  • Posts: 12,430
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
Re: Redirect Banned Users
« Reply #9 on: February 05, 2010, 01:50:02 PM »
I think this will answer your question fairly well, I have included an option to check in the admin panel to ONLY redirect forever bans exactly for this reason, if you check that box only people who were banned forever will get redirected.

This is useful so that you don't redirect people, and lose traffic because they keep getting redirected and don't come back.

Does that answer your question?
Labradoodle-360

Offline kizer

  • Jr. Member
  • **
  • Posts: 383
  • Gender: Male
    • Links4Jeeps.com
Re: Redirect Banned Users
« Reply #10 on: February 05, 2010, 01:50:58 PM »
Uh, yeah hahahaha sorry I didn't catch the forever ban line.

Actually you couldn't of been more clear on that statement. ;)
Own a Jeep? Links4Jeeps.com

Offline Matthew K.

  • SMF Super Hero
  • *******
  • Posts: 12,430
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
Re: Redirect Banned Users
« Reply #11 on: February 05, 2010, 01:53:30 PM »
My goal is for the next version to be 2.0 compatible, as things have changed in the context and it's still fairly buggy.
But, if I have time, I may add another optional field to the admin panel for redirection time, so they're redirected after the inputted time.

Let me know how it works for you :)

Offline KensonPlays

  • SMF Hero
  • ******
  • Posts: 4,306
    • @Kenson_Plays on Twitter
Re: Redirect Banned Users
« Reply #12 on: February 05, 2010, 02:44:10 PM »
2.0RC2??? I hope so!! I'll have to wait tho!...

Offline kizer

  • Jr. Member
  • **
  • Posts: 383
  • Gender: Male
    • Links4Jeeps.com
Re: Redirect Banned Users
« Reply #13 on: February 05, 2010, 04:49:37 PM »
Welp I installed it manually in 1.1.10 and it did not forward a perm banned user. I don't know if its because something changed between 1.1.10 and 1.1.11, but it didn't work. I need to update to 1.1.11 soon, but I can't seem to do it automatically because I must have a mod that doesn't allow it, but I'll have to try this one later it appears.
Own a Jeep? Links4Jeeps.com

Offline Matthew K.

  • SMF Super Hero
  • *******
  • Posts: 12,430
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
Re: Redirect Banned Users
« Reply #14 on: February 05, 2010, 06:49:08 PM »
Well, it's definitely a possibility as 1.1 updates are for security, and nothing else. And this mod does effect security. As I have not tested or experimented this with 1.1.10, first of all, I do not suggest installing my mod (even manually) in the case of security changes that this may negatively effect.

Secondly, I would upgrade to 1.1.11 as soon as possible, as security updates were made.
This is off the mod topic, but to upgrade your forum you must uninstall all mods despite errors received and then after the upgrade reinstall them.

Labradoodle-360
Welp I installed it manually in 1.1.10 and it did not forward a perm banned user. I don't know if its because something changed between 1.1.10 and 1.1.11, but it didn't work. I need to update to 1.1.11 soon, but I can't seem to do it automatically because I must have a mod that doesn't allow it, but I'll have to try this one later it appears.

Offline societyofrobots

  • Jr. Member
  • **
  • Posts: 201
Re: Redirect Banned Users
« Reply #15 on: February 12, 2010, 02:16:58 AM »
There is a bug in this mod.

You can find the fix here:
http://www.simplemachines.org/community/index.php?topic=363831.0

Offline Matthew K.

  • SMF Super Hero
  • *******
  • Posts: 12,430
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
Re: Redirect Banned Users
« Reply #16 on: February 12, 2010, 11:06:18 AM »
Thanks, I appreciate it!

This will be added on as a bugfix when I release v1.1 (which will hopefully be RC2 compatible)
Labradoodle-360

Offline Matthew K.

  • SMF Super Hero
  • *******
  • Posts: 12,430
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
Re: Redirect Banned Users
« Reply #17 on: February 19, 2010, 02:40:59 PM »
Version 1.1 released!

Features
SMF 2.0 RC2 Compatibility
SMF 1.1.11 Bugfix

It is VERY highly recommended that you uninstall version 1.0 and install version 1.1 as a bug has been addressed.

Enjoy,
Labradoodle-360


Offline Sudhakar Arjunan

  • Sophist Member
  • *****
  • Posts: 1,226
  • Gender: Male
  • SMF is the best forum tool
    • IT Acumens - Webdesigning & Webhositing services in Chennai
Re: Redirect Banned Users
« Reply #19 on: March 10, 2010, 02:23:17 PM »
Wonderful mod for forum Admins.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum