Raised This Month: $12 Target: $400
 3% 

Too Late To Ban


Post New Thread Reply   
 
Thread Tools Display Modes
Groger
Veteran Member
Join Date: Oct 2009
Location: Belgium
Old 03-09-2011 , 12:03   Re: Too Late To Ban
Reply With Quote #51

Quote:
Originally Posted by Moby812 View Post
Will be replaced "no nickname present" ?
Open /pages/page.banlist.php

Find (line 385):
PHP Code:
$data['ban_date'] = SBDate($dateformat,$res->fields['ban_created']); 
Before add
PHP Code:
if('' == stripslashes($res->fields['player_name']) && $nameschecked 3) {
                
$new_name GetCommunityName($res->fields['authid']);
                if(
'' == $new_name) {
                        
$new_name 'Name not available';
                } else {
                        
$new_name addslashes($new_name);
                }
                
$GLOBALS['db']->Execute("UPDATE ".DB_PREFIX."_bans SET
                name='" 
$new_name "'
                WHERE bid='" 
$res->fields['ban_id'] . "'
                LIMIT 1"
);
                if(!
$nameschecked) {
                        
$nameschecked 0;
                } else {
                        
$nameschecked++;
                }
                
$data['player'] =stripslashes($new_name);
        } else {
        
$data['player'] = stripslashes($res->fields['player_name']);
        } 
Find (line 386) and remove it:
PHP Code:
$data['player'] = stripslashes($res->fields['player_name']); 
Credits go to Peacemaker
http://forums.interwavestudios.com/t...h__1#entry2510
Groger is offline
Moby812
BANNED
Join Date: Jul 2009
Old 03-20-2011 , 05:07   Re: Too Late To Ban
Reply With Quote #52

thank you
Moby812 is offline
Heartless 1.0
Member
Join Date: Aug 2010
Old 03-20-2011 , 11:03   Re: Too Late To Ban
Reply With Quote #53

Great idea. Good job.
Heartless 1.0 is offline
Moby812
BANNED
Join Date: Jul 2009
Old 03-29-2011 , 01:58   Re: Too Late To Ban
Reply With Quote #54

Groger, Can be done under the UTF-8?
for Cyrillic

Last edited by Moby812; 03-29-2011 at 02:13.
Moby812 is offline
Groger
Veteran Member
Join Date: Oct 2009
Location: Belgium
Old 03-29-2011 , 02:34   Re: Too Late To Ban
Reply With Quote #55

I have no clue how to do this, create a topic about the question on THIS forum, and you will ge answer ;)

EDIT: Do you have the latest sb? cause it should support utf-8

Last edited by Groger; 03-29-2011 at 02:37.
Groger is offline
MAUGHOLD
Veteran Member
Join Date: Nov 2004
Location: CA USA
Old 06-11-2011 , 20:51   Re: Too Late To Ban
Reply With Quote #56

Just like "Ban the disconnected" for gold source games. Excellent job.
__________________
{FJ}Justice STEAM_0:0:633975 If anyone needs any help with their server, Just add me to steam friends and I'll help you out.
MAUGHOLD is offline
inqoqnito
New Member
Join Date: May 2012
Old 05-08-2012 , 05:12   Re: Too Late To Ban
Reply With Quote #57

Please edit plugin,and add translation functions. English,French.. plz!
inqoqnito is offline
inqoqnito
New Member
Join Date: May 2012
Old 05-08-2012 , 12:20   Re: Too Late To Ban
Reply With Quote #58

Error from console:
exec sourcemod/too_late_to_ban.cfg: file size large than 1 MB!

Help please!
inqoqnito is offline
maguro
Junior Member
Join Date: Jan 2013
Old 01-06-2013 , 15:39   Re: Too Late To Ban
Reply With Quote #59

Quote:
Originally Posted by Groger View Post
Open /pages/page.banlist.php

Find (line 385):
PHP Code:
$data['ban_date'] = SBDate($dateformat,$res->fields['ban_created']); 
Before add
PHP Code:
if('' == stripslashes($res->fields['player_name']) && $nameschecked 3) {
                
$new_name GetCommunityName($res->fields['authid']);
                if(
'' == $new_name) {
                        
$new_name 'Name not available';
                } else {
                        
$new_name addslashes($new_name);
                }
                
$GLOBALS['db']->Execute("UPDATE ".DB_PREFIX."_bans SET
                name='" 
$new_name "'
                WHERE bid='" 
$res->fields['ban_id'] . "'
                LIMIT 1"
);
                if(!
$nameschecked) {
                        
$nameschecked 0;
                } else {
                        
$nameschecked++;
                }
                
$data['player'] =stripslashes($new_name);
        } else {
        
$data['player'] = stripslashes($res->fields['player_name']);
        } 
Find (line 386) and remove it:
PHP Code:
$data['player'] = stripslashes($res->fields['player_name']); 
Credits go to Peacemaker
http://forums.interwavestudios.com/t...h__1#entry2510
We did this in our server, and the same problem occurs - "Name not available" most of the times when we use Too Late To Ban...
maguro is offline
maguro
Junior Member
Join Date: Jan 2013
Old 01-06-2013 , 15:40   Re: Too Late To Ban
Reply With Quote #60

Quote:
Originally Posted by Salakis. View Post
Exposed limitation in 8 characters. I decided this problem by the increase of values some "define" in source:
original
Code:
#define KEY_STRING_SIZE 32
#define BAN_REASON_SIZE 32
#define ARG_SIZE 16
edited
Code:
#define KEY_STRING_SIZE 64
#define BAN_REASON_SIZE 64
#define ARG_SIZE 64
works fine!
I did this, compiled again, replaced the plugin and the same problem occurs... I can only use 15 characters reasons for ban... Otherwise in SourceBans only show the first 15 characters
maguro is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:06.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode