Skip to main content
Topic: [ADDON][WIP] In Line Attachments (Read 33680 times) previous topic - next topic
0 Members and 3 Guests are viewing this topic.

[ADDON][WIP] In Line Attachments

Another WIP addon, 

*** Note *** this is now built into ElkArte 1.1.x

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.
Last Edit: November 06, 2022, 10:34:31 am by Spuds

Re: [ADDON]{WIP} In Line Attachments

Reply #1

 emanuele smells good stuff here!
Bugs creator.
Features destroyer.
Template killer.

 

Re: [ADDON][WIP] In Line Attachments

Reply #2

What is the status of this add on ?

Re: [ADDON][WIP] In Line Attachments

Reply #3

I think that this add on should be integrated into ElkArte :)

Re: [ADDON][WIP] In Line Attachments

Reply #4

It is currently lacking the posting interface, so right now you have to manually add the [attach] bbc codes.  I have to spend some time on figuring out a decent interface to insert the codes.

Quote from: CrimeS – I think that this add on should be integrated into ElkArte :)
There was talk about doing that for 1.0 (very early on), you may see it in 1.1, depends on getting the UI and some more testing, there are quite a few unusual conditions that it has to handle !


Re: [ADDON][WIP] In Line Attachments

Reply #5

Tried it on my new Elkarte test install, but I get a parse error on testing:

Extract File   ./themes/default/css/ILA.css   Modification parse error

This is on a vanillaElkarte install. Any ideas?

Re: [ADDON][WIP] In Line Attachments

Reply #6

Because Spuds is testing on windows where ILA.css and ila.css are the same file, while on *nix is not. :P
Bugs creator.
Features destroyer.
Template killer.

Re: [ADDON][WIP] In Line Attachments

Reply #7

damn Windows users  :D

I earn my living now as a Senior Wintel engineer but started out on Amigas and Solaris back in Windows 3 era.

Re: [ADDON][WIP] In Line Attachments

Reply #8

Quote from: emanuele – Because Spuds is testing on windows where ILA.css and ila.css are the same file, while on *nix is not. :P
Doh .,.. what he is saying is sometimes I'm about as sharp as a bowling bowl !  I've only made that same error like 1000 times !

Re: [ADDON][WIP] In Line Attachments

Reply #9

 emanuele uses linux not to do these errors, but can do much more funny ones! :P
Bugs creator.
Features destroyer.
Template killer.

Re: [ADDON][WIP] In Line Attachments

Reply #10

https://bitbucket.org/spuds_/elk_ila

one of my favourite addon, is working with ELK 1.0.0 ;)
sorry for my bad english

Re: [ADDON][WIP] In Line Attachments

Reply #11

Glad its working for you :D ... I still need to add a post screen interface, I'm just still undecided what I want to do for that,

Re: [ADDON][WIP] In Line Attachments

Reply #12

I sow that I have to insert manually the bbcode for inline images, but for now is enough, I am using your SMF mod on my forum and if I'll convert to Elk I wont loose the inline images ;) (the pagination I mean, not the attachments).

And it also works with Fancybox, another addon that I like (less features than HS4smf but still a great one)
sorry for my bad english

Re: [ADDON][WIP] In Line Attachments

Reply #13

There is a problem with this mod and simple portal. I don't kow if is related to SP or ILA.

I have a block "Board news" where I insert the images inline floatet to left. In smf is working fine, but not on Elk. I attach 2 images to explain better

p.s. I can also provide an account if someone want to take a look.
sorry for my bad english

Re: [ADDON][WIP] In Line Attachments

Reply #14

Looks like its not finding the image. to display?