[ADDON][WIP] In Line Attachments
Another WIP addon,
This one is my conversion of ILA, in line attachments. Right now all the hooks are in place so the ILA tags render, placing the image in line with the text. Whats missing is the easy tag placement in the editor, so for now you have to add an attachment as normal, and then in the text, enter the ILA tag where you want the image to display.
I'm not sure what direction I may take with the editor, so for now .....
In Line Attachments v1.0
License
This addon is released under a MPL V1.1 license, a copy of it with its provisions is included with the package.
Introduction
This addon adds the ability to position your attachments in your post, like the IMG tag, using newly created BBC codes. This is useful for inserting attachments inline with your text. Several types of attachments are possible such as : full-size, thumbnail or link. For each attachment you can select how and where the attachment appears within the message. You can also use the same image in multiple areas in the same post. You can of course still have the attachment at the bottom of the post as is the ElkArte default.
Features
- Adds new bbcodes to position attachments within the post, note n is the number of the attachment in the post, eg first = 1, second = 2, etc
- [attachimg=n] (full size image)
- [attach=n] (thumbnail image)
- [attachurl=n] (link with view/download count)
- [attachmini=n] (simple link)
- Use simple [attach] tag to insert the added attachments sequentially
- Adds optional align and width attributes as [attachimg=1 align=left width=80]
- Align can be left, right or center. For left and right aligns the text will flow around the image
- Width works on attachimg, if the specified width is less than the image then a link (or highslide) is added to one to view the full sized image
- The default placement of attachments at the bottom of the post is unaffected for the attachments that were not used in line.
- Works in all areas of the board such as new posts since last visit / all posts of user / new, reply, modify messages / Topic/Reply History.
There are some basic admin settings available with this mod, go to admin - configuration - addon settings - ILA. Here you can disable/enable the addon.