Redirect Banned Users

Started by Matthew K., January 23, 2010, 09:18:35 PM

Previous topic - Next topic

Matthew K.

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

Sabre™

Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


Eclipse16V

Nice Mod
Please make it for SMF 2.0RC2
I worked with:
SMF 2 in German

Shop:
SID Giessen

Matthew K.

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

ZUMZUM

i have installed this mod but see no options to redirect a member ?

Matthew K.

@ ZUMZUM - Do you have a 1.1. version? This is not yet created for 2.0 yet.

ZUMZUM


Matthew K.

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']));

kizer

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

Matthew K.

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

kizer

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

Matthew K.

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 :)

KensonPlays

2.0RC2??? I hope so!! I'll have to wait tho!...

Owner of Mesozoic Haven

kizer

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

Matthew K.

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
Quote from: kizer 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.

societyofrobots


Matthew K.

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

Matthew K.

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


Sudhakar Arjunan

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

Advertisement: