File Replacer for cpg1.5.x File Replacer for cpg1.5.x
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

File Replacer for cpg1.5.x

Started by Αndré, July 07, 2009, 03:34:14 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Αndré

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 from the cpg1.4.x plugin 'File replacement' created by Nibbler.

Αndré

Version 1.2 currently has English and German output.

François Keller

attached french lang file
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

Αndré


Αndré

Version 1.3 adds a checkbox to update the timestamp of the replaced file.

Αndré

Version 1.5 visually integrates to the new file menu (buttonlist).

thapame

#6
Hi,

This plug-in doesn't work properly with Remote videos for cpg1.5.x  [ http://forum.coppermine-gallery.net/index.php/topic,60195.0.html ] plugin.
I am getting an error message "The selected album/file does not exist!"

[Edit: Enabled clickable link]

Αndré

Quote from: thapame on July 08, 2010, 02:08:24 AM
This plug-in doesn't work properly with Remote videos for cpg1.5.x
Works for me as expected. Please enable debug mode, post a link to your gallery, post a test user account and elaborate when the error occurs (what type of file do you try to replace, does the error occurs when you click on the replace button or when you try to upload the new file?).

GameX32

Hello. I think this is very nice plugin, but it doesn't work for my cpg158. I enable debug mode but it tell nothing more than:

"\include\functions.inc.php
•Notice line 184: Undefined index: dbcharset"

It show new icon in menu, i press button, chouse new file(should it be same name?) and upload. Some time and i see old picture. Also i can do russian language file but i don't know how to share it.

Αndré

Quote from: GameX32 on November 26, 2010, 09:14:14 AM
Some time and i see old picture
Clear your browser cache.


Quote from: GameX32 on November 26, 2010, 09:14:14 AM
i can do russian language file but i don't know how to share it.
Attach it as zip file to your next reply.

GameX32

Russian lang file.

GameX32

I browser cache - nothing change. Also i view file throw FTP - no change.

Αndré


Αndré

Please post a link to your gallery and a (non-admin) test user account which can upload pictures.

GameX32

Link: cpg158.komptech68.com
User: Inspector
Pass: Outspector

I created one user album.

Αndré

Please update the plugin with this package by replacing the old files with the new ones. It has an additional check if something wents wrong. Maybe we can find out what exactly happens with the error message (if it occurs).

GameX32


Αndré

The error message I expected:
QuoteThere was an error moving the file 'C:WindowsTempphpBF83.tmp' to its destination 'albums/userpics/10002/Sun.jpg'


That's exactly the same issue that user has. Please have a look at that thread. I don't know why it happens. Maybe we can find a fix together.

GameX32

I'm not php expert, but we can try.

In line 63 $fileupload['tmp_name'] - where 'tmp_name' - generates or creates. There are no any other places in file with 'tmp_name'.

Αndré

The backslashes ('\') are stripped from file names on windows servers in tmp_name. That needs to be fixed, but I'm currently stuck.