forum.coppermine-gallery.net

Support => cpg1.6 plugins => cpg1.6.x Support => cpg1.6 plugin contributions => Topic started by: Αndré on August 25, 2017, 12:41:30 pm

Title: File Replacer for cpg1.6.x
Post by: Αndré on August 25, 2017, 12:41:30 pm
This plugin will allow you and your users to replace files in your gallery with new ones. Installation is via the plugin manager, and will display a new button under the file in the intermediate/displayimage.php view.

This plugin is a port of the plugin "File Replacer for cpg1.5.x (http://forum.coppermine-gallery.net/index.php/topic,60499.0.html)".

Title: Re: File Replacer for cpg1.6.x
Post by: Αndré on May 10, 2019, 03:34:29 pm
Version 1.10 fixes possible issues under certain conditions (there where at least an issue if watermark enable and another one with existing backup files).
Title: Re: File Replacer for cpg1.6.x
Post by: Sweetener on July 20, 2019, 10:53:18 pm
I made the translation for spanish users...
Title: Re: File Replacer for cpg1.6.x
Post by: zuckelpart on December 09, 2019, 03:15:30 am
Here is a translation for Estonian users.
Title: Re: File Replacer for cpg1.6.x
Post by: FrA1l3 on December 09, 2019, 12:08:05 pm
Thanks for the work, it works perfect and is very useful. Until now it was a bit difficult to replace an image alone. It was mandatory in my case to change the name because if it did not work well
Title: Re: File Replacer for cpg1.6.x
Post by: spun on February 06, 2020, 09:58:31 pm
Hi I just installed the plugin in Coppermine 1.6.07

If I want to replace a file now I always get an error:

Quote
Error
The selected album or file does not exist!

Can someone help me there?

greetings spun
Title: Re: File Replacer for cpg1.6.x
Post by: spun on February 06, 2020, 10:33:05 pm
I have found the Problem  :D
Title: Re: File Replacer for cpg1.6.x
Post by: altenae on October 05, 2021, 02:47:44 pm
Not working anymore in PHP 8
Hopefully someon is able to fix this

Fatal error: Uncaught TypeError: imagesx(): Argument #1 ($image) must be of type GdImage, bool given in /include/imageobject_gd.class.php:465 Stack trace: #0 /include/imageobject_gd.class.php(465): imagesx(false) #1 /include/picmgmt.inc.php(229): imageObject->resize_added_image('albums/userpics...', '250', 'gd2', 'any', 1, 1) #2 /plugins/file_replacer/codebase.php(105): resize_image('albums/userpics...', 'albums/userpics...', '250', 'gd2', 'any', 'false', 1) #3 /include/plugin_api.inc.php(310): file_replacer_page_start(Array) #4 /include/init.inc.php(436): CPGPluginAPI::action('page_start', Array) #5 displayimage.php(22): require('/customers/9/f/...') #6 {main} thrown in /include/imageobject_gd.class.php on line 465
Title: Re: File Replacer for cpg1.6.x
Post by: altenae on October 05, 2021, 02:50:53 pm
Never  mind my mistake...