[revcms][double name]

Results 1 to 1 of 1
  1. #1
    Member xJokerz is offline
    MemberRank
    Sep 2012 Join Date
    51Posts

    [revcms][double name]

    Hello, id like to ask for help on my recent thing i have been working on... I have made revcms compatible with another database/emu (RealityRP), and i was wondering if anyone knew how to do a second name? Such as First-Second, such as on reality cms... but in revcms? now i have configured the register to do a second name and it inserts into the database fine! but I'm stuck in 'UserValidation' the login... SELECT * from 'table' WHERE username = , basicly that query and i can't login when doing double names in database/register page? i cant even login with single names now... witcvh is weird? does anyone know how to config the Login to work with 2 names?

    I know what your thinking what i meen is i have 1 form for username... and 1 for password and i want to know how i can just type in usernamd field First_Name-Second_Name such as... x-Joker

    Note : I think it is something to do with the invalid username function? preg_match in php? like not allowing symbols such as '-'

    any ideas please post all the help you can give below, will help alot thanks!

    heres some of my code out of class.users.php that i think is something to do with it?

    Code:
    if(strlen($username) <= 25 && ctype_alnum($username))
    and i think this is something to do it aswell

    Code:
    final public function userValidation($username, $password)
    	{ 		
    		global $engine;  
    		if($engine->num_rows("SELECT * FROM characters WHERE username = '" . $username . "' AND password = '" . $password . "' LIMIT 1") > 0)
    		{
    			return true;
    		} 	
    		 
    		return false;
    	}




Advertisement