View Full Version : bbcode parser bug
The bbcode thread title is replaced by vBa CMPS on the frontpage with http://domainname.com/showthread.php?t=123 instead of http://domainname.com/forum/showthread.php?t=123 like in the forum.
Apparently it's missing the forum/ part on the frontpage :( ...
How can I fix this?
Thanks!
Brian
01-21-2006, 12:15 AM
If you'll look in your vba_cmps_include_bottom.php file for this code:
$bbcode_parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
And add this right below it:
$bbcode_parser->tag_list['no_option']['thread']['html'] = str_replace('"showthread.php', '"' . $vbulletin->options['bburl'] . '/showthread.php', $bbcode_parser->tag_list['no_option']['thread']['html']);
$bbcode_parser->tag_list['no_option']['post']['html'] = str_replace('"showthread.php', '"' . $vbulletin->options['bburl'] . '/showthread.php', $bbcode_parser->tag_list['no_option']['thread']['html']);
$bbcode_parser->tag_list['option']['thread']['html'] = str_replace('"showthread.php', '"' . $vbulletin->options['bburl'] . '/showthread.php', $bbcode_parser->tag_list['option']['thread']['html']);
$bbcode_parser->tag_list['option']['post']['html'] = str_replace('"showthread.php', '"' . $vbulletin->options['bburl'] . '/showthread.php', $bbcode_parser->tag_list['option']['thread']['html']);
Then that should take care of the problem.
That did the trick, thanks :) !
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.