I'm going to teach you how to have a first name and last name for user login. (For roleplay hotels)
Should look like this:
Step 1:
First go to app/class.users.php
and find
Code:
final public function login()
Change every:
Code:
($template->form->log_username)
To:
Code:
($template->form->log_firstname)."-".($template->form->log_lastname)
and:
Code:
if($this->userValidation($template->form->log_username, $core->hashed($template->form->log_password)))
To:
Code:
if($this->userValidation($template->form->log_firstname."-".$template->form->log_lastname, $core->hashed($template->form->log_password)))
Image:
Step 2:
Go to index.php (or anywhere your login script is located)
Change:
PHP Code:
<div class="input user"> <input tabindex="3" type="text" class="login-field" name="log_username" id="credentials-email" value="" maxlength="48"> </div>
To:
PHP Code:
<div class="input user"> <input tabindex="3" type="text" class="login-field" name="log_firstname" id="credentials-email" value="" maxlength="48"> </div> <div class="input user"> <input tabindex="3" type="text" class="login-field" name="log_lastname" id="credentials-email" value="" maxlength="48"> </div>
Image:
And you should be able to now login with both first name and last name.
Like and rep! +1