Advertisement:

Author Topic: Redirect Banned Users  (Read 33411 times)

Offline Matthew K.

  • SMF Super Hero
  • *******
  • Posts: 12,430
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
Re: Redirect Banned Users
« Reply #20 on: March 10, 2010, 02:36:02 PM »
Thank you A.SK.

Updating to SMF 2.0 RC3, as soon as I can...
Labradoodle-360

Offline DarknQuiet

  • Semi-Newbie
  • *
  • Posts: 45
Re: Redirect Banned Users
« Reply #21 on: March 28, 2010, 10:04:15 AM »
Great Mod! Thanx m8, keep up the good work

R.Bourne

  • Guest
Re: Redirect Banned Users
« Reply #22 on: April 18, 2010, 02:08:47 PM »
      if(!empty($modSettings['redirect_fb_only']) && (isset($_SESSION['ban']['expire_time']) && $_SESSION['ban']['expire_time'] == NULL) && !empty($modSettings['banned_url']))


Pls, change that == NULL to !=0 (zero) in order for this mod to properly work:

      if(!empty($modSettings['redirect_fb_only']) && (isset($_SESSION['ban']['expire_time']) && $_SESSION['ban']['expire_time'] == 0) && !empty($modSettings['banned_url']))



Thx
« Last Edit: April 18, 2010, 02:15:27 PM by R.Bourne »

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 69,304
    • StoryBB/StoryBB on GitHub
Re: Redirect Banned Users
« Reply #23 on: April 18, 2010, 05:07:47 PM »
Or the more proper, faster and cleaner: && empty($_SESSION['ban']['expire_time'])
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

R.Bourne

  • Guest
Re: Redirect Banned Users
« Reply #24 on: April 18, 2010, 05:12:38 PM »
I am sure your suggestion would work as well. However, it took me some time to understand why this MOD was not working the way it supposed to! And couple of comments thanking the developer were even more puzzling.

Offline faeriedust

  • Jr. Member
  • **
  • Posts: 103
Re: Redirect Banned Users
« Reply #25 on: June 03, 2010, 07:14:07 PM »
I think I've got everything set up right. This is my first time using the instructions in the parse file, but by golly I think I did it. Now for the stupid question...
How can I tell if everything is doing what it's supposed to. Is there somewhere I can check to see the result? Since I'm not the one banned, I don't get to
see the page. How can I check it?   Thanks.

Offline DarknQuiet

  • Semi-Newbie
  • *
  • Posts: 45
Re: Redirect Banned Users
« Reply #26 on: June 03, 2010, 10:04:40 PM »
Make an account using a proxy and ban that account. Then try logging in

Offline Matthew K.

  • SMF Super Hero
  • *******
  • Posts: 12,430
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
Re: Redirect Banned Users
« Reply #27 on: June 03, 2010, 11:07:49 PM »
As long as none of the edits failed; it'll work properly.

Offline faeriedust

  • Jr. Member
  • **
  • Posts: 103
Re: Redirect Banned Users
« Reply #28 on: June 04, 2010, 03:45:35 PM »
I had my host do a restore. Everything was fine. I reinstalled the mod and put in the link for the page I wanted. I went into admin and put a ban on the dummy. Now I can't get back to the login page to get myself logged in. Whenever I try to go to login, it brings me back to the banned page. What do I do now?


 
« Last Edit: June 04, 2010, 04:51:02 PM by rising sun »

Offline faeriedust

  • Jr. Member
  • **
  • Posts: 103
Re: Redirect Banned Users
« Reply #29 on: June 04, 2010, 06:04:07 PM »
I think I've figured out what's happening. Evidently, when I banned the dummy member it also locked out my IP address. I'm having my host do another restore and I think I'll call it quits on this mod. Thanks for the help.

Offline Sabre™

  • SMF Hero
  • ******
  • Posts: 2,527
  • Gender: Male
  • IF IT AINT BROKE, I CAN FIX IT TILL IT IS!!
Re: Redirect Banned Users
« Reply #30 on: June 04, 2010, 06:48:12 PM »
If you waited just a little longer, somebody could have reversed the function via db.
Remember, most of us are on different timezones ;)
Glad you got it all sorted though mate :)
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


Offline Matthew K.

  • SMF Super Hero
  • *******
  • Posts: 12,430
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
Re: Redirect Banned Users
« Reply #31 on: June 04, 2010, 09:26:51 PM »
Sabre is correct. What you did to test it is something I have already done and realized the problem it arises, the test you used was not given by the mod author.

Very easy to unban your IP though. This is not an issue with my mod.
Labradoodle-360

Offline Sabre™

  • SMF Hero
  • ******
  • Posts: 2,527
  • Gender: Male
  • IF IT AINT BROKE, I CAN FIX IT TILL IT IS!!
Re: Redirect Banned Users
« Reply #32 on: June 04, 2010, 09:33:33 PM »
Atleast he/she knows your mod does Exactly what it's designed to do lol
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


Offline Matthew K.

  • SMF Super Hero
  • *******
  • Posts: 12,430
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
Re: Redirect Banned Users
« Reply #33 on: June 04, 2010, 09:34:50 PM »
Haha personal experience is always the best way to learn something.

Offline DarkLite

  • Semi-Newbie
  • *
  • Posts: 59
Re: Redirect Banned Users
« Reply #34 on: June 16, 2010, 05:42:13 AM »
2.0 RC3 support would be nice.

Offline GarfieldP

  • Jr. Member
  • **
  • Posts: 222
  • Gender: Male
  • #1 Garfield Fansite
    • @garfieldp1 on Twitter
    • GarfieldP
Re: Redirect Banned Users
« Reply #35 on: June 16, 2010, 06:28:02 AM »
great mod!redirect them to a blank page!

Offline petewadey

  • Jr. Member
  • **
  • Posts: 122
Re: Redirect Banned Users
« Reply #36 on: July 15, 2010, 12:36:34 PM »
Hi, I have the "Stop Forum Spam" package on my site which bans known spammers IP addresses. Your package doesn't redirect that type of ban. Am I doing something wrong? Or are there any plans to make these packages work together.
Cheers,
Pete

Offline Matthew K.

  • SMF Super Hero
  • *******
  • Posts: 12,430
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
Re: Redirect Banned Users
« Reply #37 on: July 16, 2010, 03:26:38 AM »
This mod bans redirects all banned members. Unless you heck Redirect Forever Bans Only

Offline GarfieldP

  • Jr. Member
  • **
  • Posts: 222
  • Gender: Male
  • #1 Garfield Fansite
    • @garfieldp1 on Twitter
    • GarfieldP
Re: Redirect Banned Users
« Reply #38 on: July 16, 2010, 07:46:12 AM »
true, where should I redirect mine? any website in mind?

Offline Matthew K.

  • SMF Super Hero
  • *******
  • Posts: 12,430
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
Re: Redirect Banned Users
« Reply #39 on: July 18, 2010, 03:10:38 PM »
That is based on opinion...by default I would do Google, I guess.