• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Help MODERN aac

secunanet

New Member
Joined
Oct 17, 2009
Messages
3
Reaction score
0
I have a site with modern aac guilds working ... VIP players but have also named "[vip] name" characters to invite to guild I get the following message:
Error:
The Player Name field must contain a valid string.

someone help? : s
 
thats would be some fixes in php or lua...

that if the player got vip then get [Vip] name and remove the vip then invite.

could be some work
 
Find this on system/libraries/form_validation.php:

PHP:
function nickname($str)  
        {  
                $a = explode(' ', $str);  
                $error = 0;  
                foreach($a as $b)  
                        if(!preg_match("/^[a-zA-Z]{3}+(([\'\-][a-zA-Z]{2})?[a-zA-Z]*)*$/", $b))  
                                $error++;  
                                  
                return $error ? FALSE : TRUE;  
        }

Replace it with this.

PHP:
function nickname($str)  
        {  
                $a = explode(' ', $str);  
                $error = 0;  
                foreach($a as $b)  
                        if(!preg_match("/^[a-zA-Z]{3}+((\-[a-zA-Z]{2})?[a-zA-Z]*)*$/", $b))  
                                $error++;  
                                  
                return $error ? FALSE : TRUE;  
        }
 
Find this on system/libraries/form_validation.php:

PHP:
function nickname($str)  
        {  
                $a = explode(' ', $str);  
                $error = 0;  
                foreach($a as $b)  
                        if(!preg_match("/^[a-zA-Z]{3}+(([\'\-][a-zA-Z]{2})?[a-zA-Z]*)*$/", $b))  
                                $error++;  
                                  
                return $error ? FALSE : TRUE;  
        }

Replace it with this.

PHP:
function nickname($str)  
        {  
                $a = explode(' ', $str);  
                $error = 0;  
                foreach($a as $b)  
                        if(!preg_match("/^[a-zA-Z]{3}+((\-[a-zA-Z]{2})?[a-zA-Z]*)*$/", $b))  
                                $error++;  
                                  
                return $error ? FALSE : TRUE;  
        }

I try this aand receive this..
Error:

The Player Name field must contain a valid string.
 
Back
Top