WebmasterSite.net: PHP scripts to enable your creativity
WSN Links PHP Directory Software
PHP Scripts Webmaster Links Support Forums


Incorrect thumbnails
Duplicate image names is causing the wrong thumbna

Version: 2.3.7
Example URL: http://urbanlines.net/gallery/index.php?action=displaycat&catid=103&page=3
printPrint


Incorrect thumbnails
Ducnan Clarke
Member
Avatar

Usergroup: Member
Joined: Dec 19, 2003
Location: Stoke, UK
Total Topics: 7
Total Posts: 20
Posted 11/10/06 - 03:53 PM:
quote post
#1
It looks to me like I uploaded an image when using an older version of WSN Gallery and an image with the same name using the current version and it's having trouble. I assume that because the newer version renames to .wsn and the old version kept the .jpg they use the same thumbnail name.

Don't know if there's anything that can be done about this or even if it is worth the effort. Would it be possible as a workaround to just rename one of the files and edit the database to match, or are the file names held anywhere else?

Cheers

_____________________
See my galleries at
- http://urbanlines.net
- http://bugrunners.co.uk
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 5796
Posted 11/13/06 - 03:08 AM:
quote post
#2
When two attachments have the same file name in the same WSN Gallery the thumbnails end up being the same, because the caching mechanism can't distinguish them. I'll look into putting the attachment ids in the cache file names to make them more unique, but for now renaming is the only workaround.

Edit: Fixed for 3.0.0 but it probably won't be available for a couple weeks.

Edited by Paul on 11/13/06 - 03:49 AM

_____________________
"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founcer of Red Hat
Ducnan Clarke
Member
Avatar

Usergroup: Member
Joined: Dec 19, 2003
Location: Stoke, UK
Total Topics: 7
Total Posts: 20
Posted 11/13/06 - 10:40 AM:
quote post
#3
Cheers for the info. Will get around to renaming then...

_____________________
See my galleries at
- http://urbanlines.net
- http://bugrunners.co.uk
Search thread for
Download thread as


You don't have permission to post.

Please login or register.

   
 
© 2008 Paul Knierim. All rights reserved.