XF 2.0 Updating Custom BB codes for XF 2.x

MikeMpls

Well-known member
Is there a tutorial on writing custom BB coces for XF 2.0?

If not what are the differences between 1.x & 2.x in that regard.

A custom BB code that has worked for me for years on various versions of 1.x is not giving me this message on 2.0.4:

Oops! We ran into some problems.
Callback FairUseBBC_FairUse::parseTagFairUse is invalid (error_invalid_class).

And since I am the developer, there is no support thread to post this in.
 
There is. If you'd read that carefully, you'd know that directory paths no longer are shortcutted with "_". So for example FairUseBBC_FairUse::parseTagFairUse
would be
FairUseBBC\FairUse::parseTagFairUse
Also, the src destination has to be changed. I guess it would be
src/addons/FairUseBBC/FairUse.php
Of course, you'd need to change classnames aswell.
 
Back
Top Bottom