dopetalk
Technology => SMF Forum Code Modifications => Topic started 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:
array(
'image' => 'html',
'code' => 'html',
'before' => '[html]',
'after' => '[/html]',
'description' => $txt['html'] ),
-
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/)