PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Photopost Pro How Do I...? (http://www.photopost.com/forum/photopost-pro-how-do-i/)
-   -   Add user number to file name (http://www.photopost.com/forum/photopost-pro-how-do-i/125041-add-user-number-file-name.html)

kwrd May 17th, 2006 11:07 PM

Add user number to file name
 
Awhile back (over a year ago), our version of PhotoPost would add the member number to the beginning of a filename when they uploaded their files. So for example, if user #9 uploaded a photo named "test.gif", the filename would end up being "9test.gif". The newer versions of PhotoPost don't do that anymore. How can I change it so it goes back to appending the number to the beginning of the file name?

Recently we've had a few occasions when 2 members tried to each upload a photo that happened to be the same file name (at approximately the same time) -- and one member's photo ended up overwriting the other's. (So member A's photo was showing up in member B's gallery!) We're thinking if the usernumber was appended to the filename again, it would eliminate this from happening.

Chuck S May 18th, 2006 07:00 AM

If a photo is uploaded with the same name as a photo that already exists then the photo is renamed with a number prepended on the end.

If you would like to prepend the userid onto files you may post questions in the mod corner on code modification as we support our files as they are distributed.

kwrd May 18th, 2006 08:22 AM

Usually it does that -- but we've had a few instances where they uploaded the same file name at the same time -- and that's when the problem comes in. (It seems like it would be a rare occasion but it's happened several times now.)

kwrd May 26th, 2006 06:22 AM

I haven't gotten any assistance in the Mods area, so can you please direct me to which PhotoPost file determines the filename (so I know which file I need to update)?

Also, are past versions of PhotoPost available for download? Maybe if I look at the code from previous versions (where the user number was made part of the filename), I could use that to figure this out...

Chuck S May 26th, 2006 07:05 AM

There is no past code versions for download no. Most of the filenaming is within uploadphoto.php bulkupload.php and image-inc.php


All times are GMT -5. The time now is 04:08 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97