Ща вышел и обратно вошел, вроде все ок, может я че-то намудрил в блоке User info...
Код HTML:
$content .= "<form action=\"forum/login.php\" method=\"post\" onsubmit=\"md5hash(vb_login_password,vb_login_md5password,vb_ login_md5password_utf)\">";
if (is_user($user))
{ $content .= "<br><img src=\"images/blocks/group-4.gif\" height=\"14\" width=\"17\"> "._BWEL.", <b>$uname</b>.<br>\n<hr>\n";
$row3 = $db->sql_fetchrow($db->sql_query("SELECT userid FROM vb3_user WHERE username='$uname'"));
$uid = intval($row3[userid]);
$newpms = $db->sql_numrows($db->sql_query("SELECT * FROM vb3_pm WHERE userid='$uid' AND messageread='0'"));
$oldpms = $db->sql_numrows($db->sql_query("SELECT * FROM vb3_pm WHERE userid='$uid' AND messageread='1'"));
$content .= "<img src=\"images/blocks/email-y.gif\" height=\"10\" width=\"14\"> <a href=\"modules.php?name=Private_Messages\"><b>"._BPM."</b></a><br>\n";
$content .= "<img src=\"images/blocks/email-r.gif\" height=\"10\" width=\"14\"> "._BUNREAD.": <b>$newpms</b><br>\n";
$content .= "<img src=\"images/blocks/email-g.gif\" height=\"10\" width=\"14\"> "._BREAD.": <b>$oldpms</b><br>\n<hr>\n";
} else {
$content .= "<img src=\"images/blocks/group-4.gif\" height=\"14\" width=\"17\"> "._BWEL.", <b>$anonymous</b>\n<hr>";
$content .= ""._NICKNAME." <input type=\"text\" name=\"vb_login_username\" id=\"navbar_username\" size=\"15\" maxlength=\"25\" accesskey=\"u\" tabindex=\"1\"><br>";
$content .= ""._PASSWORD." <input type=\"password\" name=\"vb_login_password\" size=\"15\" maxlength=\"20\" accesskey=\"p\" tabindex=\"2\"><br>";
$content .= "<input type=\"hidden\" name=\"random_num\" value=\"$random_num\">";
$content .= "<input type=\"hidden\" name=\"gfx_check\" value=\"$code\">";
$content .= "<input type=\"hidden\" name=\"op\" value=\"login\">";
$content .= "<input type=\"hidden\" name=\"s\" value=\"\">\n"
."<input type=\"hidden\" name=\"do\" value=\"login\">\n"
."<input type=\"hidden\" name=\"forceredirect\" value=\"1\">\n"
."<input type=\"hidden\" name=\"vb_login_md5password\">\n"
."<input type=\"hidden\" name=\"vb_login_md5password_utf\">\n"
."<input type=\"submit\" value=\""._LOGIN."\" accesskey=\"s\">\n
(<a href=\"modules.php?name=Your_Account&op=new_user\">"._BREG."</a>)<hr>"; }