Welcome, Guest. Please Login or Register.
November 28, 2024, 10:39:08 PM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

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 9654 times)
snYpir
Jr. Member
**
Posts: 65


I'm a llama!

Re:[DONE 1.5.1] Enhanced Ban Mod 1.1
« Reply #15 on: January 26, 2003, 06:39:49 AM »
Reply with quote

ok, a working 1.5.1 version is in the first post. let me know if there are any problems.

i actually have my doubts about the default banning function (function banning()) in 1.5.1 - has anyone successfully tested banning without the enhanced ban mod?

it seems that the way that the ban log is written to is wrong. in 1.5.1, the log_banned table is written as follows:

      $registeredUserString2 = ($username != 'Guest' ? ',email' : '');
      $registeredUserString3 - ($username != 'Guest' ? ",'$settings[2]'" : '');
      $request = mysql_query("INSERT INTO {$db_prefix}log_banned (ip $registeredUserString2,logTime) VALUES ('$remote_ip' $registeredUserString3," . time() . ");") or database_error(__FILE__, __LINE__);

it should be:

      $registeredUserString2 = ($username != 'Guest' ? ',email' : '');
      $registeredUserString3 = ($username != 'Guest' ? ",'$settings[2]'" : '');
      $request = mysql_query("INSERT INTO {$db_prefix}log_banned (ip$registeredUserString2,logTime) VALUES ('$remote_ip'$registeredUserString3," . time() . ");") or database_error(__FILE__, __LINE__);

I have made the fix in the 1.5.1 version of the enhanced ban mod.
Logged

Check out:
  • Enhanced Ban
  • Collapsable YaBB
  • UnDelete
  • View All
  • Topic Solved
  • Topic Summary
Tenkoy
Jr. Member
**
Posts: 76


WWW
Re:[DONE 1.5.1] Enhanced Ban Mod 1.1
« Reply #16 on: January 27, 2003, 08:36:43 AM »
Reply with quote

Works in build 38.
Logged
rickc
Jr. Member
**
Posts: 55


My Tsi rules!

WWW
Re:[DONE 1.5.1] Enhanced Ban Mod 1.1
« Reply #17 on: February 08, 2003, 06:47:37 AM »
Reply with quote

snYper quick question where does this mod store the ban.. After I installed it I banned a fake name I made forgetting it bans the IP. I had to uninstall the mod.


Good thing I only banned the fake name for 30 days, but my IP is still kicked...

I looked in the data base, but only saw the IP ban log, I cleared it, deleted the fake user I banned & uninstalled the mod. (though the database) When I reinstalled the mod my IP was still blocked. hehe

can I fix or should I wait 30 days ???

Thanks in advance 4 the help
Btw way I liked the mod a lot, & next time I test it, it will be at work :)
rickC
« Last Edit: February 08, 2003, 06:49:54 AM by rickc » Logged
David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:[DONE 1.5.1] Enhanced Ban Mod 1.1
« Reply #18 on: February 08, 2003, 07:27:50 AM »
Reply with quote

It is in the enhanced ban table in your database.
Logged

rickc
Jr. Member
**
Posts: 55


My Tsi rules!

WWW
Re:[DONE 1.5.1] Enhanced Ban Mod 1.1
« Reply #19 on: February 08, 2003, 08:28:26 AM »
Reply with quote

thanks;)
Logged
Wiziwig
Sr. Member
****
Posts: 407


Programmer and Users Liason and Manager

WWW
Re:[DONE 1.5.1] Enhanced Ban Mod 1.1
« Reply #20 on: February 09, 2003, 04:50:22 PM »
Reply with quote

Suggestions for changes:

1. Do NOT Ban by IP when banning from profile. Banning by IP should be a selectable option in Modsettings. Most people will find that when banning by IP, you run the risk of banning more than your intended target, as IP's are dynamicly assigned in many cases.

2. All the ban options controlled in profile and in Admin ban function should be selectable in modsettings.

3. Ban by e-mail and user name in the profile as you would if you were to ban that person through admin ban feature.

4. After you have banned a person, that person can at first login and see the index. When that person attempts to click on something they either will get a error msg from $txt[1] which they should not be getting,. or they will get NOTHING, it simply knocks them back to the login, or they at rare times will get $txt[430] which they should be getting.

5. The user never gets a notification as to why they got banned. Instead of kicking $txt[430] kick your own $txt with the description on why they are banned and include a IM link to the webmaster.

6. For you to do that, you would have to write the application to detect the IP of the visitor.

