Log in

View Full Version : Remove image button editor


Pieper
11-13-2013, 08:18 PM
Hello,

I want to use a custom plugin to remove some buttons from the editor. I can remove buttons like: email,link etc. without any problems with the plugin.
The only problem is the image button. Somehow I can't seem to remove that button.

The plugin is use is:

Hook location: editor_toolbar_start

Plugin PHP Code

$show['img_bbcode'] = false;

It's working fine with the plugin php codes like:

$show['php_bbcode'] = false;
$show['code_bbcode'] = false;
$show['url_bbcode'] = false;

So the only problem is the image button.

Can someone tell me what I'm doing wrong?

nerbert
11-13-2013, 08:56 PM
I don't think you need a plugin at all. Go to Forum Manager and disaollow [IMG] bbcode, forum by forum. As for [php] [html] and [code] you can set that in options > bb code settings

Pieper
11-13-2013, 09:10 PM
Thanks Nerbert.

Thats a good solution. Problem is I don't want to completely disable the inline images but prefer the upload option.
When the option to use the 'url' for the images is not by default in the editor I think the step to upload the images will be easier to make ( for new members).

Also in some 'How To's' we use inline images to. When I disable the [IMG]bbcode these images will be gone also?

nerbert
11-13-2013, 09:51 PM
I think old images will still be there until/unless you clear the system cache. That makes them a little precarious. But I'm not sure.

Pieper
11-14-2013, 06:12 PM
Thanks Nerbert, but I think I will play a bit more with the plugin.
95% of the forum are topics with images, and I don't want to lose them.