The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Login form redirection
Hi,
I dislike the little login form on the forum home page. yes it can be handy, but for my site it's just overkill. So, I've done a little modifying and created an html login page which has the same functionality but allows me to you a log in link on other pages. it works just perfectly however, there's one slight problem ? page redirection. After the user clicks "login" they are taken tot he redirection page and told to hang on while they are logged in. Thenthey are redirected back to the log in form. What I would like to do is redirect them to the home page after log in. Can anyone assist me in changing the redirection? Here's the form code as it stands. HTML Code:
<form action="login.php" method="post" onsubmit="md5hash(vb_login_password,vb_login_md5password)"> <script type="text/javascript" src="clientscript/vbulletin_md5.js"></script> <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0"> <tr><td><br /><br /><br /></td></tr> <tr> <td align="center" class="smallfont" valign="middle">Username</td></tr> <tr><td valign="middle" align="center"><input type="text" class="button" name="vb_login_username" id="navbar_username" size="15" accesskey="u" tabindex="1" value="" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" /></td> </tr> <tr><td><br /></td></tr> <tr> <td class="smallfont" valign="middle" align="center">Password</td></tr> <tr><td valign="middle" align="center"><input type="password" class="button" name="vb_login_password" size="15" accesskey="p" tabindex="2" /></td> </tr> <tr><td><br /></td></tr> <tr> <td class="smallfont" <label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="3" id="cb_cookieuser_navbar" accesskey="c" checked="checked" />Remember Me</label></td></tr><tr> <td align="center"><input type="submit" class="button" value=" Log In " tabindex="4" title="Enter username to login" accesskey="s" /></td> </tr> <tr><td><br /><br /><br /></td></tr> </table> <input type="hidden" name="s" value="$session[sessionhash]" /> <input type="hidden" name="do" value="login" /> <input type="hidden" name="forceredirect" value="1" /> <input type="hidden" name="vb_login_md5password" /> </form> <!-- / login form --> </td> Thanks. |
#2
|
|||
|
|||
nevermind. I got it worked out.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|