Advanced search  

News:

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

Pages: [1]   Go Down

Author Topic: prefix on all images?  (Read 2968 times)

0 Members and 1 Guest are viewing this topic.

lilleman

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
prefix on all images?
« on: February 21, 2005, 12:52:52 pm »

is there a way to get a prefix on all the images?
not just only the thumb and intermediate ones
so it would be like:
thumb_pic.jpg normal_pic.jpg and full_pic.jpg or similar

ive done some searching but didnt find anything on this

//lilleman
« Last Edit: February 22, 2005, 09:19:53 am by GauGau »
Logged

Abbas Ali

  • Administrator
  • Coppermine addict
  • *****
  • Country: in
  • Offline Offline
  • Gender: Male
  • Posts: 2165
  • Spread the PHP Web
    • Ranium Systems
Re: prefix on all images?
« Reply #1 on: February 21, 2005, 01:27:08 pm »

You will need to edit upload.php file

Find all the occurences of

Code: [Select]
$escrow_array[] = array('actual_name'=>$picture_alias, 'temporary_name'=>$tempname);

and replace with

Code: [Select]
$escrow_array[] = array('actual_name'=>'full_'.$picture_alias, 'temporary_name'=>$tempname);

This is only full upload.php, for batch add you will need to edit searchnew.php and do something similar.

Same thing can be set in config so that you can edit it from config.php like you do for thumbnail prefix and normal prefix. It will require to modify lang file, upload.php add a record in config table of database.
Logged
Chief Geek at Ranium Systems

lilleman

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Re: prefix on all images?
« Reply #2 on: February 21, 2005, 01:30:38 pm »

thanks alot for your fast reply
i think i can manage to get this... just needed a starting point

//lilleman
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 20 queries.