![]() |
Home Community Mys-Script Creative Off-Topic |
|
![]() |
|
Thread Tools | Display Modes |
|
#1
|
||||
|
||||
![]()
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 by NobodysHero; 08-27-2016 at 03:22 PM. Reason: Trimming it down, fixing grammer/spelling mistakes. x.x |
#2
|
||||
|
||||
![]()
http://stackoverflow.com/questions/4...t-code-example
I saw this and thought this would work great for those who'd like an alternative to the autoban, however I have no idea how to implement it. If anyone could help, that'd be great! 8D |
#3
|
||||
|
||||
![]()
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.
__________________
![]() Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#4
|
||||
|
||||
![]()
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. |
#5
|
||||
|
||||
![]()
Its not super complex, you can just change the code to ban user to redirect user instead.
__________________
![]() Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#6
|
||||
|
||||
![]()
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 |
#7
|
||||
|
||||
![]()
Well just change the code in function banuser($user) in file /functions/functions_users.php:
PHP Code:
__________________
![]() Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#8
|
||||
|
||||
![]()
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 by NobodysHero; 08-29-2016 at 09:42 AM. |
#9
|
||||
|
||||
![]()
You are welcome, glad it worked for you.
__________________
![]() Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
![]() |
|
|
What's New? |
What's Hot? |
What's Popular? |