TheMilkCarton |
07-28-2007 05:02 PM |
I'm sorry.. I had other code elsewhere in the plugin. :o
Code:
if($vbulletin->options['pm_preview'] AND $vbulletin->userinfo['pmpreview'])
{
$prvmessage = htmlspecialchars_uni($pm['message']);
if($vbulletin->options['pm_preview_strip_quotes'])
{
$prvmessage = strip_quotes($prvmessage);
}
$prvmessage = strip_bbcode($prvmessage);
if(strlen($prvmessage) > $vbulletin->options['pm_preview'] AND $vbulletin->options['pm_preview'] != -1)
{
$prvmessage = fetch_trimmed_title($prvmessage, $vbulletin->options['pm_preview']);
}
$prvmessage = fetch_censored_text($prvmessage);
eval('$pmpreview = "' . fetch_template('pm_preview') . '";');
}
Copy that above the same location I said in my first post.
I updated my original post to prevent any further confusion.
I apologize.. I was in the middle of simplifying the code, as I don't want my users having the option to turn the preview on/off. So I had disabled all the PM Preview plugins but two (cache_templates and private_messagelist_messagebit) and was using different code. :)
|