Standard vbulletin login page

Discussion in 'vBulletin Discussions' started by Michael, Sep 29, 2009.

  1. Michael

    Michael Regular Member

    Joined:
    Jan 18, 2004
    Messages:
    166
    Likes Received:
    35
    I am quite sure vbulletin has a page where members can login using that, where on earth is it if it exists? Its similar to when youre a guest and you want to create a new thread but it gives you the login form, I am sure there is one like this just for logging in and not making a post etc

    Anyone point me in the right direction?

    Thanks!
     
  2. Yoshi

    Yoshi Regular Member

    Joined:
    Jun 9, 2005
    Messages:
    219
    Likes Received:
    11
    Location:
    UK
  3. David

    David Regular Member

    Joined:
    May 30, 2003
    Messages:
    1,088
    Likes Received:
    133
    Location:
    Australia
    There isn't one thats just for logging in (not sure why). You'll have to redirect users to either the navbar, or send them to an error page to do it.

    Or use a modificaton like above perhaps?
     
  4. Ak Worm

    Ak Worm Grand Master

    Joined:
    May 22, 2009
    Messages:
    979
    Likes Received:
    20
    First Name:
    Corey
    Why would you just want a login page? For a custom script? Or a non vbulletin page?
     
  5. David

    David Regular Member

    Joined:
    May 30, 2003
    Messages:
    1,088
    Likes Received:
    133
    Location:
    Australia
    Loads of reasons. Its easier for users, you can give useful links or FAQ directly related to login, etc etc.

    Why vBulletin doesn't have it is beyond me
     
  6. OneUpDave

    OneUpDave Guest

    A link to the control panel, I guess. I find it weird that vB doesn't come with one by default.
     
  7. Wayne Luke

    Wayne Luke Regular Member

    Joined:
    Apr 2, 2009
    Messages:
    991
    Likes Received:
    276
    The previous developers felt that having it on every single page in the Navbar precluded the need for a standalone login page.
     
    2 people like this.
  8. crogers76

    crogers76 Newcomer

    Joined:
    Oct 13, 2009
    Messages:
    1
    Likes Received:
    2
    here ya go guys
    i had to do something similar on one of my websites basicly create a login script that authenticates the users with the vbulletin registration details

    well here ya go

    PHP:
    <?php
    // YOUR USERNAME TEXT FIELD MUST BE CALLED username
    // YOUR PASSWORD FIELD MUST BE CALLED password

    // lets get the unique salt from that user so we can encrypt the password to vbulletin methods

    $getuser mysql_query("SELECT user_salt FROM user WHERE username = '".$_REQUEST[username]."'"$maindb);
    $getuser_rst mysql_fetch_array($getuser);

    // Encrypt Password to the Vbulletin Encryption method// 
    $password_hash md5(md5($_REQUEST['password']) . $getuser_rst['salt']);

    $confirmpass mysql_query("SELECT * FROM user WHERE username = '".$_REQUEST[username]."' AND password = '$password_hash'"$maindb);
    $confirmed mysql_num_rows($confirmpass);

    // Final Authentication Check //
    if($confirmed == "1") {
    // Now i need to do some  Success login stuff lets set some sessions or atleast redirect them somewhere in the private section
    echo "Successful Login";



    // End of Sucsessful Login Script  job done!//
    }

    else 
    // Oh darn the login details they gave me dint match anything in my database
    {
    // This is where you put stuff like redirects and session_destroy()l stuff (just to make sure =) ) for a FAILED login
    echo "You login has failed, please retry";

    session_destroy();
    }

    ?>
     
    2 people like this.

Share This Page