MyBB Community Forums

Full Version: Add new command (button) (with or without description) in sceditor using ACP
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
To me it makes no much difference this feature. But others may find interesting.

[Image: xV3KTrC.png]
[Image: fGuC2W7.png]
[Image: GUOi8FK.png]



I know something like that is not so very smart way of doing ([name]Spoiler tag[/name],[command]spoiler[/command],[description]yes[/description]), but unfortunately this is all I can do within my reach.

So if some mybb staff interest it feel free to better my code (https://github.com/martec/mybb/compare/m...t?expand=1 ).

If no one interested just ignore the topic.
it's good idea
I think it's a good idea too.
DEVs think about this? if not why?
(2014-07-23, 06:09 PM)OMID_HXC Wrote: [ -> ]DEVs think about this? if not why?

now is late...
(2014-07-23, 09:59 PM)martec Wrote: [ -> ]
(2014-07-23, 06:09 PM)OMID_HXC Wrote: [ -> ]DEVs think about this? if not why?

now is late...
what about on 1.8.1 ?
(2014-07-24, 04:51 AM)OMID_HXC Wrote: [ -> ]what about on 1.8.1 ?

I think, unlikely to be added, but the complaints about difficulty in adding the button might make the team MyBB add something. Since many will have difficulties in adding the button in sceditor. And I think we will have lots of topics asking for help in how to add the button. This here greatly facilitates those who do not have familiarity with add button in sceditor.

If by chance it here, is not added, I allow, use the code to make the plugin. Feel free to use it.
Regarding your comment over at GitHub, where exactly do you think a hook will come handy? build_mycode_inserter() already has a hook, doesn't that work? Probably adding a new hook in that function is not plausible.
(2014-07-25, 06:09 AM)Omar G. Wrote: [ -> ]Regarding your comment over at GitHub, where exactly do you think a hook will come handy? build_mycode_inserter() already has a hook, doesn't that work? Probably adding a new hook in that function is not plausible.

you said about this?

$editor_lang_strings = $plugins->run_hooks("mycode_add_codebuttons", $editor_lang_strings);
https://github.com/mybb/mybb/blob/featur....php#L2854

??
but hook above not for language? And i tested but for me not work with what i want make..

what i need is one hook around line 2781 and without arguments


EDIT:
@Omar G.

i tested here...
but I could not make this plugin work.
so no need more hooks for this...

sorry for inconvenience.

plugin for this here: http://community.mybb.com/thread-156575.html
unfortunately the plugin will do core edit.
But I have not found another solution
On which line exactly you need the hook in?
Pages: 1 2