Posted: Fri Jul 22, 2005 1:11 am Post subject: Bad Hyperlinks Using Web Photo Gallery and Long Filenames
I'm using the Horizontal slideshow style and I think I've isolated the problem down to this bit of code in the ThumbnailsFrame.htm file that's generated by Web Photo Gallery:
When using long filenames with pshop cs2 on Mac OSX, the filenames are truncated to less than 31 characters. When its truncated, the last 4 or 5 digits are converted to a unique serial number preceeded by the "#" symbol (which the computer sees as %23). That's all well and good until the bit of javascript above tries to convert the %xx to literal symbols. It does it just fine for spaces (%20), but it has nothing built into it for the "#" sign (%23). Unfortunatley, this results in unusable thumbnail hyperlinks in the generated thumbnail web page.
I've searched this forum and several others and find it hard to believe that I'm the first to run into this problem. Does anyone have a solution for this problem? Can you "nest" 'replaceCharacter' functions inside each other to do multiple search and replaces? I tried this myself with my best guess at the syntax (I don't know javascript) but it didn't work. Will the syntax of 'replaceCharacter' support multiple replacements?
Any help or workaround (aside from renaming the long filenames) would be greatly appreciated. Thank you!
Oh well, was hoping someone here might know the answer to make life a bit easier for me . I ended up spending some time and figuring it out myself. If anyone else runs into the same problem, here's the relevant bit of code that allows for long filenames using OSX Web Photo Gallery:
As mentioned previously, the code appears towards the bottom of the ThumbnailFrame.htm file (which is generated by Web Photo Gallery). You have to make the 2 changes above for each thumbnail in your gallery. As Sean mentioned, a global search and replace is a quick way to make the change.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum