2019-06-29, 09:45 PM
2019-07-01, 09:34 PM
(2019-06-29, 09:45 PM)andrewjs18 Wrote: [ -> ]@martec, thanks for the plugin!
can we adjust where the imgur button is placed in the editor?
you can change order in setting of plugin. if you put spoiler, imgur... spoiler button will apperar first.
if you want change order of group of the buttons you need made changes in template, like codebuttons template in toolbar line. you need change order of newbutbar and newbutbar2.
2020-02-05, 03:30 PM
Out of curiousity, I have a plugin that requires additional parameters. I am using the Hide/lock plugin and it works, and I am trying to use this plugin to make the insertion of the code easier.
Currently it works and inserts the [hide][/hide] tags just fine.
Is there a way to have it insert [hide cost="$$"] [/hide] instead? I guess what I am asking is where does the button call up the code it inserts? Maybe I can edit the hide code somewhere?
Currently it works and inserts the [hide][/hide] tags just fine.
Is there a way to have it insert [hide cost="$$"] [/hide] instead? I guess what I am asking is where does the button call up the code it inserts? Maybe I can edit the hide code somewhere?
2020-03-06, 09:06 AM
Hello!
Thanks for this plugin!
Is it possible to create a button that leads directly to the image host goopics.net?
THX in Advance!
blongso
Thanks for this plugin!
Is it possible to create a button that leads directly to the image host goopics.net?
THX in Advance!
blongso
2020-03-24, 10:59 PM
i dont understand how to add the botton though and i have the plugin installed, i have the image and i just want the image to put [hide][/hide]
2021-01-14, 06:13 AM
V4.0.2 Released:
Ps. This version (4.0.2) doesn't work with mybb 1.8.20 or below. Only for mybb 1.8.21 or above.
Security issue Fix:
- Fix MyCode message formatting XSS in visual editor
(I honestly cannot say if this plugin is in fact affected by this problem https://github.com/samclarke/SCEditor/pull/767 . Anyway, the API used by the plugin from insert () https://www.sceditor.com/api/sceditor/insert/ was changed to insertText () https://www.sceditor.com/api/sceditor/inserttext/ for greater security.)
How update:
- Unistall old version
- Upload new version
- Install
Ps. This version (4.0.2) doesn't work with mybb 1.8.20 or below. Only for mybb 1.8.21 or above.
Security issue Fix:
- Fix MyCode message formatting XSS in visual editor
(I honestly cannot say if this plugin is in fact affected by this problem https://github.com/samclarke/SCEditor/pull/767 . Anyway, the API used by the plugin from insert () https://www.sceditor.com/api/sceditor/insert/ was changed to insertText () https://www.sceditor.com/api/sceditor/inserttext/ for greater security.)
How update:
- Unistall old version
- Upload new version
- Install
2021-01-14, 11:32 AM
2021-01-14, 11:40 AM
(2021-01-14, 11:32 AM)Mastersly Wrote: [ -> ]I am trying to add [hide][/hide]
but it add that button 2 times
https://i.imgur.com/00yHtfw.png
Hi, are you using Quick Advanced Editor Plus?
If yes, post here your codebuttons and codebutquick template.
If no, post here your codebuttons template only.
And screenshot of "My Insert Buttons" setting screen...
Ps. hide imgur client id part.
2021-01-14, 11:50 AM
codebuttons template
settings
https://i.imgur.com/t9hYnOf.png
<link rel="stylesheet" href="{$mybb->asset_url}/jscripts/sceditor/themes/{$theme['editortheme']}" type="text/css" media="all" />
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/sceditor/myinsertbuttons/mibutton.js?ver=4.0.2"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/sceditor/jquery.sceditor.bbcode.min.js?ver=1822"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/bbcodes_sceditor.js?ver=1824"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/sceditor/plugins/undo.js?ver=1821"></script>
<script type="text/javascript">
var newbutbar = newbutbar2 = '',
iclid = '{$mybb->settings['myinsertbuttons_imgurapi']}';
if (!'{$mybb->settings['myinsertbuttons_rules']}'.trim() == ''){
newbut = '{$mybb->settings['myinsertbuttons_rules']}';
newbutbar = ''+newbut+'|';
icm_but_rls = newbut.split(',');
for (var i = icm_but_rls.length-1; i >= 0; i--) {
mibutton(''+icm_but_rls[i]+'',0);
$(mibimage(''+icm_but_rls[i]+'')).insertAfter('textarea');
}
}
if (!'{$mybb->settings['myinsertbuttons_rules_des']}'.trim() == ''){
newbut2 = '{$mybb->settings['myinsertbuttons_rules_des']}';
newbutbar2 = ''+newbut2+'|';
icm_but_rls = newbut2.split(',');
for (var i = icm_but_rls.length-1; i >= 0; i--) {
mibutton(''+icm_but_rls[i]+'',1);
$(mibimage(''+icm_but_rls[i]+'')).insertAfter('textarea');
}
}
var partialmode = {$mybb->settings['partialmode']},
opt_editor = {
plugins: "undo",
format: "bbcode",
bbcodeTrim: false,
style: "{$mybb->asset_url}/jscripts/sceditor/styles/jquery.sceditor.{$theme['editortheme']}?ver=1823",
rtl: {$lang->settings['rtl']},
locale: "mybblang",
width: "100%",
enablePasteFiltering: true,
autoUpdate: true,
emoticonsEnabled: {$emoticons_enabled},
emoticons: {
// Emoticons to be included in the dropdown
dropdown: {
{$dropdownsmilies}
},
// Emoticons to be included in the more section
more: {
{$moresmilies}
},
// Emoticons that are not shown in the dropdown but will still be converted. Can be used for things like aliases
hidden: {
{$hiddensmilies}
}
},
emoticonsCompat: true,
toolbar: "{$basic1}{$align}{$font}{$size}{$color}{$removeformat}{$basic2}image,{$email}{$link}|video{$emoticon}|{$list}{$code}quote,{$mybb->settings['thx_hidesystem_tag']}|"+newbutbar+newbutbar2+"maximize,source",
};
{$editor_language}
$(function() {
$("#{$bind}").sceditor(opt_editor);
MyBBEditor = $("#{$bind}").sceditor("instance");
{$sourcemode}
});
</script>
settings
https://i.imgur.com/t9hYnOf.png
2021-01-14, 12:01 PM
(2021-01-14, 11:50 AM)Mastersly Wrote: [ -> ]codebuttons template
<link rel="stylesheet" href="{$mybb->asset_url}/jscripts/sceditor/themes/{$theme['editortheme']}" type="text/css" media="all" /> <script type="text/javascript" src="{$mybb->asset_url}/jscripts/sceditor/myinsertbuttons/mibutton.js?ver=4.0.2"></script> <script type="text/javascript" src="{$mybb->asset_url}/jscripts/sceditor/jquery.sceditor.bbcode.min.js?ver=1822"></script> <script type="text/javascript" src="{$mybb->asset_url}/jscripts/bbcodes_sceditor.js?ver=1824"></script> <script type="text/javascript" src="{$mybb->asset_url}/jscripts/sceditor/plugins/undo.js?ver=1821"></script> <script type="text/javascript"> var newbutbar = newbutbar2 = '', iclid = '{$mybb->settings['myinsertbuttons_imgurapi']}'; if (!'{$mybb->settings['myinsertbuttons_rules']}'.trim() == ''){ newbut = '{$mybb->settings['myinsertbuttons_rules']}'; newbutbar = ''+newbut+'|'; icm_but_rls = newbut.split(','); for (var i = icm_but_rls.length-1; i >= 0; i--) { mibutton(''+icm_but_rls[i]+'',0); $(mibimage(''+icm_but_rls[i]+'')).insertAfter('textarea'); } } if (!'{$mybb->settings['myinsertbuttons_rules_des']}'.trim() == ''){ newbut2 = '{$mybb->settings['myinsertbuttons_rules_des']}'; newbutbar2 = ''+newbut2+'|'; icm_but_rls = newbut2.split(','); for (var i = icm_but_rls.length-1; i >= 0; i--) { mibutton(''+icm_but_rls[i]+'',1); $(mibimage(''+icm_but_rls[i]+'')).insertAfter('textarea'); } } var partialmode = {$mybb->settings['partialmode']}, opt_editor = { plugins: "undo", format: "bbcode", bbcodeTrim: false, style: "{$mybb->asset_url}/jscripts/sceditor/styles/jquery.sceditor.{$theme['editortheme']}?ver=1823", rtl: {$lang->settings['rtl']}, locale: "mybblang", width: "100%", enablePasteFiltering: true, autoUpdate: true, emoticonsEnabled: {$emoticons_enabled}, emoticons: { // Emoticons to be included in the dropdown dropdown: { {$dropdownsmilies} }, // Emoticons to be included in the more section more: { {$moresmilies} }, // Emoticons that are not shown in the dropdown but will still be converted. Can be used for things like aliases hidden: { {$hiddensmilies} } }, emoticonsCompat: true, toolbar: "{$basic1}{$align}{$font}{$size}{$color}{$removeformat}{$basic2}image,{$email}{$link}|video{$emoticon}|{$list}{$code}quote,{$mybb->settings['thx_hidesystem_tag']}|"+newbutbar+newbutbar2+"maximize,source", }; {$editor_language} $(function() { $("#{$bind}").sceditor(opt_editor); MyBBEditor = $("#{$bind}").sceditor("instance"); {$sourcemode} }); </script>
settings
https://i.imgur.com/t9hYnOf.png
hi
thanks for reply...
it's probably due to this ",{$mybb->settings['thx_hidesystem_tag']}" .
But I honestly don't know which plugin is adding this ",{$mybb->settings['thx_hidesystem_tag']}".
You have three choices. Uninstall my plugin and keep the plugin that is adding ", {$ mybb-> settings ['thx_hidesystem_tag']}" or uninstall the plugin that is adding ", {$ mybb-> settings ['thx_hidesystem_tag']}" and keep my plugin or keep both plugins and remove from the template, "{$ mybb-> settings ['thx_hidesystem_tag']}" part.