Welcome, Guest. Please Login or Register.
May 06, 2024, 02:17:12 AM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Completed mods  |  [DONE 1.5.2] Enhanced Ban Mod 1.1 « previous next »
Pages: 1 2 [3] Reply Ignore Print
Author Topic: [DONE 1.5.2] Enhanced Ban Mod 1.1  (Read 8878 times)
Gobalopper
Mod Team
YaBB God
*****
Posts: 993


Cookie Monster

WWW
Re:[done 1.5.2] Enhanced Ban Mod 1.1
« Reply #30 on: May 14, 2003, 12:08:41 AM »
Reply with quote

   if ($username == 'Guest' && $guestaccess == 0)
      if (!(($action == 'login') || ($action == 'login2') || ($action == 'register') || ($action == 'register2') || ($action == 'reminder')))
         KickGuest();


try adding $action == 'logout' to that list.
Logged
Daniel D.
Mod Team
YaBB God
*****
Posts: 2935


Re:[done 1.5.2] Enhanced Ban Mod 1.1
« Reply #31 on: May 14, 2003, 06:50:33 PM »
Reply with quote

No, didn't work.

I logged in as an admin, installed the mod, banned the user "go", logged out, logged in as "go" -> got the Board Index (!) -> after clicking on "Home" I got the message that I'm banned and was logged out.

I can't click on "Login" as a guest because I get the message everytime I want to do something. Only solution: Deinstall the mod.
Logged

Dem0n
Full Member
***
Posts: 107


WWW
Re:[done 1.5.2] Enhanced Ban Mod 1.1
« Reply #32 on: May 14, 2003, 08:28:31 PM »
Reply with quote

the answer may have been posted already, but does this mod work with version 1.5.1 final ? :P
Logged

Ipstenu
Noobie
*
Posts: 26


42

Re:[done 1.5.2] Enhanced Ban Mod 1.1
« Reply #33 on: May 15, 2003, 02:15:14 PM »
Reply with quote

*hmm* Daniel, it's possible that the go account is locked out with YOUR IP address, so when you go back it's seeing that and keeping you out.

From what I understand, you get the board index because you have to log in for the system to pay attention to who you are, before it'll lock you out.

ETA: I played around with the mod a little bit.  If you don't want to ban peolpe by IP address when you ban them from their profile, go to EnhancedBan.php, find

            $aToBan[count($aToBan)] = "ID_MEMBER = '" . $aMember['ID_MEMBER'] . "'";
            $aToBan[count($aToBan)] = "Name = '" . $aMember['memberName'] . "'";
            $aToBan[count($aToBan)] = "Mail = '" . $aMember['emailADDress'] . "'";
            $aToBan[count($aToBan)] = "IP = '" . $aMember['memberIP'] . "'";


and change it to
            $aToBan[count($aToBan)] = "ID_MEMBER = '" . $aMember['ID_MEMBER'] . "'";
            $aToBan[count($aToBan)] = "Name = '" . $aMember['memberName'] . "'";
            $aToBan[count($aToBan)] = "Mail = '" . $aMember['emailAddress'] . "'";


Also, if you notice in the first of these blocks, there's a type: emailADDress, which has the caps for the D's and won't actually import the email address for the user! :)  Change the DD to dd and you should be fine.  I tested this on my 1.5.2 board today and it's okay.
« Last Edit: May 15, 2003, 02:42:19 PM by Ipstenu » Logged
FaSan
Jr. Member
**
Posts: 67


Re:[done 1.5.2] Enhanced Ban Mod 1.1
« Reply #34 on: July 29, 2003, 12:08:11 AM »
Reply with quote

Hi !

I need to Ban entire Email's Domain. This Mod support a Wildcards ?


Thanks
Logged
Pages: 1 2 [3] Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [DONE 1.5.2] Enhanced Ban Mod 1.1 « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.013 seconds with 20 queries.