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 659 times)

Offline Chip (OP)

  • Server Admin
  • Hero Member
  • *****
  • Administrator
  • *****
  • Join Date: Dec 2014
  • Location: Australia
  • Posts: 6464
  • Reputation Power: 0
  • Chip has hidden their reputation power
  • Gender: Male
  • Last Login:Today at 05:57:05 AM
  • 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 »
I do not condone or support any illegal activities. All information is for theoretical discussion and wonder.
All activities discussed are considered fictional and hypothetical. Information of all discussion has been derived from online research and in the spirit of personal Freedom.

Offline Chip (OP)

  • Server Admin
  • Hero Member
  • *****
  • Administrator
  • *****
  • Join Date: Dec 2014
  • Location: Australia
  • Posts: 6464
  • Reputation Power: 0
  • Chip has hidden their reputation power
  • Gender: Male
  • Last Login:Today at 05:57:05 AM
  • 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 »
I do not condone or support any illegal activities. All information is for theoretical discussion and wonder.
All activities discussed are considered fictional and hypothetical. Information of all discussion has been derived from online research and in the spirit of personal Freedom.

Offline smfadmin

  • SMF (internal) Site
  • Administrator
  • Jr. Member
  • *****
  • Join Date: Dec 2014
  • Location: Management
  • Posts: 126
  • Reputation Power: 0
  • smfadmin has hidden their reputation power
  • Last Login:June 14, 2021, 04:00:12 PM
  • 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 = '';
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