The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Heres what I am trying to do, I have a site and a forum. I put a login page on the site for the forum. However when I login, I get sent to the forum page and it says login successful, then afterwards I get sent back to same login page on my site. Instead of it being sent to the login page on my site, I want the login page to display Welcome $username, and give them links to update their profile, change password, etc.
I am using the login code here - http://www.vbulletin.com/forum/showt...ng-In&p=720724, later in the thread a user describes a similar problem. |
#2
|
|||
|
|||
![]()
Just to make sure I follow - you want it to go to the forum home page after logging in, just like you had logged in normally?
I'm not sure, but try this: it looks like if you're coming from somewhere "unusual" then it uses $_REQUEST['url'] as the place to redirect, so on the form submission url (which I guess ends in login.php?do=login now), try adding "&url=" and then the url you want it to go to. |
#3
|
|||
|
|||
![]()
Heres an example on my site below.
Code:
http://www.limitedition.org |
#4
|
|||
|
|||
![]()
Well, I'm not doing too well lately - not only did I misundertsand what you wanted but I obviously didn't fully understand the code. But I did try putting this html file on my local machine:
Code:
<html><body> <form action="http://*************/forum/login.php" method="post" onSubmit="md5hash(vb_login_password,vb_login_md5password,vb_login_md5password_utf)"> <p class="content"> <script type="text/javascript" src="http://losttv-forum.com/forum/clientscript/vbulletin_md5.js"></script> Username: <br><input type="text" class="content" name="vb_login_username" id="navbar_username" size="30" accesskey="u" tabindex="1" value="Username" onFocus="if (this.value == 'Username') this.value = '';" /><br> Password: <br><input type="password" class="content" name="vb_login_password" size="30" accesskey="p" tabindex="2" /><br> <input type="checkbox" name="cookieuser" value="1" tabindex="3" id="cb_cookieuser_navbar" accesskey="c" checked="checked" />Remember Me</label><br /> <input type="submit" class="button" value="Login" tabindex="4" title="" accesskey="s" /> <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://*************/forum" /> </form> </body></html> Anyone else? |
#5
|
|||
|
|||
![]()
Heres a copy of that form in its full.
Code:
<form action="forums/login.php" method="post" onSubmit="md5hash(vb_login_password,vb_login_md5password,vb_login_md5password_utf)"> <p class="content"> <script type="text/javascript" src="forums/clientscript/vbulletin_md5.js"></script> Username: <br><input type="text" class="content" name="vb_login_username" id="navbar_username" size="30" accesskey="u" tabindex="1" value="Username" onFocus="if (this.value == 'Username') this.value = '';" /><br> Password: <br><input type="password" class="content" name="vb_login_password" size="30" accesskey="p" tabindex="2" /><br> <input type="checkbox" name="cookieuser" value="1" tabindex="3" id="cb_cookieuser_navbar" accesskey="c" checked="checked" />Remember Me</label><br /> <input type="submit" class="button" value="Login" tabindex="4" title="" accesskey="s" /> <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" /> <br> <a href="http://forums.limitedition.org/login.php?do=lostpw" class="link">Forgot your password?</a><br> Not a registered member? <a href="http://forums.limitedition.org/register.php" class="link">Register Now</a> </form> |
#6
|
|||
|
|||
![]()
Oh, now I've got you - sorry I'm so slow. I guess what threw me is that I assumed your main page is a static HTML page so of course it's not going to change (but probably that's the whole point of your question).
Anyone else? |
#7
|
|||
|
|||
![]()
Nah, I use a lot of PHP, but I just don't know how to make this work with my site.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|