View Single Post
  #2  
Old 07-09-2007, 10: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