Add images to posts

Started by Plantje, July 19, 2017, 03:06:21 AM

Previous topic - Next topic

Plantje

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:

  • Allow the user to browse to a picture on his own device
  • Allow the user to upload the picture to my web server
  • Provide me with tools as to where the pictures get uploaded to
  • Automatically size the picture to acceptable size so the thread does not get distorted with all sorts of scroll bars
  • After uploading immediately place the picture inline in the thread

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.

Plantje

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?

Shambles

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.

Steve

DO NOT pm me for support!

Plantje

Thank you all for the replies! I am going to test the last one on the acceptance test environment. Looks nice!

Plantje

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.

Plantje

#6
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!

Plantje

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.

@rjen

Running SMF 2.1 with latest TinyPortal at www.fjr-club.nl

Plantje

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.

@rjen

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.
Running SMF 2.1 with latest TinyPortal at www.fjr-club.nl

Illori

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.

Plantje

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.

Advertisement: