dopetalk

Technology => SMF Forum Code Modifications => Topic started by: Chip on October 09, 2018, 06:11:38 AM

Title: add "html" BBCode and image
Post by: Chip on October 09, 2018, 06:11:38 AM
https://www.simplemachines.org/community/index.php?topic=484559.0

to ./Sources/Subs-Editor.php add in the region of line 1566:

Code: [Select]
                        array(
'image' => 'html',
'code' => 'html',
'before' => '[html]',
'after' => '[/html]',
'description' => $txt['html']                        ),
Title: Re: add "html" BBCode and image
Post by: Chip on October 16, 2018, 04:01:25 AM
Admin > Simple Portal Shoutbox config:

1. Exempt Admins box ticked

2. Regex Filter is (array('#<html>m#','#</html>#m'),array(' ',' ')

3. Regex Callback is preg_replace('/<html[^>]+?[^>]+>|</html>/i','',$m[0]) (courtesy of Simple Portal)

see more on Callback > https://www.exakat.io/the-art-of-php-callback/ (https://www.exakat.io/the-art-of-php-callback/)
SimplePortal 2.3.6 © 2008-2014, SimplePortal