Why Baning members doesn't hold more than 24 hours???

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
Quote · 21 Aug 2012

What version r u running, I forgot..

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 21 Aug 2012

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
Quote · 21 Aug 2012

curious, trying to duplicate it on my end

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 21 Aug 2012

 

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
Quote · 22 Aug 2012

 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
Quote · 22 Aug 2012

Why don't you just deactivate the member?

My opinions expressed on this site, in no way represent those of Boonex or Boonex employees.
Quote · 22 Aug 2012

 

 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
Quote · 22 Aug 2012

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.

 

Quote · 22 Aug 2012

 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
Quote · 24 Aug 2012

 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
Quote · 24 Aug 2012

 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
Quote · 24 Aug 2012

 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.
Quote · 24 Aug 2012

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
Quote · 28 Aug 2012

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?

Quote · 15 May 2013
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.