Very useful refinement.
But unfortunately could not make it work with the new version of JohnCMS 7.1.0
Try the following:
1) Visit our repository, develop branch
2) Clone repositiry, or download as ZIP
3) With Composer, install all dependencies, You get the same code that is currently installed on THIS site
4) Install the resulting distributive
5) Make sure that everything works without errors
Then you can try to introduce your code.
But note that the BBcode class has changed a lot compared to JohnCMS 7.0.0
It is not necessary to add the upload class, it is already in the system. Simply call it as here: https://github.com/john-cms/jo ... p#L44
If everything works out, send the finished code, we will test. If it is convenient and reliable, we will insert it into the distribution kit.