|
|
| Author |
Message |
monacelli
New User

Joined: 05 Dec 2004
Posts: 15
|
Posted: April 6th 2005, 6:00 pm Post subject: [Dev] Ban List (updated) |
|
|
Here's an updated version of ThE DrAgOn's Ban List. Since so many people (including myself) had a lot of trouble getting it to work, I thought I'd update it a bit.
I fixed some spelling errors, got rid of the hard-coded language, implemented some fixes posted here in the forums, added sessions, fixed ban reason, and fixed pagination.
Anyway, check it out.
Download _________________ monacelli -- Dover Mafia | Forums |
|
| Back to top |
|
 |
TNM
Well Known User
Joined: 10 Apr 2005
Posts: 113
|
Posted: May 8th 2005, 2:48 am Post subject: |
|
|
thanks i couldent get that other one to work  |
|
| Back to top |
|
 |
ViPeR5000
Not So New User
Joined: 14 Nov 2003
Posts: 75
Location: Portugal
|
|
| Back to top |
|
 |
KidneyBoy
Not So New User
Joined: 28 Sep 2003
Posts: 62
|
Posted: May 30th 2005, 12:16 pm Post subject: |
|
|
Could somebody please re-upload this link? My Banlist works fine except when it comes to entrering in a reason. No matter what I put in the "reason" box, the following message is displayed: "No Reason Was Given." I want it to reflect the REASON the ban is there. Supposidly this version worked.
Thanks!
KidneyBoy |
|
| Back to top |
|
 |
bonelifer
Experienced User
Joined: 21 Oct 2004
Posts: 301
|
Posted: September 8th 2005, 11:42 am Post subject: |
|
|
| Could someone make an addon to show the reason in the members profile as well? Perferably displayed below "Interests:" with the text "Reason for being banned:". It should only appear when the user has been banned otherwise it the field should not show up on their profile. |
|
| Back to top |
|
 |
TwiSteD
Experienced User

Joined: 18 May 2004
Posts: 492
Location: North Carolina
|
Posted: September 8th 2005, 3:46 pm Post subject: |
|
|
| if monacelli doesn't mind, i wouldnt mind adding those addons for y'all.... |
|
| Back to top |
|
 |
Ricky_Racer
Dedicated User

Joined: 19 Jul 2003
Posts: 1398
Location: Middle of Nowhere, USA
|
Posted: September 10th 2005, 12:02 pm Post subject: |
|
|
KidneyBoy, the download link worked for me, but it sure didn't look like the issue of the ban reason wasn't fixed anway I made mine work and posted what I did here Ah censoring links Ok I can copy and paste
Well, I fixed mine, probably not the correct way, but it is working now.
I found the solution in another hack, Advanced Banned User Management v.1.1.2 by Wooly Spud.
Here is what I did to mine
| Code:
|
#
#------[OPEN:]------------------------------------------
#
./admin/admin_user_ban.php
#
#------[FIND:]------------------------------------------
#
$sql = "SELECT username FROM " . USERS_TABLE . " WHERE user_id = " . $user_list[$i];
if (!($result = $db->sql_query($sql)))
{
message_die(GENERAL_ERROR, 'Unable to get username', '', __LINE__, __FILE__, $sql);
}
$row = $db->sql_fetchrow($result);
$user_name = trim($row['username']); // for mssql compatibility
$sql = "INSERT INTO " . BANLIST_TABLE . " (ban_userid, user_name, reason, banned_by, date, time) VALUES (" . $user_list[$i] . ", '" . addslashes($user_name) . "', '" . addslashes($reason) . "', '" . addslashes($userdata['username']) . "', '". date("m.d.y") . "', '".date("H:i")."')";
#
#------[REPLACE WITH:]----------------------------------
#
if(isset($HTTP_POST_VARS['reason']) && $HTTP_POST_VARS['reason'] != "")
{
$add_reason = "'".$HTTP_POST_VARS['reason']."'";
}
else
{
$add_reason = "NULL";
}
$sql = "SELECT username FROM " . USERS_TABLE . " WHERE user_id = " . $user_list[$i];
if (!($result = $db->sql_query($sql)))
{
message_die(GENERAL_ERROR, 'Unable to get username', '', __LINE__, __FILE__, $sql);
}
$row = $db->sql_fetchrow($result);
$user_name = trim($row['username']); // for mssql compatibility
$sql = "INSERT INTO " . BANLIST_TABLE . " (ban_userid, user_name, reason, banned_by, date, time) VALUES (" . $user_list[$i] . ", '" . addslashes($user_name) . "', " . $add_reason . ", '" . addslashes($userdata['username']) . "', '". date("m.d.y") . "', '".date("H:i")."')";
|
|
|
| Back to top |
|
 |
KidneyBoy
Not So New User
Joined: 28 Sep 2003
Posts: 62
|
Posted: September 10th 2005, 12:48 pm Post subject: |
|
|
At the time, the link wasn't working. monacelli emailed me the code, and it worked great on my 2 boards *shrug*
Take it easy
KidneyBoy |
|
| Back to top |
|
 |
monacelli
New User

Joined: 05 Dec 2004
Posts: 15
|
Posted: September 17th 2005, 4:50 pm Post subject: |
|
|
| TwiSteD wrote:
|
|
if monacelli doesn't mind, i wouldnt mind adding those addons for y'all....
|
By all means, do whatever you want to this mod. ThE DrAgOn hasn't been heard from in years so I'm sure he wouldn't mind either.
I'd love to see it updated, fully working, new features, etc. _________________ monacelli -- Dover Mafia | Forums |
|
| Back to top |
|
 |
252playa
Not So New User
Joined: 30 Jun 2005
Posts: 37
|
Posted: October 19th 2005, 10:46 pm Post subject: |
|
|
| I want to be able to ban free email accounts..is this possible? |
|
| Back to top |
|
 |
|