The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
I suspect there maybe a solution somewhere for this but after a day of searching and failed attempts I felt it was time to ask.
This is the code I'm using at the moment: Code:
if (!is_object($bbcode_parser))
{
require_once(DIR . '/includes/class_bbcode.php');
$bbcode_parser =& new vB_BbCodeParser($GLOBALS['vbulletin'], fetch_tag_list(),true);
}
$taskdesc = strip_tags($taskdesc);
$taskdesc = $bbcode_parser->parse($taskdesc,0,true);
If someone could point out where I'm going wrong I'd really appreciate it as this is doing my head in! Cheers |
|
#2
|
||||
|
||||
|
try this .. I am not sure what code is older.. worth a shot
try this replacing this line PHP Code:
PHP Code:
|
|
#3
|
||||
|
||||
|
Thanks but no change, both work for default BBcode but not for custom.
--------------- Added [DATE]1291729000[/DATE] at [TIME]1291729000[/TIME] --------------- Solved: Here is an explanation for anyone else hunting for this in the future - it really is simple once you know ![]() Code:
if (!is_object($bbcode_parser))
{
require_once(DIR . '/includes/class_bbcode.php');
$bbcode_parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list(),true);
$taskdesc = strip_tags($taskdesc);
$taskdesc = $bbcode_parser->parse($taskdesc,0,true);
}
|
|
#4
|
||||
|
||||
|
thanks for adding your fix ..
but your code is the same as what you posted except you added code i posted + true .. and there is a } missing.. so i am confused |
|
#5
|
||||
|
||||
|
I hadn't actually noticed that - going back and trying it again my original code should have worked and it was something else breaking it when I originally posted and by the time I substituted yours I must have fixed it without realising.
The key point though is that to enable custom BBcode you need to put a true after fetch_tags_list |
|
#6
|
||||
|
||||
|
thanks for the info 2 thumbs up
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|