All Good Things Must Come To An End

As you all know, I have been doing WordPress plugins and supporting it for the past 6 years. These 6 years of my life, I have been through my polytechnic education, my national service as well as my university education.

I just graduated from university in December 2009 and have been looking for full-time jobs. I am offered a full-time job and will be starting work on 1st February 2010.

I regret to say that I am NOT ABLE to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

However, I WILL still update my plugins whenever I can and you still can report bugs to me via email and I will try to fix it.


Author Topic: Patch to redirect banned users to url instead of banned message.  (Read 304 times)

0 Members and 1 Guest are viewing this topic.

Offline jason_lau

  • Newbie
  • *
  • Posts: 2
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: Mine
I made a little change to wp-ban.php and ban-preview.php which allow you to redirect banned users to a specified url.

wp-ban.php insert the following code at line 76 -
if(trim(substr($banned_message,0,4)) == "url=") :
    header("Location: " . trim(substr($banned_message,4,strlen($banned_message))));
    exit();
    endif;

ban-preview.php insert the following code at line 34 -
if(trim(substr($banned_message,0,4)) == "url=") :
    header("Location: " . trim(substr($banned_message,4,strlen($banned_message))));
    exit();
    endif;

That's it!

You can use a link in place of the banned message like this -
url=http://your-ban-page.html

Enjoy!  ;D

http://jasonlau.biz