Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Mod Requests => Topic started by: Plantje on July 19, 2017, 03:06:21 AM

Title: Add images to posts
Post by: Plantje on July 19, 2017, 03:06:21 AM
Hi,

For my forum I am looking to simplify adding pictures to posts. I know that searching can help a lot, but in doing so I find quite some deprecated mods and mods that cannot be found anymore.

I am looking for a picture tool that does the following:

I've been "looking at the neighbours" as well :) Something like the attached picture would be nice. This is on the Domoticz forum and it is running phpBB forum software. However, I am not looking to move to different forum software. If this is included in some sort of upgrade to a new version that is fine. It would require some more test work from my end, but that's not a problem.
Title: Re: Add images to posts
Post by: Plantje on July 19, 2017, 05:10:48 AM
Oi.... seeing that this is moved to "Mod Requests". Does that mean this doesn't exist already? I can hardly be the first one to want this....am I?
Title: Re: Add images to posts
Post by: Shambles on July 19, 2017, 05:38:48 AM
Have a ganders at how imgbb does it, with their free javascript mod:

http://imgbb.com/mod

You may be able to tailor it to suit your web server.
Title: Re: Add images to posts
Post by: Steve on July 19, 2017, 08:48:08 AM
Does this do some of what you want?

https://custom.simplemachines.org/mods/index.php?mod=3770
Title: Re: Add images to posts
Post by: Plantje on July 23, 2017, 04:40:56 PM
Thank you all for the replies! I am going to test the last one on the acceptance test environment. Looks nice!
Title: Re: Add images to posts
Post by: Plantje on July 23, 2017, 05:24:40 PM
It doesn't seem flawless for now... For example I can't get the default size limitation to work.

Next to that auto change of the actual image (like done at Facebook for example) would be nice.
Title: Re: Add images to posts
Post by: Plantje on August 01, 2017, 04:52:51 PM
Been playing around with it some more, but the default size doesn't seem to work. I'll check the mod settings once more.

Edit: changed the settings more drastically. Works fine now! Thanks everyone for thinking along!
Title: Re: Add images to posts
Post by: Plantje on August 05, 2017, 04:53:19 AM
Ok, rolled it out to Production. Only thing that would be really nice is not to limit the size allowed for attachments, but just resize a picture automatically upon uploading. Is there a mod that does such a thing? Tried searching the mods, but didn't find it yet.
Title: Re: Add images to posts
Post by: @rjen on August 05, 2017, 05:30:20 AM
http://custom.simplemachines.org/mods/index.php?mod=2206
Title: Re: Add images to posts
Post by: Plantje on August 05, 2017, 05:38:58 AM
Thanks! Why didn't I find this myself? Searched for "attachment size". Seems I have to search for the exact text.

Anyway.... I will play around with it.
Title: Re: Add images to posts
Post by: @rjen on August 05, 2017, 07:04:39 AM
This topic comes along quite often recently, due the the 'Photobucket Challenge'

For a complete solution, just my two cents:
I am using two mods for some time om my forum, and these two in combination work quite well in replacing the need to image hosting services.

Mod 1:
https://custom.simplemachines.org/mods/index.php?mod=2206

Automatcally resizes any image attachement to the set size upon upload, with that keeping the file space uages to a minimum. As far as I can see the resize is done before the maximum attachment attachement sizes are checked, so no problem with uloading large pictures.

Tip: it also allows for setting an option for resizing existing attachments. With this activated any (previously) attached image that is displayed and is larger than the maximum image size, is also automatically resized.

Mod 2:
https://custom.simplemachines.org/mods/index.php?mod=3770

Allow to show the attachments in the post text where needed. Great add-on to the first mod, allowing users to include the attachment pictures in a thread if they want to.

These two mods make image hosting sites nearly redundant. The one mod you may want to consider in addition is this one:
https://custom.simplemachines.org/mods/index.php?mod=4087

I am not using it because I have very few users posting pictures 'rotated' but it might just be what you need to complete the solution.
Title: Re: Add images to posts
Post by: Illori on August 05, 2017, 08:21:11 AM
https://custom.simplemachines.org/mods/index.php?mod=4111 might not hurt to use as well to prevent topics from being unaccessible due to the attachment size.
Title: Re: Add images to posts
Post by: Plantje on August 05, 2017, 09:41:14 AM
Great work! Thanks for all those replies!

On my forum it has always been an issue to post images...mainly because the previous owner had limited the attachments to a maximum of two per post and the maximum size was very limited as well. Nowadays that is not really an issue anymore.

And yes, recently, Photobucket is an issue as well.