Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Hacks and Modifications

Post Reply
 
Thread Tools
  #11  
Old 06-16-2007, 06:42 PM
apoc Offline
pp regular
 
Join Date: Aug 2006
Location: Toronto ON
Posts: 29
I added this to replace spaces with underscores and add an underscore to the end of the title:

Code:
$headline_r = str_replace(' ', '_', $headline) . '_';
Then added the new headline variable to $uploadfile
Code:
$uploadfile = $upload_dir .$time_stamp_r . $headline_r .$userfile;
and the same thing to $filnamn
Code:
$filnamn = $time_stamp_r . $headline_r . $filnamn;
__________________
http://www.apocalyps.ca - Shutters Photoblog
Reply With Quote
  #12  
Old 06-16-2007, 07:46 PM
Dkozikowski's Avatar
Dkozikowski+ Offline
Team Pixelpost
 
Join Date: Oct 2005
Posts: 1,855
Send a message via AIM to Dkozikowski
Yup, that works. Just be careful with the other special characters.

What's the reason you wanted the title in the file? Search results?
Reply With Quote
  #13  
Old 06-16-2007, 11:45 PM
apoc Offline
pp regular
 
Join Date: Aug 2006
Location: Toronto ON
Posts: 29
Yea, i noticed Google image results only worked for the photos where i manually put the title in the filename and I stopped doing that a while ago, so this should help.
__________________
http://www.apocalyps.ca - Shutters Photoblog
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 06:54 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs