Hide Admin and Login from Guest

roofyroo

Joined: 2009-06-24
Posts: 6
Posted: Wed, 2009-06-24 16:53

I am new to using Gallery2.

So far I have setup an embedded site under http://gallery.stardusted.com/gallery2embedded.php

Basically I want to;

1. Hide the 'Login' link
2. Direct my admin user to a URL where they can login
3. Make only logged in Admin users be able to view the edit etc links

Theme is Siriux

If anyone has a step-by-step guide on this that would be great!

Thanks

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 22888
Posted: Thu, 2009-06-25 00:07

1. remove the login link; you can add a line to the config.php file. just add

// Disable login
$gallery->setConfig('login', false);

to the bottom of the file before the ?> tag and the login link should be disabled.

2. bookmark the login page.

3. edit the permissions for the album/items

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 6136
Posted: Thu, 2009-06-25 02:42

In your gallery2embedded.php add the line Dave suggests before GalleryEmbed::handleRequest();
This way it does not affect your entire gallery.

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

 
roofyroo

Joined: 2009-06-24
Posts: 6
Posted: Thu, 2009-06-25 13:08

Hi guys - thanks for this.

I will try it out and post back.

Thanks

 
roofyroo

Joined: 2009-06-24
Posts: 6
Posted: Thu, 2009-06-25 13:19

Worked great, thanks!

I'm just trying to find the right css entry to remove the white bar with green line above it. This is on the 'homepage' only.

http://gallery.stardusted.com/gallery2embedded.php

?

Thanks

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 22888
Posted: Thu, 2009-06-25 17:02

The system links show up there.
You can change to color and the borders:

.gbSystemLinks, .block-core-ItemLinks {
	clear: both;
	border-top: 3px solid #9c9;
	border-bottom: 1px solid #9c9;
	background-color: #efe;
	margin: 1.5em 0;
	padding: 0.5em;
}

In theme.css adjust the 3px and 1px to 0px and adjust background-color.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
roofyroo

Joined: 2009-06-24
Posts: 6
Posted: Wed, 2009-07-01 10:03

Many thanks for your response!

NR

 
gchrt
gchrt's picture

Joined: 2009-09-02
Posts: 3
Posted: Wed, 2009-09-02 20:39

And this is all well and good. Login removed from the gallery pages. I've bookmarked the login page for myself as admin.
Just a diddling question: Is there a means to Logout with this scenario?