Gallery Photo Titles
Suggestions
I have a gallery called "Bryan's Memes". The URL is "bryan/gallery/bryans-memes/all" which is great. Jamroom "gracefully" strips out the apostrophe.
However, inside this gallery I have an uploaded image called "HERE'S JOHNNY.jpg". I am seeing two different URLs for that page. One is "bryan/gallery/14/HERE%27S-JOHNNY.jpg". The other is "bryan/gallery/14/HERE'S-JOHNNY.jpg". They both work. I know they are actually the same URL, but jamroom has both instances referenced on a page. I also have URLs with commas.
I think having a title determine the last part would be good because users will often upload photos with non-descriptive, often numerical naming conventions. You could code "use the title if it exists, otherwise use the file name". The code should strip out invalid characters, of course.
Also, the image URL above loses the gallery name. I think it would be better if the img URL kept the gallery name and was something like "bryan/gallery/14/bryans-memes/heres-johnny" which, in fact, already works!
updated by @blindmime: 12/16/14 04:56:16AM