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]   Go Down

Author Topic: prefix on all images?  (Read 2974 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.017 seconds with 17 queries.