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

attaching images > re-sizing

Ryan Kent

Well-known member
#1
Is it possible to show an attached image in various sizes? I don't want it to show full-size, nor as a thumbnail. Basically I want to say something like attach=40% or attach=100height,100width
 

Brogan

XenForo moderator
Staff member
#2
You can create a custom BB Code for embedded images.
Just specify the height and width as variables.

I'm not sure you will be able to easily adjust the core attach functionality though without an add-on.
 
R

ragtek

Guest
#3
lol
i thought that's already included, because it's possible to change the size of the thumbnails (didn't know that this have no effect)
 

Brogan

XenForo moderator
Staff member
#4
Changing the size of the thumbnails works fine.

As I understand it, the OP wants to be able to specify different embed sizes for individual attachments.
 

Brogan

XenForo moderator
Staff member
#6
The attached image thumbnail size is set in the ACP.

That's what I mean by changing the size of the thumbnails, although it doesn't change the size of existing thumbnails.
 

Brogan

XenForo moderator
Staff member
#8
Ah, that's just a quirk of the editor.
The same happens when you embed an image from a URL.
Of course the original file isn't affected at all so once the post is submitted, the actual size is displayed.
 
R

ragtek

Guest
#9
Ah, that's just a quirk of the editor.
The same happens when you embed an image from a URL.
Of course the original file isn't affected at all so once the post is submitted, the actual size is displayed.
ok
thx
 
R

ragtek

Guest
#10
If anybody is interessted, this can be deactivated.
Just add
PHP:
object_resizing : false,
to the edit_js_setup template
after

Code:
<xen:hook name="editor_tinymce_init" params="{xen:array 'editorId={$editorId}'}">
I'll make a add-on tomorrow for this, because it's really unnecessary if it's no real feature.