Letterbar destination
Is it possible for the Letterbar to link to the files that start with the selected letter, rather than linking to the user with the selected letter?
Example: Currently if you click on D in the letterbar, you are taken to a list of users that have posted images. I would like to: Click D in the letterbar and be able to list all files that begin with D. |
Untested, but you would need to edit the if-block of code starting with the following in the PhotoPlog index.php file:
Code:
if (!$photoplog['user_id'] && !$photoplog['cat_id'] && $photoplog['letter_id']) Code:
if (!$photoplog['user_id'] && !$photoplog['cat_id'] && $photoplog['letter_id']) Again untested, but you could try this instead if you are not worried about missing files with the same name: Code:
if (!$photoplog['user_id'] && !$photoplog['cat_id'] && $photoplog['letter_id']) |
Alrighty. I expect the gallery to grow exponentially, if not during the summer then definitely during the next hockey season. I'll just remove the letter bar and allow users to search for their favorite players.
Thanks for the help! |
Quote:
|
I've tried this and when i hit any letter it brings up the same files over and over
its not filtering anything. possible solutions? |
Sorry, none, as I haven't tested that code though something like it should work.
|
i'm not too great with php...so i dont think i'd be able to figure it out lol
hmmm |
All times are GMT. The time now is 12:08 PM. |
Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.