Standard vbulletin login page

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

  1. Michael

    Michael Regular Member

    166
    35
    104
    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

    219
    11
    164
  3. David

    David Regular Member

    1,088
    133
    518
    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

    979
    20
    0
    Why would you just want a login page? For a custom script? Or a non vbulletin page?
     
  5. David

    David Regular Member

    1,088
    133
    518
    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

    991
    276
    202
    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

    1
    2
    35
    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