Remove Login Link

morvak

Joined: 2004-11-22
Posts: 30
Posted: Mon, 2005-04-25 23:41

I would like to remove the Login link from my g2 pages, but I don't know where or what the code is called, i tried searching for "login" in the template files but couldn't find it?

I don't have a need for anyone else to login except myself, since the gallery is displaying my own works...

thanks

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2005-04-25 23:46

GalleryCapabilities::set('login', false);

see modules/core/classes/GalleryCapabilities.class for more options.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Tue, 2005-04-26 00:58

also see Site Admin / General for option for login on sidebar and/or link on top bar

 
dbeers

Joined: 2006-12-01
Posts: 29
Posted: Sun, 2006-12-24 16:01

Where do you enter "GalleryCapabilities::set('login', false)" at? I looked in the gallerycapabilities.class file but where do I enter the txt?

Thank you

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Mon, 2007-01-01 07:54

you can add it in your config.php file. make sure include the semicolon at the end.
in upcoming Gallery 2.2 this form will still work, but it is deprecated.. the new form is: $gallery->setConfig('login', false);