Quote:
Originally Posted by hypnoticpimp
how did you fix it? can you explain more
|
Of cource

This is what I use now:
PHP Code:
<?php
chdir('forums/');
require_once('./global.php');
if ($vbulletin->userinfo['userid'])
{
include "include/header.php";
echo 'Welcome ' . $vbulletin->userinfo['username'] . ', you have logged in.';
include "include/footer.php";
}
else
{
include "include/header.php";
include "include/loginform.php";
include "include/footer.php";
}
?>
This is the loginform.php (this code is just for testing, so you may want to edit it, but it works):
PHP Code:
<!-- login form -->
<form action="../forums/login.php" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, 0)">
<script type="text/javascript" src="../forums/clientscript/vbulletin_md5.js"></script>
<table cellpadding="0" cellspacing="3" border="0" align="center">
<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 -->
<center><b><a href="../forums/register.php?do=signup">Register</a></b> | <b><a href="../forums/login.php?do=lostpw">Forgotten Your Password?</a></b></center>
Remember to change the url's so that they point to your vBulletin directory.