Is there a way to make main.php log in only?

Christophera

Joined: 2010-03-27
Posts: 19
Posted: Sun, 2010-05-30 13:33

I have gallery2 embedded into another cms (cmsms).

I want viewers to view the site through cmsms, and just have gallery/main.php to display a log in (not showing albums) for users editing their albums.

Is there a way to do this?

Thanks,

Chris

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sun, 2010-05-30 14:34

Just so I'm clear, you uwant the login link to show only on the root album?

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sun, 2010-05-30 14:36

If you use the cms login info you can remove the gallery login in the embed file:
$gallery->setConfig('login', false);

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
Christophera

Joined: 2010-03-27
Posts: 19
Posted: Sun, 2010-05-30 16:09

Actually, I want only the log in to show on main.php when a viewer is not logged in. I don't want albums to be accesable to (non-logged in) viewers through gallery2, general public needs to be limited to using the embedded version to view.

I can .htaccess password protect my gallery dir, but that means users have to sign in twice, for .htaccess, then log in to gallery. But I thought there might be an easier way.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sun, 2010-05-30 16:25

Why not set permissions? No need for .htaccess.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
Christophera

Joined: 2010-03-27
Posts: 19
Posted: Sun, 2010-05-30 17:25

I'm looking through the admin... is there a place to deny viewing permissions to non-members? I don't see it (g2 newbie - aggh!). Would that effect the embedded version.

Thank you for all your help here floridave, Chris

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sun, 2010-05-30 17:31
 
Neuman
Neuman's picture

Joined: 2010-07-20
Posts: 5
Posted: Tue, 2010-07-20 02:08

Probably not even a close answer but I thought I'd try this commenting area out :::::: it seems if you are logged in you can click on that folder/album and make sure that the permissions are not public ie viewable to the public/common-surfer. If its(that folder/album) set public, well yes it shows right up at the login page, rather main.php

Which incidentally I've yet to tweak/edit the html of the darn thing.

THought it was a simple php or html that I could attack with Dreamweaver but nothing is ever simple it seems. Any word on simply making little custom changes to main.php? NO not talking about the colors or pretty font types. The css is a breeze but changing the structured layout and specifically the text I need help with.

-- Any takers?

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2010-07-20 03:31

1st thing you should do is uninstall Dreamweaver.
plain old notepad is more suited for php editing than that crapware.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2