Community Add-Ons
Image_timeStamp
for osCommerce Online Merchant v2.2
Often times, if you have an old image on the shop, and you upload a new one that has the same name, osc will overwrite the image. We can't always remember the names of all of our images.
this little feature will simply put a time stamp on it. All images will have a different date on it, it won't repeat. it saves up to the very second.
instead of pic1.jpg
it reads
M-D-T-pic1.jpg
M-D-T (month day time)
Many thanks to Galen who took the hour out to help me figure out why it wouldn't work. I owe him coffee....
Trusten....
This file is a fix since the upload.php did not work with my RC1. Really though you don't need to download ANY of these files.
GOTO catalog/admin/includes/classes/upload.php
FIND: $this->set_filename($file['name']);
REPLACE WITH:
$now = date("YmdHis");
$this->set_filename($now . '-' . $file['name']);
YOU DONE. If its to complicated, I have attached the file. Just replace your upload.php provided you have never modified it.
