PhotoPlog

Go Back   PhotoPlog > PhotoPlog Lite > "How Do I..." Questions
Screens Demo Purchase Download Register

Reply
Attention: Last reply in this thread was more than 17 Years ago
 
Thread Tools
  #1  
Old 07-09-2007, 11:06 PM
devoslack devoslack is offline
Green Plog
 
Join Date: Jul 2007
Posts: 2
Gallery: 0
Comments: 0
Default 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.
Reply With Quote
  #2  
Old 07-09-2007, 11:35 PM
Morgan's Avatar
Morgan Morgan is offline
Head Plog
Admin
 
Join Date: Dec 2005
Posts: 5,324
Gallery: 10
Comments: 25
Default

Untested, but you would need to edit the if-block of code starting with the following in the PhotoPlog index.php file:
Code:
Content visible to registered users only.
Maybe something like the following will do:
Code:
Content visible to registered users only.
Though note that, as functions are run on a field, it is not optimal to do this. Large galleries would definitely not, not, not want to do this, as there is a full table scan.

Again untested, but you could try this instead if you are not worried about missing files with the same name:
Code:
Content visible to registered users only.
That should use an index but will miss files with the same name, catching only the first one for display.
__________________
Please use the forums for support, feature requests, and similar such things. Support does not include custom code, custom template edits, or third-party modifications. PMs and emails to me should be for private information only, such as login information. If you PM or email me a support question, chances are good that I'll ignore it. Thanks.
While the work or play is on, it is a lot of fun if while you are doing one you don't constantly feel that you ought to be doing the other. -- Franklin Pierce Adams
Reply With Quote
  #3  
Old 07-09-2007, 11:39 PM
devoslack devoslack is offline
Green Plog
 
Join Date: Jul 2007
Posts: 2
Gallery: 0
Comments: 0
Default

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!
Reply With Quote
  #4  
Old 07-10-2007, 09:05 AM
MikeD's Avatar
MikeD MikeD is offline
Orange Plog
 
Join Date: Jun 2006
Location: Cologne / Germany
Posts: 487
Gallery: 10
Comments: 2
Default

Code:
Content visible to registered users only.
Exactly the same idea I had yesterday. See here -Mike
Reply With Quote
  #5  
Old 07-26-2007, 01:47 AM
Statice Statice is offline
Green Plog
 
Join Date: Jul 2007
Posts: 6
Gallery: 0
Comments: 0
Default

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?
Reply With Quote
  #6  
Old 07-26-2007, 01:52 AM
Morgan's Avatar
Morgan Morgan is offline
Head Plog
Admin
 
Join Date: Dec 2005
Posts: 5,324
Gallery: 10
Comments: 25
Default

Sorry, none, as I haven't tested that code though something like it should work.
__________________
Please use the forums for support, feature requests, and similar such things. Support does not include custom code, custom template edits, or third-party modifications. PMs and emails to me should be for private information only, such as login information. If you PM or email me a support question, chances are good that I'll ignore it. Thanks.
While the work or play is on, it is a lot of fun if while you are doing one you don't constantly feel that you ought to be doing the other. -- Franklin Pierce Adams
Reply With Quote
  #7  
Old 07-26-2007, 01:57 AM
Statice Statice is offline
Green Plog
 
Join Date: Jul 2007
Posts: 6
Gallery: 0
Comments: 0
Default

i'm not too great with php...so i dont think i'd be able to figure it out lol

hmmm
Reply With Quote
Reply

« Previous Thread | Next Thread »

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:21 PM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.