Gio~Logist
09-02-2005, 11:38 PM
// MOD :: ALLOW HTML IN PROFILEFIELDS
// OLD CODE
// $userfields .= ", $varname = '" . addslashes(htmlspecialchars_uni($$varname)) . "'";
// NEW CODE
$userfields .= ", $varname = '" . addslashes(strip_tags($$varname, $vboptions['allowedhtmltags'])) . "'";
// END OF MOD
I used this code in my functions_user.php in order to allow CERTAIN html. However, everytime my user inputs a quote now ("), it strips it and it dissapears. Any suggestions?
The even weirder part is that it updates fine and shows and stuff in PROFILE... btu when u go to edit your rpofile, it doesn't show. Almost as if you didn't edit anything at all yet the quotes show in profile.
Edit: I took one look at my html and saw the problem....
// OLD CODE
// $userfields .= ", $varname = '" . addslashes(htmlspecialchars_uni($$varname)) . "'";
// NEW CODE
$userfields .= ", $varname = '" . addslashes(strip_tags($$varname, $vboptions['allowedhtmltags'])) . "'";
// END OF MOD
I used this code in my functions_user.php in order to allow CERTAIN html. However, everytime my user inputs a quote now ("), it strips it and it dissapears. Any suggestions?
The even weirder part is that it updates fine and shows and stuff in PROFILE... btu when u go to edit your rpofile, it doesn't show. Almost as if you didn't edit anything at all yet the quotes show in profile.
Edit: I took one look at my html and saw the problem....