Ban User Hack
Posted by John -Sportnetwork.net
Ban User Hack June 14, 2002 11:35AM |
Hello
I have put together a little User banning hack. It has been tested on 3.3.2x
It uses cookies to ban as i.p. banning is pointless as most people have non-static ip addresses. Their is nothing to stop a user from deleting the cookies and signing up a new username but its as good as you'll get.
If a user has the banned cookie on the computer and logs in as another user that user becomes set as banned also.
It bans per forum and not per phorum install. So a banned user form forum 1 can still post on forum 2 etc.
To ban a user use easyadmin and you will have an extra action. Click ban and the user will be set to banned.
Currently Users can't be unbanned (unless you delete them from the user_banned table that is) this is why it is in beta hacks.
I will post the other tow files you need after this message with install instructions.
Cheers
John Wards
SportNetwork.net
I have put together a little User banning hack. It has been tested on 3.3.2x
It uses cookies to ban as i.p. banning is pointless as most people have non-static ip addresses. Their is nothing to stop a user from deleting the cookies and signing up a new username but its as good as you'll get.
If a user has the banned cookie on the computer and logs in as another user that user becomes set as banned also.
It bans per forum and not per phorum install. So a banned user form forum 1 can still post on forum 2 etc.
To ban a user use easyadmin and you will have an extra action. Click ban and the user will be set to banned.
Currently Users can't be unbanned (unless you delete them from the user_banned table that is) this is why it is in beta hacks.
I will post the other tow files you need after this message with install instructions.
Cheers
John Wards
SportNetwork.net
Re: Ban User Hack June 14, 2002 11:39AM |
Here is the other files you need.
To install:
save all .php.txt files as .php
over write ./common.php
over write ./include/post_functions.php
over write ./admin/pages/easyadmin.php
Run the SQL in user_ban.sql.txt
I hopefully will have a phorum based unbanning system done soon.
I will copy and past the code i have so far to see if someone can beat me to it
Cheers
John
To install:
save all .php.txt files as .php
over write ./common.php
over write ./include/post_functions.php
over write ./admin/pages/easyadmin.php
Run the SQL in user_ban.sql.txt
I hopefully will have a phorum based unbanning system done soon.
I will copy and past the code i have so far to see if someone can beat me to it
Cheers
John
Re: Ban User Hack October 28, 2002 09:46PM |
Registered: 22 years ago Posts: 6 |
Re: Ban User Hack November 06, 2003 06:02AM |
Sorry, you do not have permission to post/reply in this forum.