coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Permissions & Access Rights => Topic started by: Huser on April 07, 2005, 07:55:03 AM

Title: htaccess external members / non-members see only thumbnails
Post by: Huser on April 07, 2005, 07:55:03 AM
i have a an external member system by htaccess.  I would like the non-members of the external member system to only see the thumbnails of the members' pics.

While members of hte external member system can see everything.

What can i do to accomplish this? ???
Title: Re: htaccess external members / non-members see only thumbnails
Post by: Tranz on April 07, 2005, 08:02:01 AM
http://coppermine.sourceforge.net/faq.php#viewThumbnailsOnly
Title: Re: htaccess external members / non-members see only thumbnails
Post by: Huser on April 07, 2005, 08:12:59 AM
Would i have to edit (user id) to specify that only the htaccess members can see everything?

The htaccess is something like this.

AuthUserFile /dev/null
AuthGroupFile /dev/null
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://members.com [NC]
RewriteCond %{HTTP_REFERER} !^http://www.members.com [NC]
RewriteRule /* http://www.mysite.com/join.html [R,L]

Title: Re: htaccess external members / non-members see only thumbnails
Post by: Nibbler on April 07, 2005, 02:57:52 PM
You'd need to change USER_ID to $_SERVER['PHP_AUTH_USER']