Page 1 of 1

User name variable

PostPosted: Fri Mar 21, 2008 10:41 am
Author: BobT
I installed a chat on my Integramod site .. i was told i needed the user name variable that my software uses to make the auto login work. When i asked about the user name variable i was told my webmaster would know ... hehehe, since I'm the webmaster and do not know, could help me out and spare me the embarrassment admitting i have no idea what this is or where to find it .. i believe i was told it is what might appear in the cookie.

Re: User name variable

PostPosted: Fri Mar 21, 2008 2:51 pm
Author: Helter
Code: Select all
$template->assign_vars(array(     'USERNAME' => $username,

Code: Select all
     $username = isset($HTTP_POST_VARS['username']) ? phpbb_clean_username($HTTP_POST_VARS['username']) ]) ? $HTTP_POST_VARS['password'] : '';       $sql = "SELECT user_id, username, user_password, user_active, user_level, user_rank, user_actviate_date, user_expire_date, user_regdate, user_login_tries, user_last_login_try, ct_login_count             FROM " . USERS_TABLE . "             WHERE username = '" . str_replace("\'", "''", $username) . "'";

Re: User name variable

PostPosted: Sat Mar 22, 2008 4:22 pm
Author: BobT
so far no joy ... the problem is members with a space in their name cannot get on the chat ... so they gave me a code to use that needed me to input the username value ... i used $username and username ... neither work ... Thanks for taking the time helter ... i will contact them again, it must be something else. I did use username before i asked since it is what the DB uses ... but when that did not work i posted in here ... Thanks again