Author Topic: Manual changes to SimplePortal to handle new BBCodes  (Read 628 times)

Offline Chip (OP)

  • Server Admin
  • Moderator
  • Hero Member
  • ***
  • Administrator
  • *****
  • Join Date: Dec 2014
  • Location: Australia
  • Posts: 6070
  • Reputation Power: 0
  • Chip has hidden their reputation power
  • Gender: Male
  • Last Login:September 15, 2019, 02:35:08 PM
  • Deeply Confused Learner
Manual changes to SimplePortal to handle new BBCodes
« on: January 04, 2016, 09:58:59 PM »
see 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"
« Last Edit: September 25, 2018, 05:22:46 PM by Chip »
Over 90% of all computer problems can be traced back to the interface between the keyboard and the chair !

Offline Chip (OP)

  • Server Admin
  • Moderator
  • Hero Member
  • ***
  • Administrator
  • *****
  • Join Date: Dec 2014
  • Location: Australia
  • Posts: 6070
  • Reputation Power: 0
  • Chip has hidden their reputation power
  • Gender: Male
  • Last Login:September 15, 2019, 02:35:08 PM
  • Deeply Confused Learner
Re: Manual changes to SimplePortal to handle new BBCodes
« Reply #1 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',
        );
Over 90% of all computer problems can be traced back to the interface between the keyboard and the chair !

Offline Chip (OP)

  • Server Admin
  • Moderator
  • Hero Member
  • ***
  • Administrator
  • *****
  • Join Date: Dec 2014
  • Location: Australia
  • Posts: 6070
  • Reputation Power: 0
  • Chip has hidden their reputation power
  • Gender: Male
  • Last Login:September 15, 2019, 02:35:08 PM
  • Deeply Confused Learner
Re: Manual changes to SimplePortal to handle new BBCodes
« Reply #2 on: June 12, 2019, 12:30:41 PM »
added "wiki"
Over 90% of all computer problems can be traced back to the interface between the keyboard and the chair !

Tags:
 




TERMS AND CONDITIONS

In no event will d&u or any person involved in creating, producing, or distributing site information be liable for any direct, indirect, incidental, punitive, special or consequential damages arising out of the use of or inability to use d&u. You agree to indemnify and hold harmless d&u, its domain founders, sponsors, maintainers, server administrators, volunteers and contributors from and against all liability, claims, damages, costs and expenses, including legal fees, that arise directly or indirectly from the use of any part of the d&u site.


TO USE THIS WEBSITE YOU MUST AGREE TO THE TERMS AND CONDITIONS ABOVE



Founded December 2014