ElkArte Community

Project Support => Support => Topic started by: anagnam on October 20, 2015, 01:48:45 am

Title: Best practice to attach image as part of the post
Post by: anagnam on October 20, 2015, 01:48:45 am
Hi guys, I would like to ask your opinion on what is the best approach if say I want to attach an image not as a thumbnail but as part of the post itself. As always, any ideas is greatly appreciated. thanks
Title: Re: Best practice to attach image as part of the post
Post by: TE on October 20, 2015, 01:56:28 am
I'd recommend the Inline Attachments addon
http://addons.elkarte.net/feature/Inline-Attachments.html
Title: Re: Best practice to attach image as part of the post
Post by: anagnam on October 20, 2015, 02:22:54 am
thanks @TE! btw, can you recommend a good hosting site for image to be used in the inline attachment addon?
Title: Re: Best practice to attach image as part of the post
Post by: Wizard on October 20, 2015, 02:28:36 am
Imgur.com
Title: Re: Best practice to attach image as part of the post
Post by: anagnam on October 20, 2015, 03:05:39 am
@TE @Wizard for some reason, I cant make the inline attachment work. I tried using
Code: [Select]
[attachimg=1 align=left width=80]http://i.imgur.com/cDjZH6Jb.jpg[/attachimg]
but doesnt seem to work. the addon was enable though.
Am I doing it correctly?
Title: Re: Best practice to attach image as part of the post
Post by: radu81 on October 20, 2015, 03:36:01 am
attachimg tag is working only for the attachments, to obtain that result with an attachment the code you should insert is
Code: [Select]
[attachimg=1 align=left width=80]
Title: Re: Best practice to attach image as part of the post
Post by: Wizard on October 20, 2015, 03:47:10 am
Simply upload the image at imgur or tinypic.com, get the code and paste it between
Code: [Select]
[img]Image url here[/img]
Title: Re: Best practice to attach image as part of the post
Post by: TE on October 20, 2015, 05:15:01 am
Inline Attachments is made for uploaded attachments..
for external images, hosted by other services you'd use this solution:

Quote from: Wizard – Simply upload the image at imgur or tinypic.com, get the code and paste it between
Code: [Select]
[img]Image url here[/img]
Title: Re: Best practice to attach image as part of the post
Post by: radu81 on October 20, 2015, 05:34:28 am
or you can use the "width" tag
(http://i.imgur.com/cDjZH6Jb.jpg)

Code: [Select]
[img width=80]http://i.imgur.com/cDjZH6Jb.jpg[/img]
Title: Re: Best practice to attach image as part of the post
Post by: Wizard on October 20, 2015, 05:35:16 am
Use can use both width and height inside img tag as shown by @radu81