forum.coppermine-gallery.net

Support => Older/other versions => cpg1.3.x Support => Topic started by: lilleman on February 21, 2005, 12:52:52 pm

Title: prefix on all images?
Post by: lilleman 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
Title: Re: prefix on all images?
Post by: Abbas Ali 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.
Title: Re: prefix on all images?
Post by: lilleman 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