ElkArte Community

Project Support => Support => Topic started by: b4pjoe on October 22, 2017, 10:24:42 am

Title: ElkArte 1.1 Final inline attachments
Post by: b4pjoe on October 22, 2017, 10:24:42 am
Is there a way to have it place the image inline instead of just the thumbnail?
Title: Re: ElkArte 1.1 Final inline attachments
Post by: Spuds on October 22, 2017, 11:44:58 am
You mean the full sized image ?
Title: Re: ElkArte 1.1 Final inline attachments
Post by: b4pjoe on October 22, 2017, 12:14:57 pm
Well sort of like the plug-in worked where you could specify alignment and size.
Title: Re: ElkArte 1.1 Final inline attachments
Post by: radu81 on October 22, 2017, 06:31:25 pm
Would be nice to see it, for now is not possible to choose to insert the thumbnail or full image.
Title: Re: ElkArte 1.1 Final inline attachments
Post by: Spuds on October 22, 2017, 06:51:51 pm
Test (Link-5047) for now the best you can do is specify a width=123 attribute, not ideal but should work
Title: Re: ElkArte 1.1 Final inline attachments
Post by: b4pjoe on October 22, 2017, 06:57:26 pm
Quote from: Spuds – Test for now the best you can do is specify a width=123 attribute, not ideal but should work

Thanks for that. I was trying
Code: [Select]
[attach]5047 width=500[/attach]
instead of
Code: [Select]
[attach width=500]5047[/attach]
Title: Re: ElkArte 1.1 Final inline attachments
Post by: b4pjoe on October 22, 2017, 07:07:26 pm
(Link-5049)

I got the align to work on my test forum but it doesn't seem to be working here. If I align=right on my test forum it puts it to the right of the page but then Quote and More button are to the left of the image.

(actually neither width or align seems to work here for me)
Title: Re: ElkArte 1.1 Final inline attachments
Post by: Spuds on October 23, 2017, 08:50:27 am
I think they are working on message modify but not when the message is first created (when using attributes) ... strange.
Title: Re: ElkArte 1.1 Final inline attachments
Post by: b4pjoe on October 23, 2017, 09:02:47 am
The image I posted above has a name of " post_tmp_40_99b725d08650fe0d071ac6e770d2b224" while yours was "5047". On my test forum when you create the post and attach a file it uses the long post_tmp name but after it is posted and you modify it it changes to just a series of numbers like the one you posted. Both width and align seem to work after the name changes to the short series of numbers. My post above never changed the name from "post_tmp_40_99b725d08650fe0d071ac6e770d2b224" to a short series of numbers so the size and alignment doesn't work for it.

Might be the long name is the name of the thumbnail and the short name is the name of the actual image file?

Yeah if I change the name of the image in the code from "post_tmp_40_99b725d08650fe0d071ac6e770d2b224" to "5049" the size and alignment work. Although you can see how the Quote, Quick Edit, and More button are now on the left side of the image instead of under it like it should be.
Title: Re: ElkArte 1.1 Final inline attachments
Post by: radu81 on December 17, 2017, 06:06:33 pm
is this a bug?
https://www.elkarte.net/community/index.php?topic=4719.msg34128#msg34128
Title: Re: ElkArte 1.1 Final inline attachments
Post by: live627 on December 17, 2017, 11:41:05 pm
viewport must be large, see attached. is fine on mobile..
Title: Re: ElkArte 1.1 Final inline attachments
Post by: emanuele on December 18, 2017, 02:37:12 am
Quote from: Spuds – I think they are working on message modify but not when the message is first created (when using attributes) ... strange.
Could be because of the preg_replace on the temporary attach file name.