
01-15-2005, 07:54 PM
|
|
|
Join Date: Feb 2004
Location: Landen(Belgium)
Posts: 1,335
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by sv1cec
No, this should not happen, because the censored word is replaced by **** in the pm you got. So when you reply, the bad word is not there. However, your post made me find a small problem in that area of the instructions, so please make sure you apply the following edit:
In your private.php file, find:
PHP Code:
$signature = intval($pm['signature']);
$iconid = intval($pm['iconid']);
$disablesmilies = iif($pm['disablesmilies'], 0, 1);
Right after that, add:
[php]
$pm_message=$message;
Then find:
PHP Code:
// insert private message text
$DB_site->query("INSERT INTO " . TABLE_PREFIX . "pmtext\n\t(fromuserid, fromusername, title, message, touserarray, iconid, dateline, showsignature, allowsmilie)\nVALUES\n\t($bbuserinfo[userid], '" . addslashes($bbuserinfo['username']) . "', '$title', '$message', '" . addslashes(serialize($tostring)) . "', $iconid, " . TIMENOW . ", $signature, $disablesmilies)");
Right before that, add:
PHP Code:
$message=$pm_message;
I'll update the instructions, but all who is using the Automatic Private Warnings from PMs, should do this update.
Rgds
|
updated right now and don't forget our coffee sv1cec :up:
|