BirdOPrey5
Well-known member
VBSEO Album URLs are like this:
There is absolutely no 'id' number in the URL.
I was thinking initially I could make a redirect script similar to @Jake Bunce 's script for member profiles.
My problem though is I don't see anywhere in the database the album title is stored like it appears in the URL (with hyphens for spaces and special characters removed.)
That means I really can't find which album "my-album-title-here" belongs to- it is most like an album with the title "My Album Title Here" but who is to say it isn't named "M'y Album Title Here?" which would be a valid album title.
I can get the username from the URL, so I suppose I could look for a sub-string of the title with a LIKE comparison in MySQL, limited to albums by that user, but that would be awfully sloppy and slow.
I usually think "anything is possible" with enough coding but I'm not so sure on this one.
Code:
http://www.domain.com/forum/members/username-my-album-title-here.html
There is absolutely no 'id' number in the URL.
I was thinking initially I could make a redirect script similar to @Jake Bunce 's script for member profiles.
My problem though is I don't see anywhere in the database the album title is stored like it appears in the URL (with hyphens for spaces and special characters removed.)
That means I really can't find which album "my-album-title-here" belongs to- it is most like an album with the title "My Album Title Here" but who is to say it isn't named "M'y Album Title Here?" which would be a valid album title.
I can get the username from the URL, so I suppose I could look for a sub-string of the title with a LIKE comparison in MySQL, limited to albums by that user, but that would be awfully sloppy and slow.
I usually think "anything is possible" with enough coding but I'm not so sure on this one.