Raised This Month: $ Target: $400
 0% 

Too Late To Ban


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
maguro
Junior Member
Join Date: Jan 2013
Old 01-06-2013 , 15:39   Re: Too Late To Ban
Reply With Quote #11

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
 



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 12:29.


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