The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]() Hey guys, I have the following code on my sites homepage so that they can log directly into the forum itself. It works fine, except when you enter your username and password, it logs you in, but then redirects to the site homepage again. What in the code do I need to change to make it go to the form after a user logs in? Thanks Here's the code:- Code:
<!-- login form --> <form action="login.php" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, 0)"> <script type="text/javascript" src="clientscript/vbulletin_md5.js"></script> <table cellpadding="0" cellspacing="3" border="0"> <tr> <td class="smallfont">User Name</td> <td><input type="text" class="bginput" style="font-size: 11px" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="User Name" onfocus="if (this.value == 'User Name') this.value = '';" /></td> <td class="smallfont" colspan="2" nowrap="nowrap"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" />Remember Me?</label></td> </tr> <tr> <td class="smallfont">Password</td> <td><input type="password" class="bginput" style="font-size: 11px" name="vb_login_password" size="10" accesskey="p" tabindex="102" /></td> <td><input type="submit" class="button" value="Log in" tabindex="104" title="Enter your username and password in the boxes provided to login, or click the 'register' button to create a profile for yourself." accesskey="s" /></td> </tr> </table> <input type="hidden" name="s" value="" /> <input type="hidden" name="do" value="login" /> <input type="hidden" name="vb_login_md5password" /> <input type="hidden" name="vb_login_md5password_utf" /> </form> <!-- / login form --> Code:
Could someone please help me with this? *bump* Could someone assist please? |
#2
|
||||
|
||||
![]()
someone please.........
|
#3
|
|||
|
|||
![]()
login.php will always redirect back to the page it was called from. I don't think there is a way to go to another page, but i might be wrong.
What is so bad about being returned to the homepage, that would for most people be the expected behaviour. |
#4
|
||||
|
||||
![]()
There's gotta be someway of doing it.
What is the actual line of the code that makes it redirect to the originating page? |
#5
|
|||
|
|||
![]()
You might get away with adding a conditional to login.php that states If (user = logged in) then (meta redirect to wherever).
|
#6
|
||||
|
||||
![]()
Thanks everyone for the support but I've got the problem fixed now.
This thread may as well be closed. |
#7
|
|||
|
|||
![]()
How did you fix it?
|
#8
|
|||
|
|||
![]()
Id love to know too
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|