The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How Do I?
How can I make it so that on a NON VB PAGE i can have a login on a non vB PAGE and make them JUST login to the forums from the non vB page.
After they login i want them to just be redirected to the forums. |
#2
|
|||
|
|||
Create a form on non vb page.
Point the action parameter to login script. Make sure fieldname on the form elements matched name used by vb. Set whitelist on vb options (this is to allow post data to be made from outside forum URL) |
#3
|
|||
|
|||
can you please send me the code, what you just said to me confused me very badly. i am not going to lie, i am terrible when it comes to php but if its html / css / js i am very good.
pelase help! |
#4
|
|||
|
|||
Actually I'm not mentioning anything PHP, except pointing the form to the login.php file.
It's all HTML and add lines to vb Post Referrer Whitelist option. Put this code on your HTML page. Code:
<!-- login form --> <form action="<POINT TO YOUR VB DIR>login.php?do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, 0)"> <script type="text/javascript" src="<POINT TO YOUR VB DIR>clientscript/vbulletin_md5.js?v=364"></script> <table cellpadding="0" cellspacing="3" border="0"> <tr> <td class="smallfont"><label for="navbar_username">User Name</label></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"><label for="navbar_password">Password</label></td> <td><input type="password" class="bginput" style="font-size: 11px" name="vb_login_password" id="navbar_password" size="10" 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 --> vBulletin Options > General Settings > Post Referrer Whitelist > And enter your domain from which your non-vb page reside. |
#5
|
|||
|
|||
Great, I got the login to work, thanks for your help i greatly appreciate it. Although i do have one more question. The login works, but now I want them to be directed to a specific link (the forums) after they login. please help!
thank you so much! |
#6
|
|||
|
|||
you can use plugin on "login_redirect" hook to redirect to where you want.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|