Advertisement:

Author Topic: Image Attachment Thumbnail View  (Read 393 times)

Online GL700Wing

  • Full Member
  • ***
  • Posts: 607
  • Gender: Female
Image Attachment Thumbnail View
« on: January 10, 2021, 08:59:39 PM »
Link to Mod

Image Attachment Thumbnail View

Thumbnail View of Images in Admin Center/Member Profiles and Unapproved Attachments for Moderators

By default only links are shown for image attachments accessed via Administration Center >> Attachments and Avatars >> Browse Files and Profile of Member >> Show Posts >> Attachments.  In addition, only filenames are shown for unapproved attachments accessed via Moderation Center >> Unapproved Attachments.


Administration Center:
This mod provides the option to display a thumbnail sized (ie, max 150px x 150px) view of all image attachments (ie, attachments, avatars and thumbnails) above the download link.

The option is enabled/disabled via the 'Display thumbnail view of image attachments in Admin Center' setting in Administration Center >> Attachments and Avatars >> Attachment Settings.


Attachments in Member Profiles:
This mod provides the option for Admins and/or members to see a thumbnail sized (ie, max 150px x 150px) view of image attachments above the download link.

These options are enabled/disabled via the 'Allow Admins to see a thumbnail view of image attachments in member profiles' and 'Allow members to see a thumbnail view of image attachments in member profiles' settings in Administration Center >> Attachments and Avatars >> Attachment Settings.


Moderation Center:
In addition to also providing the same option for unapproved attachments for moderators this mod also adds download links for ALL types of unapproved attachments.  (Note: Download links will be displayed even if the thumbnail view is disabled).

The option to display a thumbnail sized (ie, max 150px x 150px) view of unapproved image attachments is enabled/disabled via the 'Display thumbnail view of unapproved image attachments' setting in Moderation Center >> Change Settings.



License
Copyright 2020 Kathy Leslie

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Life doesn't have to be perfect to be wonderful ...

Offline GigaWatt

  • The Smiley Guy
  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,284
  • Gender: Male
    • MechDR on GitHub
    • Macedonian electronics forum
Re: Image Attachment Thumbnail View
« Reply #1 on: January 11, 2021, 09:18:44 AM »
Oh, this is really nice :). Good work :) ;).
"This is really a generic concept about human thinking - when faced with large tasks we're naturally inclined to try to break them down into a bunch of smaller tasks that together make up the whole."

"A 500 error loosely translates to the webserver saying, "WTF?"..."

Offline Steve

  • Freak
  • Support Specialist
  • SMF Hero
  • *
  • Posts: 4,631
  • Gender: Male
  • I have not yet begun to procrastinate.
Re: Image Attachment Thumbnail View
« Reply #2 on: January 13, 2021, 07:22:33 AM »
Won't install on versions prior to 2.0.17?
My goal this week is to move just enough so people don't think I'm dead.

Please do not PM me for support. You'll get quicker answers in the appropriate support boards.

Online GL700Wing

  • Full Member
  • ***
  • Posts: 607
  • Gender: Female
Re: Image Attachment Thumbnail View
« Reply #3 on: January 13, 2021, 02:15:33 PM »
Won't install on versions prior to 2.0.17?
I haven't tested it on earlier versions so I don't know if/how it will install/work with them - I'll test it with some previous versions within the next few days and let you know.
Life doesn't have to be perfect to be wonderful ...

Offline Steve

  • Freak
  • Support Specialist
  • SMF Hero
  • *
  • Posts: 4,631
  • Gender: Male
  • I have not yet begun to procrastinate.
Re: Image Attachment Thumbnail View
« Reply #4 on: January 13, 2021, 04:29:21 PM »
Thanks GL. Appreciate it. :)
My goal this week is to move just enough so people don't think I'm dead.

Please do not PM me for support. You'll get quicker answers in the appropriate support boards.

Offline wylekk

  • Semi-Newbie
  • *
  • Posts: 47
  • Gender: Male
    • WYLEK.RU
Re: Image Attachment Thumbnail View
« Reply #5 on: January 14, 2021, 01:39:48 AM »
Hi. For the SMF 2.1 RC3 forum will the mod be adapted?

Online GL700Wing

  • Full Member
  • ***
  • Posts: 607
  • Gender: Female
Re: Image Attachment Thumbnail View
« Reply #6 on: January 14, 2021, 06:29:17 PM »
Hi. For the SMF 2.1 RC3 forum will the mod be adapted?
I don't know but I will find out and let you know.
Life doesn't have to be perfect to be wonderful ...