Quote:
Originally Posted by Morrus
Incidentally, what was the productforums.php change you made? I'd like to re-upload my custom version and restore various bits of functionality, but with the posting-to-database issue fixed. Is it a small change I can apply myself?
|
There's likely a few tweaks around the file as digging this way turns up more than just the issue. Using a file compare (UltraCompare) is the best way to track it...
Speaking of code hacks, let's open up productforums.php and find:
Code:
// make the post as HTML using the right version of wysiwyg
if ($vbulletin->GPC['message'])
{
// handle this properly based on vBulletin version
if (version_compare(@$vbulletin->versionnumber, '4.1.4', '>=')){
require_once(DIR . '/includes/class_wysiwygparser.php');
$html_parser = new vB_WysiwygHtmlParser($vbulletin);
$comments =& $html_parser->parse_wysiwyg_html_to_bbcode($message, 1);
// older forum versions
} else {
require_once(DIR . '/includes/functions_wysiwyg.php');
$comments =& convert_wysiwyg_html_to_bbcode($message, 1);
}
}
if(!$comments AND $vbulletin->GPC['message']){ $comments = $vbulletin->GPC['message'] . "\n\r" . $optmsg; }
else if($vbulletin->GPC['comments']){ $comments = $vbulletin->GPC['comments'] . "\n\r" . $optmsg; }
Replace this with:
Code:
if ($vbulletin->GPC['message'])
{
echo "found on message<br>";
$comments = nl2br();
} else if($vbulletin->GPC['comments']) {
echo "found on comments<br>";
$comments = nl2br();
} else {
echo "found nothing"; die;
}
Post up a review and look to see if anything gets displayed quickly on the screen at the top of the page.
This is not safe content filtering so be sure to revert to your current version when you're done, less someone decide to add a bunch of unfiltered links to a product.