Redirect instead of ban members?

Forum
Last Post
Threads / Messages

NobodysHero

Co-Owner of MystFell
Member
Joined
Nov 6, 2013
Messages
144
Points
0
Mysidian Dollar
12,988
I'd like to know if anyone could help with giving me direction on setting up my site to redirect members to a different page when they've refreshed, instead of banning them. Unbanning them is getting quite exhausting, but I don't want to remove the function altogether.

Also, is it possible that bans can be set to lift after so many days? If so, how involved/complex would that be?
 
Last edited:
Actually there is a ban function in Mysidia in file /functions/functions_users.php. All you need is to modify this function, remove the code inside it, so it does nothing.
 
Thanks for the quick reply! 8D

What I'd really like to do, however, is redirect them so they don't end up on the same page again. Like maybe it reloads instead of just brings them back to the page with the old information on it.

If it's super complex, I'll just remove the ban portion, but I don't want them to be able to exploit it, which I believe is why you implemented the autoban to begin with. I mean, most, if not all, are doing it on accident, but just in case for that ONE person (or... maybe two?) that is trying to get around things, would be nice to have the autoban still in play for now.
 
Thanks, babe! <3

Um... >.> Any chance you could post the code string(s) I would need to do that? I'm very slowly (Like turtle speed) learning PHP. XD Normally, I'd ask my coder to do it, but he's not available, because life keeps happening. T_T
 
Well just change the code in function banuser($user) in file /functions/functions_users.php:

PHP:
header('Location: http://yoursite.com/');

It should be at around line 108 assuming you have never edited functions_users.php file before. Dont forget to change http://yoursite.com to the actual url on your website.
 
Oh, that simple. Cool. 8D Thanks, HoF!

EDITING MY EDIT!: I get it now. It was late, shouldn't ask questions when sleepy. Thanks again! WORK'S PERFECT! 8D
 
Last edited:

Similar threads

Users who are viewing this thread

  • Forum Contains New Posts
  • Forum Contains No New Posts

Forum statistics

Threads
4,277
Messages
33,118
Members
1,602
Latest member
BerrieMilk
BETA

Latest Threads

Top