PDA

View Full Version : 2 Problems of recent


Dark Shogun
21 Aug 2002, 16:15
This is the error I am getting everytime I try to edit my profile or options in the usercp. Parse error: parse error, unexpected $ in /home/dark/public_html/forum/member.php on line 1643

These are the lines around line 1643 in member.php Line 1643 itself is ?>

if (!$enableemail) {
eval("standarderror(\"".gettemplate("error_emaildisabled")."\");");
exit;
}

$destuserid=verifyid("user",$userid);
$destuserinfo=$DB_site->query_first("SELECT username,email,showemail FROM user WHERE userid='$destuserid'");

if (!$destuserinfo[showemail]) {
eval("standarderror(\"".gettemplate("error_usernoemail")."\");");
exit;
}

$message = trim($message);
if (!$message) {
eval("standarderror(\"".gettemplate("error_nomessage")."\");");
}

eval("\$sendmessage = \"".gettemplate("email_usermessage",1,0)."\";");

mail($destuserinfo[email],$subject,$sendmessage,"From: \"$bbuserinfo[username]\" <$bbuserinfo[email]>");

// parse this next line with eval:
$sendtoname=$destuserinfo[username];
eval("standardredirect(\"".gettemplate("redirect_sentemail")."\",\"usercp.php?s=$session[sessionhash]\");");
}

?>

-------------------------------ANOTHER PROBLEM--------------------------
I also have another problem. The New Tread button is at the top and bottom when you go into the forum. I have put up a quick topic hack and I am not sure if that is the reason or not. The problem is I want to know how I can get that button on the other site of the page like the other one.

Dark Shogun

Dark Shogun
21 Aug 2002, 16:17
CORRECTION: First problem was fixed by putting another } after the first one.

Dark Shogun