Restrict to a (sub)album

Bluesboy
Bluesboy's picture

Joined: 2007-11-11
Posts: 30
Posted: Mon, 2007-12-10 21:54

Can I restrict vistors to a specific (sub)album?

From Joomla with an iFrame I link to a specific (sub)album:
http://www.MySite.nl/gallery2/main.php?g2_language=nl&g2_itemId=123

I would like to restrict the user to this album.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2007-12-11 02:29

Edit permissions for all the other albums so guests cant see them:
http://codex.gallery2.org/Gallery2:Quick_Start_Guide#Configure_Permissions

hide the other albums: http://codex.gallery2.org/Gallery2:Modules:hidden
password protect the other albums: http://codex.gallery2.org/Gallery2:Modules:password

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team

 
Bluesboy
Bluesboy's picture

Joined: 2007-11-11
Posts: 30
Posted: Tue, 2007-12-11 20:54

Thanks floridave.

I don't whether this is the answer to my question, I'll look into it.

May be I should have given some more details about what I'm trying to achieve:
• I have two ‘main’ albums, one for holiday pictures and one for scuba diving pictures.
• Both have sub albums for specific years / locations.
• My entire website is based upon Joomla!, only for pictures galleries I link to Gallery 2.
• From the Joomla!menu I’m linking to the sub albums.
• At this moment visitors can freely switch to other albums.
• I would like to restrict vistors from freely switching. I want them to navigate thru the Joomla!menu because over there there also other related information such as travel reports, links to country information, etc.

So I don’t really want restrict vistors from viewing albums, I only want them to navigate thru the Joomla!menu.

So while linking to http://www.MySite.nl/gallery2/main.php?g2_language=nl&g2_itemId=123 I want to (temporarily) restrict the visitor the this specific album.

 
Bluesboy
Bluesboy's picture

Joined: 2007-11-11
Posts: 30
Posted: Tue, 2007-12-11 21:18

:-) Why am I always searching for complex solutions? :-)

Could I not achieve what I want, just by removing (or non-display) the navigation bar within my template? The only question is: how to make it disappear only when I link from Joomla? Could I add parameter to the URL? A parameter I could test for to suppress the navigation bar?

That would be fun ... :-)

 
Bluesboy
Bluesboy's picture

Joined: 2007-11-11
Posts: 30
Posted: Sat, 2007-12-15 22:47

I have almost completed my task to remove the navigation bar en footer. At this moment it only works for the first page request. Therefore I have started a new topic: How to store a URL parameter (PHP & Smarty) ...

 
Bluesboy
Bluesboy's picture

Joined: 2007-11-11
Posts: 30
Posted: Tue, 2007-12-25 11:49

Since I did not yet succeed with the URL parameters and PHP/Smarty variables, I started searching for yet an other 'solution'. I found the Multiroot Module which looks promising but bad luck for me, I could not get it to work right away, so I posted an other 'problem': Multiroot Module: The webpage cannot be found.. :-(