Gallery integration into aMember?

saschxd
saschxd's picture

Joined: 2002-09-24
Posts: 1
Posted: Tue, 2002-09-24 14:16

I would like to integrate Gallery into aMember (http://cgi-central.net/scripts/amember/) in a way that gallery should be able to read/use the log/pass used when signing up in aMember!!!
Just as it does with postnuke… (I guess)
Is this possible? :???:

thx in advance, saschxd

 
TeMPeST

Joined: 2004-03-23
Posts: 2
Posted: Tue, 2004-03-23 01:12

I am using amember too, and would really like to restrict gallery to logged in amember users only, but I'm only part way to figuring it out.

I am using Gallery 1.4.2. amember supports "php include" protection and .htpassword protection.

Gallery already uses .htaccess in its structure, and it would probably be too difficult to point amember to add information to each gallery (especially if you have loads of sections).
So I'm thinking of using the php include thing - However, I am trying to work out where to best put the include line... which needs to be at the top of each page in Gallery:

<? 
$_product_id = array(1,2); 
include("/home/amember/plugins/protect/php_include/check.inc.php");  
?>

If any Gallery-knowledgable person or dev guru could possibly tell me where I can stick this line, it would really help. It's a hack, but it should work....

Also, I would need to add a standard .htaccess rule in the images directory, which would only allow gallery pages as the referrer for the image... so outside linking is impossible... (Or is this how it works already?).

Anyway, I've done quite a bit of research, if someone could just help me finish it off that would be great.

Alek.