RMS: Discussion Groups
News l Modules l TechInfo l FAQ/HOWTO l RoxenProviders l Discuss l
Login :
Don't have an account? Register Forgot your password? Retreive
Benefits of Registering * Privacy Policy
 

Roxen Discussions

Module Ideas

Subject: Restricting Images in Photo Album
Posted on: 5 February 1999 by Mark Metson
Post:


Having thumbnails that are viewable by un-authenticated users
yet requiring authentication for access to the full size images
linked to the thumbnails is a very common desire in certain
applications - e.g. Adult Sites. So, here is how I have gotten
it to work with the Photo Album module despite that module's
pre-parsing of the images.

The approach I used is to make a restrcited filesystem which has
a higher priority than the Photo Album filesystem but is mounted
at the same spot in the virtual filesystem. Thus it blocks the
/fotoalbum/ URLs used to link to the images but does not block
the actual page of thumbnails (provided that page is located in
a filesystem mounted elsewhere and not restricted, of course).

This is still not pretty simply because the error.pike custom
error messages do not seem to work for authentication errors,
but it does the restricting, which is a start.

[ New Post ]   [ Post Reply ]   [ Previous Post ]   [ Next Post ]   [ Previous in Thread ]   [ Next in Thread ]   [ Forum Index ]

Follow Up:

 

Comments? Questions? < rms@riverweb.com >
visitors since .
This page last updated February 2002.
Riverweb Logo RMS is hosted by Riverweb Internet Commerce
Copyright © 1998 H. William Welliver III
This site is powered by Roxen Challenger 1.3 and mySQL.