Hello,
For some reason when I ban a member/s they stay registered and after few hours the Ban is removed and I have to Ban them again or delete them. Is there any better solution to that?
Thanks..
Hello, For some reason when I ban a member/s they stay registered and after few hours the Ban is removed and I have to Ban them again or delete them. Is there any better solution to that? Thanks.. Sometimes communicating your problem and putting it out there is enough to solve it |
What version r u running, I forgot.. ManOfTeal.COM a Proud UNA site, six years running strong! |
7.0.9..why? is it a known issue?..didn't find anything when I searched the forum. Sometimes communicating your problem and putting it out there is enough to solve it |
curious, trying to duplicate it on my end ManOfTeal.COM a Proud UNA site, six years running strong! |
7.0.9..why? is it a known issue?..didn't find anything when I searched the forum.
What did you search for? I just found these...
http://www.boonex.com/forums/?action=goto&search=1#topic/Banned-members-not-staying-banned-.htm
http://www.boonex.com/forums/?action=goto&search=1#topic/Banned-Members-Don-t-Remain-Banned.htm
http://www.boonex.com/forums/?action=goto&search=1#topic/I-ban-spammers-then-i-logout-after-when-i-login-they-are-unbanned-.htm
Looks like lots of people have had this problem going several versions back.. BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin |
Thank you for those links! two of them don't answer my question or provide a solution and the 3rd link with the Module costs $80. Before I chose to pay the $80 I rather check on the forum and see if someone here can help me Ban a member and have him stay Banned.
7.0.9..why? is it a known issue?..didn't find anything when I searched the forum.
What did you search for? I just found these...
http://www.boonex.com/forums/?action=goto&search=1#topic/Banned-members-not-staying-banned-.htm
http://www.boonex.com/forums/?action=goto&search=1#topic/Banned-Members-Don-t-Remain-Banned.htm
http://www.boonex.com/forums/?action=goto&search=1#topic/I-ban-spammers-then-i-logout-after-when-i-login-they-are-unbanned-.htm
Looks like lots of people have had this problem going several versions back..
Sometimes communicating your problem and putting it out there is enough to solve it |
Why don't you just deactivate the member? My opinions expressed on this site, in no way represent those of Boonex or Boonex employees. |
Thank you for those links! two of them don't answer my question or provide a solution and the 3rd link with the Module costs $80. Before I chose to pay the $80 I rather check on the forum and see if someone here can help me Ban a member and have him stay Banned. Ok, ok I'll get off my lazy butt and help lol... remember whenever you manually change code it makes upgrades a pain. Having said that if you want your bans permanent just open:
/inc/classes/BxDolCronCmd.php
and remove this:
// clear ban table if (db_res("DELETE FROM `sys_admin_ban_list` WHERE `DateTime` + INTERVAL `Time` SECOND < NOW()")) db_res("OPTIMIZE TABLE `sys_admin_ban_list`");
and this:
// clean expired ip bans bx_import('BxDolAdminIpBlockList'); $oBxDolAdminIpBlockList = new BxDolAdminIpBlockList(); $iIps = $oBxDolAdminIpBlockList->deleteExpired();
After you remove these two sections the bans AND Ip bans should stay until you manually remove them... have fun. BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin |
Thanks!!!! This has been driving me nutz too!
Thank you for those links! two of them don't answer my question or provide a solution and the 3rd link with the Module costs $80. Before I chose to pay the $80 I rather check on the forum and see if someone here can help me Ban a member and have him stay Banned. Ok, ok I'll get off my lazy butt and help lol... remember whenever you manually change code it makes upgrades a pain. Having said that if you want your bans permanent just open:
/inc/classes/BxDolCronCmd.php
and remove this:
// clear ban table if (db_res("DELETE FROM `sys_admin_ban_list` WHERE `DateTime` + INTERVAL `Time` SECOND < NOW()")) db_res("OPTIMIZE TABLE `sys_admin_ban_list`");
and this:
// clean expired ip bans bx_import('BxDolAdminIpBlockList'); $oBxDolAdminIpBlockList = new BxDolAdminIpBlockList(); $iIps = $oBxDolAdminIpBlockList->deleteExpired();
After you remove these two sections the bans AND Ip bans should stay until you manually remove them... have fun.
|
I delete them and the next day they're back again.. Why don't you just deactivate the member?
Sometimes communicating your problem and putting it out there is enough to solve it |
Thank you Mscott!! Do you think it will cause some trouble down the road with upgrades or you were just stating in general?
Thank you for those links! two of them don't answer my question or provide a solution and the 3rd link with the Module costs $80. Before I chose to pay the $80 I rather check on the forum and see if someone here can help me Ban a member and have him stay Banned. Ok, ok I'll get off my lazy butt and help lol... remember whenever you manually change code it makes upgrades a pain. Having said that if you want your bans permanent just open:
/inc/classes/BxDolCronCmd.php
and remove this:
// clear ban table if (db_res("DELETE FROM `sys_admin_ban_list` WHERE `DateTime` + INTERVAL `Time` SECOND < NOW()")) db_res("OPTIMIZE TABLE `sys_admin_ban_list`");
and this:
// clean expired ip bans bx_import('BxDolAdminIpBlockList'); $oBxDolAdminIpBlockList = new BxDolAdminIpBlockList(); $iIps = $oBxDolAdminIpBlockList->deleteExpired();
After you remove these two sections the bans AND Ip bans should stay until you manually remove them... have fun.
Sometimes communicating your problem and putting it out there is enough to solve it |
You're welcome!
It won't cause trouble but if the upgrade contains a new version of "BxDolCronCmd.php" then you're changes will be lost and you'll have to redo the fix. When you make changes like this it's best to keep a detailed list so you can go back and redo them after an upgrade. It's just kinda a pain in the butt.
Thank you Mscott!! Do you think it will cause some trouble down the road with upgrades or you were just stating in general?
Thank you for those links! two of them don't answer my question or provide a solution and the 3rd link with the Module costs $80. Before I chose to pay the $80 I rather check on the forum and see if someone here can help me Ban a member and have him stay Banned. Ok, ok I'll get off my lazy butt and help lol... remember whenever you manually change code it makes upgrades a pain. Having said that if you want your bans permanent just open:
/inc/classes/BxDolCronCmd.php
and remove this:
// clear ban table if (db_res("DELETE FROM `sys_admin_ban_list` WHERE `DateTime` + INTERVAL `Time` SECOND < NOW()")) db_res("OPTIMIZE TABLE `sys_admin_ban_list`");
and this:
// clean expired ip bans bx_import('BxDolAdminIpBlockList'); $oBxDolAdminIpBlockList = new BxDolAdminIpBlockList(); $iIps = $oBxDolAdminIpBlockList->deleteExpired();
After you remove these two sections the bans AND Ip bans should stay until you manually remove them... have fun.
BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin |
RE: I delete them and the next day they're back again.. Why don't you just deactivate the member?
I didn't say 'delete', I said deactivate. My opinions expressed on this site, in no way represent those of Boonex or Boonex employees. |
Thank you very much Mscott!!! I appreciate your help. Soryy HoustoL...my bad. Sometimes communicating your problem and putting it out there is enough to solve it |
Does the 'clean expired ip bans' code needs to be done for this to work? I only ask because not very sure if these ip bans are only those I manually enter in the admin (which I never do) or, does it also cover the ips that are blocked when max connect errors are reached, for example? If it's just ip bans done by admins, isn't it enough for members' ban to work to just disable 'clear ban table' code? |