dopetalk does not endorse any advertised product nor does it accept any liability for it's use or misuse

This website has run out of funding so feel free to contribute if you can afford it (see footer)

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

Offline Chip (OP)

  • Server Admin
  • Hero Member
  • *****
  • Administrator
  • *****
  • Join Date: Dec 2014
  • Location: Australia
  • Posts: 6648
  • Reputation Power: 0
  • Chip has hidden their reputation power
  • Gender: Male
  • Last Login:Yesterday at 05:53:23 PM
  • Deeply Confused Learner
  • Profession: IT Engineer
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 »
friendly
0
funny
0
informative
0
agree
0
disagree
0
like
0
dislike
0
No reactions
No reactions
No reactions
No reactions
No reactions
No reactions
No reactions
Our Discord Server invitation link is https://discord.gg/jB2qmRrxyD

Offline Chip (OP)

  • Server Admin
  • Hero Member
  • *****
  • Administrator
  • *****
  • Join Date: Dec 2014
  • Location: Australia
  • Posts: 6648
  • Reputation Power: 0
  • Chip has hidden their reputation power
  • Gender: Male
  • Last Login:Yesterday at 05:53:23 PM
  • Deeply Confused Learner
  • Profession: IT Engineer
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',
        );
friendly
0
funny
0
informative
0
agree
0
disagree
0
like
0
dislike
0
No reactions
No reactions
No reactions
No reactions
No reactions
No reactions
No reactions
Our Discord Server invitation link is https://discord.gg/jB2qmRrxyD

Offline Chip (OP)

  • Server Admin
  • Hero Member
  • *****
  • Administrator
  • *****
  • Join Date: Dec 2014
  • Location: Australia
  • Posts: 6648
  • Reputation Power: 0
  • Chip has hidden their reputation power
  • Gender: Male
  • Last Login:Yesterday at 05:53:23 PM
  • Deeply Confused Learner
  • Profession: IT Engineer
Re: Manual changes to SimplePortal to handle new BBCodes
« Reply #2 on: June 12, 2019, 12:30:41 PM »
added "wiki"
friendly
0
funny
0
informative
0
agree
0
disagree
0
like
0
dislike
0
No reactions
No reactions
No reactions
No reactions
No reactions
No reactions
No reactions
Our Discord Server invitation link is https://discord.gg/jB2qmRrxyD

Tags:
 


dopetalk does not endorse any advertised product nor does it accept any liability for it's use or misuse





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
SimplePortal 2.3.6 © 2008-2014, SimplePortal