• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Remove or Replacing "Media Gallery Embed" button from Toolbar

51463

Well-known member
#1
I have 2 question relating to the "Media Gallery Embed" button in the toolbar.

Embed.PNG


#1. At the moment when i press it it brings up all my uploaded thumbnails and when i pick a media it pastes the Share BB [GALLERY] Code:

Code:
[GALLERY=media, 395]breakfast.. by joey_tbf posted Jan 1, 2015 at 7:16 AM[/GALLERY]
Instead of the Share BB [GALLERY] Code:

Is it possible for it it to paste the Share BB (With Thumbnail) Code: instead?

Code:
[URL=https://xenforo.com/community/media/breakfast.395/][IMG]https://xenforo.com/community/data/xengallery/93/93269-cc69253c2ae1f6a55ec09d7144b4a65d.jpg[/URL]

if it's not possible or it requires custom add-on. Then it brings me to my next question.

#2. How can i remove that button from the toolbar


Thanks,
 

Mike

XenForo developer
Staff member
#2
You can adjust how the gallery BB code works with the "Enable [GALLERY] BB Code". There may be a version that suits your needs.

You can remove the button by editing the custom BB code and removing the "Editor Icon URL" value. (Note that this may be restored when upgrading.)
 

51463

Well-known member
#3
#1 The problem with the "Enable [GALLERY] BB Code" is that even if i put it in simple mode. The thumbnail size does not include the BB Gallery.

So it doesn't look good when you are pasting a lot of images. Here is a screenshoot of the 2.

BB.PNG

Gallery BB - It one goes vertical and the pictures are different sizes.
Thumbnail BB - The second one is a lot more neater and all the thumbails are horizantal and sme size . This is better for posting lots of photos.



#2 Can you tell me which file to edit? I looked in the redactor.js and bb_code_edit.js

But it's not there. I think i am looking for " redactor_btn_custom_gallery

Media Button.PNG
 

51463

Well-known member
#5
and it's gone! For anyone that wants to know. Here is the screenshot. This is how to disable it.


Custom.PNG



I will have to make a suggestion later for #1

thanks!! works good now
 

MstrfBlng

Active member
#6
@51463 Any updates on solution #1? I just had to disable the custom BB code too, because it just doesn't look as good as a normal IMG tag. And even more important. Tapatalk users complain that they don't see the pictures with the GALLERY tags, it isn't supported.
 

51463

Well-known member
#7
No updates on solution#1 because it's not possible.

You will have to pay someone to get it custom made. That's what i had to do. Then it will be possible.