Hiding albums but showing images in Drupal

mkoelsch

Joined: 2009-12-31
Posts: 3
Posted: Thu, 2009-12-31 10:59

Hi there,

I got Gallery 2 up and running and embedded it into my Drupal-page. The problem is now, that I'd like to restrict access to the Gallery2 itself (www.examlpe.com/gallery2). My idea is that no pictures/albums should be seen if anybody tries to open Gallery2 (there is no link on my site, but you never know what strange ideas are in the heads of the visitors just trying out any link-combination ;) ).

Simply hiding an album won't to the trick, as then no pictures are shown on my site. I thought, that maybe allowing every user to see the "scaled" and "original images" would work, but for some reason I can't explain, only the images in the original resolution are shown on my site. Not thumbs, just lots of red X's... Fortunately at least the album is NOT shown to guests in Gallery2 :D I have to use the album-seting "[core] show all versions", or else the thumbs won't show... but then the album IS shown to guests in Gallery2 again.
Using a password on the albums would also be okay, but then the same problem comes up: can't see the pictures on my site (as visitors of my homepage obviously don't know the password used to hide the albums).

Basically what I'm looking for, is a way to hide the albums in Gallery2 (or even Gallery2 itself), but showing all images (thumbs and high-res) on my site that are all managed with Gallery2.

The version of Gallery2 is a quite recent one, as I installed it just couple of weeks ago. Can't tell the version-number as I have no idea where to look it up.

Looking forward to solving this problem :)

Thanks :)

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Thu, 2009-12-31 20:21

If you're embedding Gallery in Drupal, just use the embed only option in config.php
$gallery->setConfig('mode.embed.only', true);

____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
mkoelsch

Joined: 2009-12-31
Posts: 3
Posted: Fri, 2010-01-01 11:31

Yeah thanks. That helped :)

One question though: how do I now add pictures into the gallery? If I try to access it over Drupal (www.example.com/gallery) it shows me all the pictures but I can't add new ones...

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Tue, 2010-01-05 03:15

No idea, example.com isn't a real website so I can't see what you're using.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
mkoelsch

Joined: 2009-12-31
Posts: 3
Posted: Tue, 2010-01-05 09:54

My Homepage is www.mkoelsch.com

The Gallery2 config is at the moment NOT set to embeded only, because I then don't know how to add new pictures into the gallery...

Maybe you could take a look at it?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Tue, 2010-01-05 16:47

Hmm, I don't know. Didn't realize it integrated like that. Looks like there's no admin type sidebar going to be available if you're logged in.

I'm going to move this to the Drupal related forums as I have no idea about that part of the equation.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here