PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |
Old June 4th, 2008, 10:25 PM   #1 (permalink)
Member
Verified Customer
 
Join Date: Dec 2005
Posts: 118
Force gallery to rename

I've been trying to get the gallery to rename the image files all the time when there's an upload.

I've tried this with limited sucess: http://www.photopost.com/forum/vbgal...ndom-name.html


What seems to be happening is the filename is going through the random number generation twice. So I end up with a filename of "XXXXX_random_random.gif"... So that mod doesn't really work.

The wierd part of that, is that the thumbnail is created the way it should be. It's just the file name.

I was thinking, there should be a way to just toggle the logic..

If I take this line:

Code:
Content visible to verified customers only.
And remove change it to this:

Code:
Content visible to verified customers only.
Basically toggling the if exists line, it should auto generate a random name. However every method I try, it generates the name twice..

So when I upload a file "test.jpg", I end up with "test_544343_525348.jpg". It appears it's getting sent through it twice.

Is there an easy way to force the gallery to rename every upload??
ski-whiz is offline   Reply With Quote
Old June 12th, 2008, 01:23 PM   #2 (permalink)
Registered User
 
Zachariah's Avatar
 
Join Date: Nov 2005
Location: Canoga Park, CA
Posts: 3,244
Send a message via ICQ to Zachariah Send a message via AIM to Zachariah Send a message via MSN to Zachariah Send a message via Skype™ to Zachariah
http://www.photopost.com/forum/vbgal...ndom-name.html
Zachariah is offline   Reply With Quote
Old June 13th, 2008, 12:33 PM   #3 (permalink)
Member
Verified Customer
 
Join Date: Dec 2005
Posts: 118
It seems that method is falling victim to the same issue I am above. It's creating a second random md5 number..

So I think there's a process I'm missing which is causing it to get generated again..
ski-whiz is offline   Reply With Quote
Old June 16th, 2008, 02:19 PM   #4 (permalink)
Member
Verified Customer
 
Join Date: Dec 2005
Posts: 118
bump....
ski-whiz is offline   Reply With Quote
Old June 16th, 2008, 10:44 PM   #5 (permalink)
Registered User
 
Zachariah's Avatar
 
Join Date: Nov 2005
Location: Canoga Park, CA
Posts: 3,244
Send a message via ICQ to Zachariah Send a message via AIM to Zachariah Send a message via MSN to Zachariah Send a message via Skype™ to Zachariah
I'll do some more testing. It should not of ran 2 times.
What PHP version are you running ?
Zachariah is offline   Reply With Quote
Old June 17th, 2008, 05:09 PM   #6 (permalink)
Member
Verified Customer
 
Join Date: Dec 2005
Posts: 118
I'm running PHP Version 5.2.4..

Here's an example of what it's doing:

Test - tttestttttt Animated Gif Dump

Just so you can see that it seems to be running through twice (well, physically the name is only ran once, but the filename stored for that image shows it ran through twice)...

Here's the actual filename that is stored in the filesystem:
http://www.sitexperience.com/gifdump...1afd0c7de5.gif
ski-whiz is offline   Reply With Quote
Old June 20th, 2008, 12:43 PM   #7 (permalink)
Member
Verified Customer
 
Join Date: Dec 2005
Posts: 118
Zachariah,

Have you had any luck with this?

Maybe someone else could help me with this.

I can read and understand some of the code. I just can't find out where and why it seems to be going through twice.

I'm trying to get this portion of my site open, and this is holding it up..

So I'm getting desperate for help.....
ski-whiz is offline   Reply With Quote
Old June 27th, 2008, 01:16 PM   #8 (permalink)
Member
Verified Customer
 
Join Date: Dec 2005
Posts: 118
Zach must be on vacation..
ski-whiz is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Bulk rename? topmedic Photopost Pro How Do I...? 3 January 14th, 2008 01:42 PM
Force specific vBulletin style to gallery? Absurdum Photopost Pro How Do I...? 2 February 13th, 2007 11:13 AM
Is it possible to rename *photo.php? Johnny Doomo General Discussion 4 January 16th, 2006 08:18 PM


All times are GMT -5. The time now is 02:57 AM.

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