prefix on all images? prefix on all images?
 

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

Main Menu

prefix on all images?

Started by lilleman, February 21, 2005, 12:52:52 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

lilleman

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

Abbas Ali

You will need to edit upload.php file

Find all the occurences of


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


and replace with


$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.
Chief Geek at Ranium Systems

lilleman

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

//lilleman