Customizing SMF > Modifications and Packages
Redirect Banned Users
Labradoodle-360:
@ ZUMZUM - Do you have a 1.1. version? This is not yet created for 2.0 yet.
ZUMZUM:
Yes i use 1.1.11
Labradoodle-360:
Well, make sure the edits were made properly.
./Sources/ModSettings.php
--- Code: (Find) --- // Labradoodle-360's Redirect Banned Users Mod.
array('text', 'banned_url'),
array('check', 'redirect_fb_only'),
'',
--- End code ---
./Sources/Security.php
--- Code: (Find) --- // 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']));
--- End code ---
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.
Labradoodle-360:
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
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version