voteforbird
10-29-2006, 10:00 PM
vBadvanced (http://www.vbadvanced.com/) has released CMPS (http://www.vbadvanced.com/products.php?do=productinfo&p=4) 2.2.1 with a substandard fix to the News module bug that has plagued many vBulletin forums for months.
Volconvo.com (http://www.volconvo.com/) and developer Sillysoft (http://www.volconvo.com/cmps.php?page=newsmodulefix#sillysoft) are offering a free and better fix.
BACKGROUND
In version 2.2.0, the problem occurred when when the maximum characters variable was set at such a number that it precluded the display of closing BBCode tags. (thumb: news_verybad.png)
Version 2.2.1 "resolved" the issue by ending quoted material prematurely, effectively ignoring the actual maximum character value. (thumb: news_bad.png)
Volconvo.com (http://www.volconvo.com/) and developer Sillysoft (http://www.volconvo.com/cmps.php?page=newsmodulefix#sillysoft) have partnered to offer the following better fix for vBadvanced CMPS that respects your personal settings. (thumb: news_good.png)
INSTALLATION
Find this line in [forumdirectory]/modules/news.php: $news['message'] = substr($news['message'], 0, strrpos(substr($news['message'], 0, $mod_options['portal_news_maxchars']), ' ')); Replace with the following code:// START BUG FIX
// Provided by Volconvo.com and Sillysoft
// http://www.volconvo.com/cmps.php?page=newsmodulefix
// Original code:
// $news['message'] = substr($news['message'], 0, strrpos(substr($news['message'], 0, $mod_options['portal_news_maxchars']), ' '));
$rawdata = $news['pagetext'];
$newspart1 = substr($rawdata,0,$mod_options['portal_news_maxchars']);
$newsposition = strrpos($newspart1,' ');
$newspart1 = substr($newspart1,0,$newsposition);
$rawdata = $rawdata .'.';
$newspart2 = substr($rawdata,$newsposition,-1);
preg_match_all('#(\[(.*?)\])?.*?(\[\/(.*?)\])?#',$newspart2,$newspart2tags);
$numtags = count($newspart2tags[0]);
$tags = '';
for($i = 0; $i < $numtags; $i++)
{
$tags .= $newspart2tags[1][$i] . $newspart2tags[3][$i];
}
$shownews = $newspart1 .'...';
$news['message'] = $bbcode_parser->do_parse($shownews, $mod_options['portal_news_enablehtml'], $news['allowsmilie'], $mod_options['portal_news_enablevbcode'], $mod_options['portal_news_enablevbimage']);
// END BUG FIX
Click INSTALL (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=130384).
CHANGE LOG
11/6/06: Update to better handle images as provided here (https://vborg.vbsupport.ru/showpost.php?p=1111869&postcount=22).
CREDITS
This fix was developed by Sillysoft in partnership with Volconvo (http://www.volconvo.com).
You may contact Sillysoft at liquidchaoss (at) yahoo.com or via AIM at "Sillysoft".
The Volconvo administrator may be contacted here (http://www.volconvo.com/forums/sendmessage.php).
Volconvo.com (http://www.volconvo.com/) and developer Sillysoft (http://www.volconvo.com/cmps.php?page=newsmodulefix#sillysoft) are offering a free and better fix.
BACKGROUND
In version 2.2.0, the problem occurred when when the maximum characters variable was set at such a number that it precluded the display of closing BBCode tags. (thumb: news_verybad.png)
Version 2.2.1 "resolved" the issue by ending quoted material prematurely, effectively ignoring the actual maximum character value. (thumb: news_bad.png)
Volconvo.com (http://www.volconvo.com/) and developer Sillysoft (http://www.volconvo.com/cmps.php?page=newsmodulefix#sillysoft) have partnered to offer the following better fix for vBadvanced CMPS that respects your personal settings. (thumb: news_good.png)
INSTALLATION
Find this line in [forumdirectory]/modules/news.php: $news['message'] = substr($news['message'], 0, strrpos(substr($news['message'], 0, $mod_options['portal_news_maxchars']), ' ')); Replace with the following code:// START BUG FIX
// Provided by Volconvo.com and Sillysoft
// http://www.volconvo.com/cmps.php?page=newsmodulefix
// Original code:
// $news['message'] = substr($news['message'], 0, strrpos(substr($news['message'], 0, $mod_options['portal_news_maxchars']), ' '));
$rawdata = $news['pagetext'];
$newspart1 = substr($rawdata,0,$mod_options['portal_news_maxchars']);
$newsposition = strrpos($newspart1,' ');
$newspart1 = substr($newspart1,0,$newsposition);
$rawdata = $rawdata .'.';
$newspart2 = substr($rawdata,$newsposition,-1);
preg_match_all('#(\[(.*?)\])?.*?(\[\/(.*?)\])?#',$newspart2,$newspart2tags);
$numtags = count($newspart2tags[0]);
$tags = '';
for($i = 0; $i < $numtags; $i++)
{
$tags .= $newspart2tags[1][$i] . $newspart2tags[3][$i];
}
$shownews = $newspart1 .'...';
$news['message'] = $bbcode_parser->do_parse($shownews, $mod_options['portal_news_enablehtml'], $news['allowsmilie'], $mod_options['portal_news_enablevbcode'], $mod_options['portal_news_enablevbimage']);
// END BUG FIX
Click INSTALL (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=130384).
CHANGE LOG
11/6/06: Update to better handle images as provided here (https://vborg.vbsupport.ru/showpost.php?p=1111869&postcount=22).
CREDITS
This fix was developed by Sillysoft in partnership with Volconvo (http://www.volconvo.com).
You may contact Sillysoft at liquidchaoss (at) yahoo.com or via AIM at "Sillysoft".
The Volconvo administrator may be contacted here (http://www.volconvo.com/forums/sendmessage.php).