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 Theme is Siriux If anyone has a step-by-step guide on this that would be great! Thanks |
|

Posts: 22888
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
Posts: 6136
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
Posts: 6
Hi guys - thanks for this.
I will try it out and post back.
Thanks
Posts: 6
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
Posts: 22888
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
Posts: 6
Many thanks for your response!
NR
Posts: 3
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?