7. Import the banlist from the original setup, now that you replaced the admin banlist the original data is not accessable.







Quote from: snYpir on January 13, 2003, 10:11:01 AM
Enhanced Ban Mod 1.1

For YaBB SE 1.5.1
Logged

snYpir
Jr. Member
**
Posts: 65


I'm a llama!

Re:[DONE 1.5.1] Enhanced Ban Mod 1.1
« Reply #21 on: February 10, 2003, 09:25:06 AM »
Reply with quote

Thanks for so many suggestions ;)

Quote1. Do NOT Ban by IP when banning from profile. Banning by IP should be a selectable option in Modsettings. Most people will find that when banning by IP, you run the risk of banning more than your intended target, as IP's are dynamicly assigned in many cases.

Yes, it should be.

Quote2. All the ban options controlled in profile and in Admin ban function should be selectable in modsettings.

Uh-huh.

Quote3. Ban by e-mail and user name in the profile as you would if you were to ban that person through admin ban feature.

I disagree, I wrote the profile feature so that it was a single-click affair. I may add a link to the ban page from the profile page, however.

Quote4. After you have banned a person, that person can at first login and see the index. When that person attempts to click on something they either will get a error msg from $txt[1] which they should not be getting,. or they will get NOTHING, it simply knocks them back to the login, or they at rare times will get $txt[430] which they should be getting.

At the moment the banning is done after user settings are loaded, in the same way as the default ban system does. This is the way it has to be - only IP banning can be done before the settings load. I have not experimented with the results of the banning - this is indeed something that should be done, because the resultant error msg should be the same, every time.

Quote5. The user never gets a notification as to why they got banned. Instead of kicking $txt[430] kick your own $txt with the description on why they are banned and include a IM link to the webmaster.

That would be nice, yeah.

Quote6. For you to do that, you would have to write the application to detect the IP of the visitor.

No, this could be done anywhere. The enhanced_ban() function would be the place to do it, and obviously it would simply be included in the output with the 'you have been banned' msg.

Quote7. Import the banlist from the original setup, now that you replaced the admin banlist the original data is not accessable.

The installer (ie the db mod) will copy everything from the old ban table into the new ban table. Hence there is no requirement to access the old table.

Ok, a ton of good suggestions. Feel free to implement them if you get the time - i don't think i will be doing any more YaBB mods for at least a couple of weeks. When i get back into it, i will look at making the suggested changes - and yeah, all of them are required changes, because banning people is a very serious business ;D
Logged

Check out:
  • Enhanced Ban
  • Collapsable YaBB
  • UnDelete
  • View All
  • Topic Solved
  • Topic Summary
Wiziwig
Sr. Member
****
Posts: 407


Programmer and Users Liason and Manager

WWW
Re:[DONE 1.5.1] Enhanced Ban Mod 1.1
« Reply #22 on: February 13, 2003, 12:04:58 AM »
Reply with quote

Yep it had a problem,  your fix took care of it. I removed your mod for now until you can address those changes. Had you reported this bug through bugtraq?

Quote from: snYpir on January 26, 2003, 06:39:49 AM

i actually have my doubts about the default banning function (function banning()) in 1.5.1 - has anyone successfully tested banning without the enhanced ban mod?
Logged

snYpir
Jr. Member
**
Posts: 65


I'm a llama!

Re:[DONE 1.5.1] Enhanced Ban Mod 1.1
« Reply #23 on: February 13, 2003, 06:52:55 PM »
Reply with quote

Quote from: Wiziwig on February 13, 2003, 12:04:58 AM
Yep it had a problem,  your fix took care of it. I removed your mod for now until you can address those changes.

You will be waiting awhile, my priority is not YaBB these days. If anyone else wants to make changes, feel free.

QuoteHad you reported this bug through bugtraq?

No. :-[
Logged

Check out:
  • Enhanced Ban
  • Collapsable YaBB
  • UnDelete
  • View All
  • Topic Solved
  • Topic Summary
GWP
Sr. Member
****
Posts: 252


A total PHP MySQL Novice :) - but getting better!

Re:[DONE 1.5.1] Enhanced Ban Mod 1.1
« Reply #24 on: February 20, 2003, 09:58:16 PM »
Reply with quote

This is a really useful mod for my board.
I get 2 errors, both times the editing part of the mod has nothing to do? (Steps 3 & 7)
has anyone got this to work?
Logged

