View Full Version : How Do I?
Criticize
01-30-2007, 03:24 PM
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.
webmazter
01-30-2007, 03:38 PM
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)
Criticize
01-30-2007, 03:40 PM
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!
webmazter
01-30-2007, 04:33 PM
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.
<!-- 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 -->
Then add the domain from your non vb domain to this setting:
vBulletin Options > General Settings > Post Referrer Whitelist > And enter your domain from which your non-vb page reside.
Criticize
01-30-2007, 05:14 PM
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!
webmazter
01-31-2007, 02:21 AM
you can use plugin on "login_redirect" hook to redirect to where you want.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.