Make module Image Compressor work again in CMSMS 2.2.x?
Posted: Wed Jan 11, 2023 8:40 am
Would anybody be willing to make the useful module "Image Compressor" work again?
http://dev.cmsmadesimple.org/projects/imagecompressor
I tried to replace the old coding in class.imagecompressor_utils.php
with the new api addresses
and in action.ajax.php
with the new api addresses
which used to work in the CMSMS 1.x versions
But no luck in CMSMS 2.2.x
I also removed the (obsolete?) coding in function.admin_imagelist_tab.php as it gave me a fatal error and the variable "$admintheme" seems not to be used anywhere:
Althought jquery is available and also being processed, it seems "action.ajax.php" is not triggered somehow
http://dev.cmsmadesimple.org/projects/imagecompressor
I tried to replace the old coding in class.imagecompressor_utils.php
Code: Select all
const SMUSHIT_API_URL = 'http://www.smushit.com/ysmush.it/ws.php?img=%s';Code: Select all
const SMUSHIT_API_URL = 'http://api.resmush.it/ws.php?img=%s';Code: Select all
if(strpos($source, 'http://ysmushit.zenfs.com/results') !== 0)Code: Select all
if(strpos($source, 'resmush.it/output') !== 0)But no luck in CMSMS 2.2.x
I also removed the (obsolete?) coding in function.admin_imagelist_tab.php as it gave me a fatal error and the variable "$admintheme" seems not to be used anywhere:
Code: Select all
$admintheme = cmsms()->get_variable('admintheme');