
08-26-2001, 04:04 PM
|
|
|
Join Date: Oct 2001
Posts: 382
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally posted by Hoffi
Hi,
i must change in my members.php the following:
find:
-------------------------------------------------------------------------------
$DB_site->query("UPDATE user SET birthday='".addslashes($birthday)."',signature='". addslashes($signature)."',customtitle='$customtitl e',usertitle='".addslashes($customtext)."',email=' ".addslashes(htmlspecialchars($email))."',parentem ail='".addslashes(htmlspecialchars($parentemail)). "',coppauser='$coppauser',homepage='".addslashes(h tmlspecialchars($homepage))."',icq='".addslashes(h tmlspecialchars($icq))."',aim='".addslashes(htmlsp ecialchars($aim))."',yahoo='".addslashes(htmlspeci alchars($yahoo))."',usergroupid='$bbuserinfo[usergroupid]' WHERE userid='$bbuserinfo[userid]'");
and replace with:
-------------------------------------------------------------------------------
$DB_site->query("UPDATE user SET birthday='".addslashes($birthday)."',customtitle=' $customtitle',usertitle='".addslashes($customtext) ."',email='".addslashes(htmlspecialchars($email)). "',parentemail='".addslashes(htmlspecialchars($par entemail))."',coppauser='$coppauser',homepage='".a ddslashes(htmlspecialchars($homepage))."',icq='".a ddslashes(htmlspecialchars($icq))."',aim='".addsla shes(htmlspecialchars($aim))."',yahoo='".addslashe s(htmlspecialchars($yahoo))."',usergroupid='$bbuse rinfo[usergroupid]' WHERE userid='$bbuserinfo[userid]'");
In the old SQL-Statement was the Signature Field in the Database updated with a non-existing Form-Field of the Site. So i removed the Signature-Filed from the SQL-Statement.
Before this, the Signature was deleted when saving the Profile, because the Filed was missing.
|
This didn't work in 2.0.3. I got a parse error.
|