https://www.icyphoenix.com/viewtopic.php?f=4&t=2245&p=16202#p16202
-----------------------------------
moreteavicar
Fri 08 Jun, 2007 14:48

BBCODE - How To Use Icy Phoenix Customized bbcode.php
-----------------------------------
In bbcode.php there are instructions from MG for usage of the re-written bbcode.php file. For instance, when parsing, using:
[codeblock]
$text = $bbcode->parse($text, $bbcode_uid);
[/codeblock]
When installing a mod which uses:
[codeblock]
bbencode_second_pass($zdesc, $bbcode_uid)
[/codeblock]
I've tried replacing this with 
[codeblock]
$zdesc = $bbcode->parse($zdesc, $bbcode_uid);
[/codeblock]

However, I get an error:
[codeblock]Fatal error: Call to undefined method stdClass::parse()[/codeblock]

This seems strange as the mg modified bbcode.php is being included, which contains the definition of parse - any ideas anybody?

NB I also added some declarations to 'seed' $bbcode before parsing:
[code]
			$bbcode->allow_html = $html_on;
			$bbcode->allow_bbcode = true;
			if ( !$lofi )
			{    
				$bbcode->allow_smilies = true;
			}
			else
			{
				$bbcode->allow_smilies = false;
			}   			

[/code]		
However, these make no difference, I get the same parse error if I comment them out.


