Question.
I am running a site which uses vb 3.5.4, and it is also using this script as a login script.
PHP Code:
<?
if ($vbulletin->userinfo['userid']!=0) {
$username=$vbulletin->userinfo['username'];
print("<align='center'><span class='sectionheader'>Welcome back, $username!<br>"); ?>
<?
} else {
?>
</p>
<form action='/forums/login.php' method='post' class="style46" onsubmit='md5hash(vb_login_password,vb_login_md5password)'>
<p align="center" class="inbottom">
<script type='text/javascript' src='/forums/clientscript/vbulletin_md5.js'></script>
<span class="style57">Username:</span><span class="style57">
<input type='text' class='button' name='vb_login_username' id='navbar_username' size='15' accesskey='u' tabindex='1' value='' onfocus='if (this.value == 'username="username"') this.value = '';>
<br />
Password:
<input type='password' class='button' name='vb_login_password' size='15' accesskey='p' tabindex='2' />
<br />
<input type='checkbox' name='cookieuser' value='1' tabindex='3' id='cb_cookieuser_navbar' accesskey='c' />
Remember Me</span><br />
<input name="submit" type='submit' class='button' accesskey='s' tabindex='4' title='Log In' value='Log In' />
<input type='hidden' name='do' value='login' />
<input type='hidden' name='forceredirect' value='1' />
<input type='hidden' name='vb_login_md5password' />
</p>
</form>
<div align="left" class="style46">
<div align="center">
<p><a href="/forums/register.php?"><span class="inbottom">Support ThrillHistory.com & Register Today. It only takes two Minutes! </span></a>
<?
}
?>
Which also uses this.
PHP Code:
<?php
chdir("forums/");
require('global.php');
chdir("../");
?>
Now I have tried many times to implement a few of these enhancments onto my website, however I am greeted with the Vbulletin DB error page. Any help?