YabbSE 1.5.1rc Mods:AdvIm, Member Map, Password Prompt, Report to mod, Smilies SE 2.0, Bio, collapsable_yabb, Ignore user, Name, allowed user, search member, enchanced ban, posts per day, Mute User, Memberlist Plus,Who,ExactPostLink. Remove_Clicklog,mc_BoldOwnThreads.QuickReply, UserEnableDisableCensor, RefererMod, lastlogin_profile,PostBasedImRestrict, ExactPostLink, UserBrowsing,
snYpir
Jr. Member
**
Posts: 65


I'm a llama!

Re:[DONE 1.5.1] Enhanced Ban Mod 1.1
« Reply #25 on: February 23, 2003, 04:08:07 AM »
Reply with quote

Quote from: GWP on February 20, 2003, 09:58:16 PM
This is a really useful mod for my board.
I get 2 errors, both times the editing part of the mod has nothing to do? (Steps 3 & 7)
has anyone got this to work?

Yes, of course other people have got it working.

What version of yabb are you running? What other mods do you have? Errors during a boardmod install are very easy to fix - please provide some more information.
Logged

Check out:
  • Enhanced Ban
  • Collapsable YaBB
  • UnDelete
  • View All
  • Topic Solved
  • Topic Summary
GWP
Sr. Member
****
Posts: 252


A total PHP MySQL Novice :) - but getting better!

Re:[DONE 1.5.1] Enhanced Ban Mod 1.1
« Reply #26 on: February 23, 2003, 09:53:47 AM »
Reply with quote

step 3 searches admin.php for:
Quote<a href="' . $cgi . ';action=ipban">' . $txt[206] . '</a><br />
to replace it with:
Quote<a href="' . $cgi . ';action=enhancedban">' . $txt[206] . '</a><br />
thats not hard to chnage, but i cannot find any ref to it in the admin.php at all. even searching for "[206]" brings no results.

step 7 searches profile.php for:
Quote<td colspan="2">' . $sig .'</td>
Boardmod cannot find it, I can using my text editor, (maybe some extra spaces)

So really, its step 3 which is the problem, as I have no idea where to insert this text and wonder why my admin.php doesn't have it there in the first place?

My installed mods are in my sig.
Thanks
Logged

YabbSE 1.5.1rc Mods:AdvIm, Member Map, Password Prompt, Report to mod, Smilies SE 2.0, Bio, collapsable_yabb, Ignore user, Name, allowed user, search member, enchanced ban, posts per day, Mute User, Memberlist Plus,Who,ExactPostLink. Remove_Clicklog,mc_BoldOwnThreads.QuickReply, UserEnableDisableCensor, RefererMod, lastlogin_profile,PostBasedImRestrict, ExactPostLink, UserBrowsing,
GWP
Sr. Member
****
Posts: 252


A total PHP MySQL Novice :) - but getting better!

Re:[DONE 1.5.1] Enhanced Ban Mod 1.1
« Reply #27 on: February 23, 2003, 09:26:27 PM »
Reply with quote

managed to get it installed.
just a few changes, probably due to other mods.

Jusrt one question, becuase of previous posters remarks about banning yourself, I want to test it.
Can I ban a member for "0.5" days??

I tried it but nothing happened.
Logged

YabbSE 1.5.1rc Mods:AdvIm, Member Map, Password Prompt, Report to mod, Smilies SE 2.0, Bio, collapsable_yabb, Ignore user, Name, allowed user, search member, enchanced ban, posts per day, Mute User, Memberlist Plus,Who,ExactPostLink. Remove_Clicklog,mc_BoldOwnThreads.QuickReply, UserEnableDisableCensor, RefererMod, lastlogin_profile,PostBasedImRestrict, ExactPostLink, UserBrowsing,
snYpir
Jr. Member
**
Posts: 65


I'm a llama!

Re:[done 1.5.2] Enhanced Ban Mod 1.1
« Reply #28 on: May 03, 2003, 06:33:20 AM »
Reply with quote

updated for 1.5.2 - see first post.

GWP - what is your situation? i've been out of the loop for a long while ;)
Logged

Check out:
  • Enhanced Ban
  • Collapsable YaBB
  • UnDelete
  • View All
  • Topic Solved
  • Topic Summary
Daniel D.
Mod Team
YaBB God
*****
Posts: 2935


Re:[done 1.5.2] Enhanced Ban Mod 1.1
« Reply #29 on: May 13, 2003, 07:42:02 PM »
Reply with quote

If I ban a member, logout and try to login as another member, I'm banned forever...
« Last Edit: May 13, 2003, 07:42:47 PM by Daniel D. » 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.026 seconds with 20 queries.