2020-04-09, 10:18 PM
2020-04-10, 04:14 AM
you can remove relevant code from
for eg. if you want to remove
find below code & add
./jscripts/bbcodes_sceditor.js
file for eg. if you want to remove
liveleak
then [GitHub link]find below code & add
/*
at the beginning & */
at the end (wrapped with a space) 'Liveleak': {
'match': /liveleak\.com\/(?:view\?[a-z]=)([^\/]+)/,
'url': 'http://www.liveleak.com/ll_embed?i=',
'html': '<iframe width="500" height="300" src="{url}" frameborder="0" data-mybb-vt="{type}" data-mybb-vsrc="{src}"></iframe>'
},
after changing code, first line will be like /* 'Liveleak': {
and last line will be like }, */
2020-04-10, 10:08 AM
thanks
2020-04-10, 10:32 AM
javascript files are usually cached by browser.
after editing the file, you may have to change version number for
after editing the file, you may have to change version number for
bbcodes_sceditor.js
file in codebuttons
template of your theme<script type="text/javascript" src="{$mybb->asset_url}/jscripts/bbcodes_sceditor.js?ver=1822"></script>
change like<script type="text/javascript" src="{$mybb->asset_url}/jscripts/bbcodes_sceditor.js?ver=1822.1"></script>