Advanced search  

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

Pages: [1] 2 3   Go Down

Author Topic: File Replacer for cpg1.5.x  (Read 83013 times)

0 Members and 1 Guest are viewing this topic.

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
File Replacer for cpg1.5.x
« on: July 07, 2009, 03:34:14 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 from the cpg1.4.x plugin 'File replacement' created by Nibbler.
« Last Edit: April 10, 2013, 02:33:13 pm by Αndré »
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: File Replacer for cpg1.5.x
« Reply #1 on: December 30, 2009, 11:02:54 am »

Version 1.2 currently has English and German output.
Logged

François Keller

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 9094
  • aka Frantz
    • Ma galerie
Re: File Replacer for cpg1.5.x
« Reply #2 on: December 30, 2009, 12:23:14 pm »

attached french lang file
Logged
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é

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: File Replacer for cpg1.5.x
« Reply #3 on: December 30, 2009, 01:55:41 pm »

Thanks. Added to svn.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: File Replacer for cpg1.5.x
« Reply #4 on: January 12, 2010, 04:47:16 pm »

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

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: File Replacer for cpg1.5.x
« Reply #5 on: March 12, 2010, 02:11:59 pm »

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

thapame

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 72
Re: File Replacer for cpg1.5.x
« Reply #6 on: July 08, 2010, 02:08:24 am »

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]
« Last Edit: July 08, 2010, 02:26:40 am by onthepike »
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: File Replacer for cpg1.5.x
« Reply #7 on: July 08, 2010, 08:27:42 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?).
Logged

GameX32

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 12
    • Çàðàáîòîê â ñåòè èíòåðíåò
Re: File Replacer for cpg1.5.x
« Reply #8 on: November 26, 2010, 09:14:14 am »

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.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: File Replacer for cpg1.5.x
« Reply #9 on: November 26, 2010, 09:19:46 am »

Some time and i see old picture
Clear your browser cache.


i can do russian language file but i don't know how to share it.
Attach it as zip file to your next reply.
Logged

GameX32

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 12
    • Çàðàáîòîê â ñåòè èíòåðíåò
Re: File Replacer for cpg1.5.x
« Reply #10 on: November 26, 2010, 10:53:03 am »

Russian lang file.
Logged

GameX32

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 12
    • Çàðàáîòîê â ñåòè èíòåðíåò
Re: File Replacer for cpg1.5.x
« Reply #11 on: November 26, 2010, 10:54:12 am »

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

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: File Replacer for cpg1.5.x
« Reply #12 on: November 26, 2010, 10:55:25 am »

Russian lang file.
Thanks. Added in svn revision 8082.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: File Replacer for cpg1.5.x
« Reply #13 on: November 26, 2010, 10:57:00 am »

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

GameX32

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 12
    • Çàðàáîòîê â ñåòè èíòåðíåò
Re: File Replacer for cpg1.5.x
« Reply #14 on: November 26, 2010, 11:01:51 am »

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

I created one user album.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: File Replacer for cpg1.5.x
« Reply #15 on: November 26, 2010, 11:12:03 am »

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).
Logged

GameX32

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 12
    • Çàðàáîòîê â ñåòè èíòåðíåò
Re: File Replacer for cpg1.5.x
« Reply #16 on: November 26, 2010, 11:17:27 am »

Done.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: File Replacer for cpg1.5.x
« Reply #17 on: November 26, 2010, 11:23:22 am »

The error message I expected:
Quote
There 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.
Logged

GameX32

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 12
    • Çàðàáîòîê â ñåòè èíòåðíåò
Re: File Replacer for cpg1.5.x
« Reply #18 on: November 26, 2010, 11:28:29 am »

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'.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: File Replacer for cpg1.5.x
« Reply #19 on: November 26, 2010, 11:30:54 am »

The backslashes ('\') are stripped from file names on windows servers in tmp_name. That needs to be fixed, but I'm currently stuck.
Logged
Pages: [1] 2 3   Go Up
 

Page created in 0.027 seconds with 19 queries.