'hiding' album (and subs) on main page, but able to navigate to them?

RogueTrooper

Joined: 2008-03-20
Posts: 34
Posted: Sun, 2011-03-06 21:46

All,

I have some albums that I'd like to be publicly available, but hidden on my main page, is that possible with G3? I was able to do it with G2, but the way G3 permissions work it doesn't seem possible.

To clarify here's what I'd like to do:

Normal non-registered users would goto my URL

http://www.blah.com

Which would redirect them to my gallery's main page

http://www.blah.com/gallery

This main page has 1 visible, and 1 'hidden' album so if you know the full path to the albums under the hidden album you can get to them directly

http://www.blah.com/gallery/personal/user

Like I said this worked with G2 just by playing around with the permissions, but in G3 if you say 'not visible to everyone' it's totally gone even if you know the paths. I've also played around with the hide module and that again just completely wipes things out. When you set 'not visible to everyone' on the parent album that gets inherited by all the sub albums and you can't change it. There should be a way to say if that setting should apply down the tree or not, don't you think?

Seems to me that G3 is pretty limiting as far as those things go, so is there anyway to adjust that behavior or am I totally out of luck?

Thanks!

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sun, 2011-03-06 22:04

Two modules come to mind:
http://codex.gallery2.org/Gallery3:Modules:albumpassword http://codex.gallery2.org/Gallery3:Modules:hide
I think there is another as well.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
RogueTrooper

Joined: 2008-03-20
Posts: 34
Posted: Sun, 2011-03-06 22:42

Thanks, but that's not what I'm looking to do.. The hide module does just that, completely hides that and all sub albums no matter if you know the path or not, and I don't want to password protect anything..

This was simple with G2, but permissions in G3 work differently and that's the problem, and I think it needs to be looked at..

-RT

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sun, 2011-03-06 23:35

There was lots of functionality that was in G2 that has not been ported to G3. G2 was large, complex hard to upgrade and code for. We narrowed the scope of G3 to be small, fast, easy to upgrade and code for. You can still use G2 or write a module that does the functionality you desire for G3.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
RogueTrooper

Joined: 2008-03-20
Posts: 34
Posted: Mon, 2011-03-07 05:19

Well, not my area of expertise... Any coders out there think they could whip something together? I know I'd greatly appreciate it, and I'm sure others would as well..

Please!!

:)

-RT

 
Starblazer

Joined: 2010-01-22
Posts: 1
Posted: Sun, 2011-03-13 11:17

I'd like to throw my hat in the ring here for this. G1 had it... G2 had it.... and G3 doesn't? I know its security thru obscurity.... but I liked the option!

 
dimuthu

Joined: 2011-08-21
Posts: 1
Posted: Sun, 2011-08-21 18:59

I downloaded the 'hide' gallery3 module. Commented the following 'return true' statement in can_be_hidden method in modules/hide/helpers/hide.php

71 if ($item->type == "album") {
72 //return false;
73 }

And then with admin logging hide the album. It has this problem (at least for now) once you hide the album it doesnt hide the images inside, which is exactly what I wanted.

Not recommended to do this. But if you are desperate enough to do it, it works.

P.S.
Guest users will still be able to access the photos even they dont have the URL, by following tags, comment or activity feeds. So it does not completely hide the photos. It just hide it from the top page, (Which was actually my requirement).

 
RemcoKreks

Joined: 2011-11-16
Posts: 1
Posted: Wed, 2011-11-16 23:19

I got the job done quick and dirty.
Example gallery root is www.domain.com/gallery3

At the top of index.php in the gallery root I added:
if ($_SERVER['REQUEST_URI'] == "/gallery3/") {
exit ("not allowed");
}

As the admin also can't enter the root album you can chance the permisson (needed for the sub albums) trough a workaround.
-Go to a sub album
-Go to Album options > Edit permissions
-There you can click on the root album and set the right permissions.

Now you can navigate directly to the sub albums but not the root album.

Gr, Remco.