Advertisement:

Author Topic: Add images to posts  (Read 1821 times)

Offline Plantje

  • Semi-Newbie
  • *
  • Posts: 73
  • Gender: Male
  • Running version 2.0.11
    • Vliegvissers.nl
Add images to posts
« 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:
  • 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.

Offline Plantje

  • Semi-Newbie
  • *
  • Posts: 73
  • Gender: Male
  • Running version 2.0.11
    • Vliegvissers.nl
Re: Add images to posts
« Reply #1 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?

Offline Shambles

  • SMF Hero
  • ******
  • Posts: 5,145
  • Gender: Male
    • i30 Owners Club
Re: Add images to posts
« Reply #2 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.

Offline Steve

  • Freak
  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,499
  • Gender: Male
  • I have not yet begun to procrastinate.
Re: Add images to posts
« Reply #3 on: July 19, 2017, 08:48:08 AM »
Online Manual

Please do not PM me for support.

Offline Plantje

  • Semi-Newbie
  • *
  • Posts: 73
  • Gender: Male
  • Running version 2.0.11
    • Vliegvissers.nl
Re: Add images to posts
« Reply #4 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!

Offline Plantje

  • Semi-Newbie
  • *
  • Posts: 73
  • Gender: Male
  • Running version 2.0.11
    • Vliegvissers.nl
Re: Add images to posts
« Reply #5 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.

Offline Plantje

  • Semi-Newbie
  • *
  • Posts: 73
  • Gender: Male
  • Running version 2.0.11
    • Vliegvissers.nl
Re: Add images to posts
« Reply #6 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!
« Last Edit: August 01, 2017, 05:10:04 PM by Plantje »

Offline Plantje

  • Semi-Newbie
  • *
  • Posts: 73
  • Gender: Male
  • Running version 2.0.11
    • Vliegvissers.nl
Re: Add images to posts
« Reply #7 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.

Offline @rjen

  • Full Member
  • ***
  • Posts: 465
  • Gender: Male
Running SMF 2.0 with Tinyportal 1.6.3 at www.fjr-club.nl
Testing SMF 2.1 RC2 with Tinyportal 1.6.4 at http://test2.fjr-club.nl/

Offline Plantje

  • Semi-Newbie
  • *
  • Posts: 73
  • Gender: Male
  • Running version 2.0.11
    • Vliegvissers.nl
Re: Add images to posts
« Reply #9 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.

Offline @rjen

  • Full Member
  • ***
  • Posts: 465
  • Gender: Male
Re: Add images to posts
« Reply #10 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.
Running SMF 2.0 with Tinyportal 1.6.3 at www.fjr-club.nl
Testing SMF 2.1 RC2 with Tinyportal 1.6.4 at http://test2.fjr-club.nl/

Offline Illori

  • Project Manager
  • SMF Legend
  • *
  • Posts: 51,028
Re: Add images to posts
« Reply #11 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.

Offline Plantje

  • Semi-Newbie
  • *
  • Posts: 73
  • Gender: Male
  • Running version 2.0.11
    • Vliegvissers.nl
Re: Add images to posts
« Reply #12 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.