RevCMS - FirstName + Lastname RP login

Results 1 to 5 of 5
  1. #1
    Member Damien Jolly is offline
    MemberRank
    Apr 2014 Join Date
    89Posts

    RevCMS - FirstName + Lastname RP login

    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:
    Spoiler:


    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:
    Spoiler:



    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:
    Spoiler:


    And you should be able to now login with both first name and last name.

    Like and rep! +1


  2. #2
    Account Upgraded | Title Enabled! Sledmore is offline
    MemberRank
    Jun 2009 Join Date
    1,133Posts

    Re: RevCMS - FirstName + Lastname RP login

    Or you could simply utilize Regex and change Revs name checking function and have one input box to determine the name has two strings separated by a hyphen?

    nonetheless, nice release.

  3. #3
    Member Damien Jolly is offline
    MemberRank
    Apr 2014 Join Date
    89Posts

    Re: RevCMS - FirstName + Lastname RP login

    Same function. 2 ways off codding it. I'm hardly a professional and it's my first release :)

  4. #4
    Member Abidas is offline
    MemberRank
    Mar 2014 Join Date
    DenmarkLocation
    51Posts

    Re: RevCMS - FirstName + Lastname RP login

    Great to see new RevCMS tweaks, thank you :)

  5. #5
    Enthusiast 1ptimmaq1 is offline
    MemberRank
    Aug 2013 Join Date
    FinlandLocation
    41Posts

    Re: RevCMS - FirstName + Lastname RP login

    How to do so people log in with their email? not their username? im tryin to make so that there would be many habbos on one account like on habbo.
    Anyone released it or want to help?



Advertisement