Quote:
Originally Posted by Andreas
Suggestion to turn this into a Plugin
- Put functions handle_bbcode_media() and format_size() into its own PHP file, place it in includes
Btw.: format_size() is redundant; vb_number_format() has a parameter to format the ouput as filesize.
- Change the signature to
PHP Code:
handle_bbcode_media(&$parser, $text, $options='')
- Change all $this in function handle_bbcode_media() into $parser
- Change the Plugin on bbcode_fetch_tags to have
PHP Code:
'callback' => 'handle_external',
'external_callback' => 'handle_bbcode_media'
Also make sure you require the file with your functions here.
=> No more file edits.
|
Thanks very much for your suggestion, buddy.

I'm working on it now,and will release a new version later.