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

attaching images > re-sizing

Discussion in 'XenForo Questions and Support' started by Ryan Kent, Apr 30, 2011.

  1. Ryan Kent

    Ryan Kent Well-Known Member

    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
  2. Brogan

    Brogan XenForo Moderator Staff Member

    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.
  3. ragtek

    ragtek Guest

    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)
  4. Brogan

    Brogan XenForo Moderator Staff Member

    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.
  5. ragtek

    ragtek Guest

  6. Brogan

    Brogan XenForo Moderator Staff Member

    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.
  7. ragtek

    ragtek Guest

    I'm talking about http://ragtek.org/videos/size.htm
  8. Brogan

    Brogan XenForo Moderator Staff Member

    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.
  9. ragtek

    ragtek Guest

  10. ragtek

    ragtek Guest

    If anybody is interessted, this can be deactivated.
    Just add
    object_resizing false,
    to the edit_js_setup template

    <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.
  11. trilogy33

    trilogy33 Well-Known Member

Share This Page