dopetalk

Technology => SMF Forum Code Modifications => Topic started by: Chip on January 04, 2016, 09:58:59 PM

Title: Manual changes to SimplePortal to handle new BBCodes
Post by: Chip on January 04, 2016, 09:58:59 PM
see http://simpleportal.net/index.php?topic=10710.0 (http://simpleportal.net/index.php?topic=10710.0)

edit /var/www/html/Sources/PortalAdminShoutbox.php

edit /var/www/html/Sources/PortalBlocks.php

Just add your bbc to the array. Make sure there is an image for it in every theme's images / bbc folder.
Also the image name(s) must be the bbc name .gif

then Admin > SimplPortal > Shoutbox List > select Shoutbox > mark in "Allowed BBC"
Title: Re: Manual changes to SimplePortal to handle new BBCodes
Post by: Chip on September 25, 2018, 05:28:12 PM
the latest list:

Code: [Select]
        $context['allowed_bbc'] = array(
                'b' => $txt['bold'],
                'i' => $txt['italic'],
                'u' => $txt['underline'],
                's' => $txt['strike'],
                'pre' => $txt['preformatted'],
                'flash' => $txt['flash'],
                'img' => $txt['image'],
                'url' => $txt['hyperlink'],
                'email' => $txt['insert_email'],
                'ftp' => $txt['ftp'],
                'glow' => $txt['glow'],
                'shadow' => $txt['shadow'],
                'sup' => $txt['superscript'],
                'sub' => $txt['subscript'],
                'tt' => $txt['teletype'],
                'code' => $txt['bbc_code'],
                'quote' => $txt['bbc_quote'],
                'size' => $txt['font_size'],
                'font' => $txt['font_face'],
                'color' => $txt['change_color'],
                'highlight' => $txt['highlight'],
                'bouncy' => $txt['bouncing_object'],
                'move' => $txt['move'],
                'info' => $txt['info'],
                'embed' => $txt['embed'],
                'blink' => $txt['blink'],
                'test' => $txt['test'],
                'spoiler' => $txt['spoiler'],
                'nobbc' => $txt['nobbc'],
                'member' => $txt['member'],
                'bg' => $txt['bg'],
                'html' => $txt['html'],
                'me' => 'me',
        );
Title: Re: Manual changes to SimplePortal to handle new BBCodes
Post by: Chip on June 12, 2019, 12:30:41 PM
added "wiki"
SimplePortal 2.3.6 © 2008-2014, SimplePortal