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: add "html" BBCode and image  (Read 3344 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:Today at 05:53:23 PM
  • Deeply Confused Learner
  • Profession: IT Engineer
add "html" BBCode and image
« 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']                        ),
« Last Edit: October 14, 2018, 04:45:39 AM 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:Today at 05:53:23 PM
  • Deeply Confused Learner
  • Profession: IT Engineer
Re: add "html" BBCode and image
« Reply #1 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/
« Last Edit: October 18, 2018, 12:43:23 AM 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

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