The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hello everyone! I've been using vb for quite a while but am only now attempting to integrate the log in screen on an outside .php home page. In other words, I want people to have the ability to log in to my site (www.trancesessions.com) and be able to see every page (including the forum) as a member.
I was able to set up the username/pw log in screen on the home page (www.trancesessions.com). But I have two problems. One, once the member logs in successfully, it takes that member directly to the forum (which is ok and I know how to change where it routes them to). What I would like to do is make it so that once the person logs in, they are taken back to the same page but instead of seeing the username/pw boxes, they'll see a welcome 'username' area that is similar to the welcome message you get when you log in directly to the forum. Does anyone have any idea how to do this or what code I can use to achieve this? I'm sorry if I did a bad job of explaining it and will elaborate to the best of my ability if you have any questions. Thank you for any help!!! PS. This is currently the code I have on the home page for the log in screen: Code:
<!-- login form --> <form action="forums/login.php" method="post" onsubmit="md5hash(vb_login_password,vb_login_md5password,vb_login_md5password_utf)"> <div align="left"> <script type="text/javascript" src="forums/clientscript/vbulletin_md5.js"></script> <font face="Verdana, Arial, Helvetica, sans-serif" size="-2"> Username: <br> <input type="text" class="button" name="vb_login_username" id="navbar_username" size="20" accesskey="u" tabindex="1" onFocus="if (this.value == 'Username') this.value = '';" /> <br /> Password: </font> <br> <input type="password" class="button" name="vb_login_password" size="20" accesskey="p" tabindex="2" /> <input type="submit" class="button" value="Login" tabindex="4" title="" accesskey="s"/> </div> <div align="left"> <input type="checkbox" name="cookieuser" value="1" tabindex="3" id="cb_cookieuser_navbar" accesskey="c" checked="checked" /> <font face="Verdana, Arial, Helvetica, sans-serif" size="-2"> Remember Me </font> </label> </div> <br> <div align="left"> <font face="Verdana, Arial, Helvetica, sans-serif" size="-2"> Not a member? <a href="http://www.trancesessions.com/forums/register.php">Register Here</a> </font> </div> <input type="hidden" name="s" value="" /> <input type="hidden" name="do" value="login" /> <input type="hidden" name="forceredirect" value="1" /> <input type="hidden" name="vb_login_md5password" /> <input type="hidden" name="vb_login_md5password_utf" /> <input type="hidden" name="url" value="http://www.trancesessions.com/forums" /> </div> </form> <!-- / login form --> |
#2
|
||||
|
||||
![]()
You need to include vBulletin's global.php - then you can use its variables to check if someone is logged in, etc.
|
#3
|
|||
|
|||
![]() Quote:
any suggestions? ty for your earlier reply |
#4
|
|||
|
|||
![]()
You need to put this code in your PHP file after you've set the PHP environment.
PHP Code:
|
#5
|
|||
|
|||
![]()
aww man....now i'm getting really confused lol haha...i'm looking at the code on my index.php page (non-vb page) and it's really throwing me off....
ok.... does anyone know what code i would need to put exactly on the home page? and then again what code would i need to put in the global.php file? i'm so confused....do i even need to do all that? thanks --------------- Added [DATE]1222225967[/DATE] at [TIME]1222225967[/TIME] --------------- Quote:
does the code you gave me need to be inserted on the (non vb page) i have or does it need to be inserted in the vbulletin 'global.php' file? thank you jacob for putting up with this noob! lol |
#6
|
|||
|
|||
![]() Quote:
Quote:
Here is how a standard vBulletin-powered page should look (this one is called test.php, taken from the article posted above): PHP Code:
|
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|