Advanced search  

News:

cpg1.5.46 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter recently discovered vulnerabilities. It is important that all users who run version cpg1.5.44 or older update to this latest version as soon as possible.
[more]

Pages: [1] 2 3   Go Down

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

0 Members and 1 Guest are viewing this topic.

Αndr

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15415
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: 15415
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

Franois Keller

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 9097
  • 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: 15415
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: 15415
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: 15415
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: 15415
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: 15415
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: 15415
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: 15415
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: 15415
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: 15415
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: 15415
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.019 seconds with 21 queries.