dopetalk does not endorse any advertised product nor does it accept any liability for it's use or misuse

This website has run out of funding so feel free to contribute if you can afford it (see footer)

Author Topic: Resize Attached Images  (Read 2915 times)

Offline Chip (OP)

  • Server Admin
  • Hero Member
  • *****
  • Administrator
  • *****
  • Join Date: Dec 2014
  • Location: Australia
  • Posts: 6648
  • Reputation Power: 0
  • Chip has hidden their reputation power
  • Gender: Male
  • Last Login:Yesterday at 05:53:23 PM
  • Deeply Confused Learner
  • Profession: IT Engineer
Resize Attached Images
« on: December 18, 2015, 06:05:40 AM »
http://custom.simplemachines.org/mods/index.php?mod=2206

installed ... navigate via: Admin > Forum > Attachments and Avatars > Attachment Settings
« Last Edit: December 18, 2015, 08:40:46 AM by chipper »
friendly
0
funny
0
informative
0
agree
0
disagree
0
like
0
dislike
0
No reactions
No reactions
No reactions
No reactions
No reactions
No reactions
No reactions
Our Discord Server invitation link is https://discord.gg/jB2qmRrxyD

Offline Chip (OP)

  • Server Admin
  • Hero Member
  • *****
  • Administrator
  • *****
  • Join Date: Dec 2014
  • Location: Australia
  • Posts: 6648
  • Reputation Power: 0
  • Chip has hidden their reputation power
  • Gender: Male
  • Last Login:Yesterday at 05:53:23 PM
  • Deeply Confused Learner
  • Profession: IT Engineer
Re: Resize Attached Images
« Reply #1 on: December 18, 2015, 08:27:40 AM »
this kicks in when pics are either attached/uploaded or even when viewed

« Last Edit: May 30, 2021, 04:58:05 PM by Chip »
friendly
0
funny
0
informative
0
agree
0
disagree
0
like
0
dislike
0
No reactions
No reactions
No reactions
No reactions
No reactions
No reactions
No reactions
Our Discord Server invitation link is https://discord.gg/jB2qmRrxyD

Offline smfadmin

  • SMF (internal) Site
  • Administrator
  • Jr. Member
  • *****
  • Join Date: Dec 2014
  • Location: Management
  • Posts: 133
  • Reputation Power: 0
  • smfadmin has hidden their reputation power
  • Last Login:October 29, 2023, 06:02:36 AM
  • Supplied Install Member
Re: Resize Attached Images
« Reply #2 on: May 30, 2021, 05:26:33 PM »
PHP 7.4 changes required for this mod: Resize Attached Images   (final)

error:
Code: [Select]
8: Trying to access array offset on value of type bool
File: /var/www/html/Sources/Subs-Post.php
Line: 2322

in ./Sources/Subs-Post.php (at/near line 2322):

find:
Code: [Select]
                if (!empty($size['mime']))
                        $mime = $size['mime'];
                elseif (isset($validImageTypes[$size[2]]))
                        $mime = 'image/' . $validImageTypes[$size[2]];
                else
                        $mime = '';

replace:
Code: [Select]
                if (!empty($size['mime']))
                        $mime = $size['mime'];
                elseif  ($size != false) {
                                if (isset($validImageTypes[$size[2]]))
                                $mime = 'image/' . $validImageTypes[$size[2]];
                                else
                                        $mime = '';
                        }
                else
                        $mime = '';
friendly
0
funny
0
informative
0
agree
0
disagree
0
like
0
dislike
0
No reactions
No reactions
No reactions
No reactions
No reactions
No reactions
No reactions
measure twice, cut once

Tags:
 


dopetalk does not endorse any advertised product nor does it accept any liability for it's use or misuse





TERMS AND CONDITIONS

In no event will d&u or any person involved in creating, producing, or distributing site information be liable for any direct, indirect, incidental, punitive, special or consequential damages arising out of the use of or inability to use d&u. You agree to indemnify and hold harmless d&u, its domain founders, sponsors, maintainers, server administrators, volunteers and contributors from and against all liability, claims, damages, costs and expenses, including legal fees, that arise directly or indirectly from the use of any part of the d&u site.


TO USE THIS WEBSITE YOU MUST AGREE TO THE TERMS AND CONDITIONS ABOVE


Founded December 2014
SimplePortal 2.3.6 © 2008-2014, SimplePortal