External ImageBlock with a registered-only gallery?

GrauNykho

Joined: 2005-09-13
Posts: 32
Posted: Thu, 2005-10-06 09:01

Hi!

I have actually a gallery running on which only registered users can access to it... And the account creation is disabled.

I have also another Internet site on which I want to show random images from the gallery. So the ImageBlock is the solution.

The problem I have is the restricterd access to the gallery, causing the block not to display any image...

How can I do it? Have I to modify the code of the imageblock module to use a form of login for the block on the gallery?

Thanks for your help,

GrauNykho, who has probably not explained clearly his problem :(


Gallery version = 2.0 core 1.0.0
PHP version = 4.3.10 apache2handler
PHP version Link: http://sandnyko.dyndns.org/gallery/php_version.php
Webserver = Apache-AdvancedExtranetServer/2.0.53 (Mandriva Linux/PREFORK-9.2.102mdk) PHP/4.3.10 mod_ssl/2.0.53 OpenSSL/0.9.7e mod_perl/1.999.21 Perl/v5.8.6
Database = mysqlt 4.1.11
Activated toolkits = Exif, Thumbnail, ArchiveUpload, Dcraw, Ffmpeg, ImageMagick, Gd, NetPBM
Operating system = Linux sandnyko 2.6.11-12mdkcustom #3 SMP Thu Aug 25 10:37:08 CEST 2005 i686
Browser = Opera/8.50 (Windows NT 5.1; U; fr)

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-10-06 09:18

well, you want to show non public content publicly. g2 doesn't allow this of course. what's the point of restricting access and then adding a security whole with the imageblock?

 
GrauNykho

Joined: 2005-09-13
Posts: 32
Posted: Thu, 2005-10-06 09:45

My site is as confidential as my gallery: there are only a dozen of persons who surf on it from times to times.
So it is not a problem for me to display non public photos on a public site.

I understand that my answer is strage, but it is an idea I have to enhance my site ;)

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-10-06 10:56

if both sites should only show pictures to logged in users and if they are on the same server, then you can use GalleryEmbed.
else, there's no easy / obvious solution to have restricted access in g2, but public access through the external imageblock.

 
GrauNykho

Joined: 2005-09-13
Posts: 32
Posted: Thu, 2005-10-06 11:38

Thanks for your help!

I will try this solution :)