Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 08-15-2016, 12:54 PM
NobodysHero's Avatar
NobodysHero NobodysHero is offline
Co-Owner of MystFell
 
Join Date: Nov 2013
Posts: 144
Gender: Female
Credits: 18,713
NobodysHero is on a distinguished road
Default Redirect instead of ban members?

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
Reply With Quote
  #2  
Old 08-27-2016, 03:20 PM
NobodysHero's Avatar
NobodysHero NobodysHero is offline
Co-Owner of MystFell
 
Join Date: Nov 2013
Posts: 144
Gender: Female
Credits: 18,713
NobodysHero is on a distinguished road
Default Possible Solution, but still lost

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
Reply With Quote
  #3  
Old 08-27-2016, 05:21 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 333,040
Hall of Famer is on a distinguished road
Default

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.
Reply With Quote
  #4  
Old 08-27-2016, 08:29 PM
NobodysHero's Avatar
NobodysHero NobodysHero is offline
Co-Owner of MystFell
 
Join Date: Nov 2013
Posts: 144
Gender: Female
Credits: 18,713
NobodysHero is on a distinguished road
Default

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.
Reply With Quote
  #5  
Old 08-27-2016, 08:54 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 333,040
Hall of Famer is on a distinguished road
Default

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.
Reply With Quote
  #6  
Old 08-28-2016, 03:17 PM
NobodysHero's Avatar
NobodysHero NobodysHero is offline
Co-Owner of MystFell
 
Join Date: Nov 2013
Posts: 144
Gender: Female
Credits: 18,713
NobodysHero is on a distinguished road
Default

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
Reply With Quote
  #7  
Old 08-28-2016, 09:30 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 333,040
Hall of Famer is on a distinguished road
Default

Well just change the code in function banuser($user) in file /functions/functions_users.php:

PHP Code:
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.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #8  
Old 08-29-2016, 12:05 AM
NobodysHero's Avatar
NobodysHero NobodysHero is offline
Co-Owner of MystFell
 
Join Date: Nov 2013
Posts: 144
Gender: Female
Credits: 18,713
NobodysHero is on a distinguished road
Default

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.
Reply With Quote
  #9  
Old 08-29-2016, 11:31 AM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 333,040
Hall of Famer is on a distinguished road
Default

You are welcome, glad it worked for you.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 02:59 AM.

Currently Active Users: 9706 (0 members and 9706 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636