Public Access

Posted in: Photos

People have been asking me if there is a way to allow searching and viewing but not adding or editing in photos. In a future release, there will be some pretty decent user/permissions stuff but for now there are several ways to go.

The easiest is probably to install photos in a separate directory, use a symbolic link to the gallery_photos folder in your original install, and use a database user that only has SELECT privileges, not INSERT, UPDATE or DELETE. If your visitors try to edit or add photos, the SQL queries will fail and nothing will happen - probably some errors will show up.

Another way to go is to do the separate install and limited access database user, but also go through the app and pulll out all the edit, delete and add buttons. You could also use an .htaccess file to require a username/password for certain pages.

Anyway, users and read-only access will be coming in a future release.

Popularity: 4% [?]

Posted September 1st, 2003 @ 10:45 AM

Add a Comment

Please note: Use of a non-personal web site or blog in the field below and/or comments that are off-topic, personal attacks, or support requests will likely be removed at my discretion.

Note: This post is over 4 years old. You may want to check later in this blog to see if there is new information relevant to your comment.

Status » « Around the web

About This Site

This is the personal web site of Alex King, an independent developer based in Denver, Colorado USA. More...


Crowd Favorite

Crowd Favorite is my software and web development business.

We build web applications, design and develop custom WordPress themes and plugins, and build custom sites using WordPress as a CMS.


I also have a tumblog that aggregates my online content from other services (Twitter, Flickr, del.icio.us. etc.).

Ads