forum.coppermine-gallery.net

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: compac on April 23, 2004, 04:55:19 pm

Title: Hide Login/logout button
Post by: compac on April 23, 2004, 04:55:19 pm
It's only the administrator and the superuser who need to use my login-function.
How can I hide this text for other users?

Title: Re: Hide Login/logout button
Post by: Joachim Müller on April 24, 2004, 11:59:24 am
Hide the login button completely: edit themes/yourtheme/theme.php and find
Code: [Select]
<!-- BEGIN login -->
                        <a href="{LOGIN_TGT}">{LOGIN_LNK}</a>
<!-- END login -->
and replace it with
Code: [Select]
<!-- BEGIN login -->
                        <!--<a href="{LOGIN_TGT}">{LOGIN_LNK}</a>-->
<!-- END login -->
Tell your super-users to point their browsers to http://yourdomain.tld/your_coppermine_folder/login.php to actually log in.
Disable registration of new users in coppermine config.

GauGau
Title: Re: Hide Login/logout button
Post by: compac on April 26, 2004, 05:14:48 pm
It doesn't work. The login-button is not visible when I do that.
Maybe there shold be a administrator-page with its own adress?
Can you help me in the actual situation to place the button in a discrete place on the page?
Title: Re: Hide Login/logout button
Post by: Joachim Müller on April 26, 2004, 05:20:44 pm
It doesn't work. The login-button is not visible when I do that.
Well, that's expected behaviour, don't you agree? That's just what you requested.

If you want to hide the login link, you'll of course hide it for all users, that includes yourself - how is coppermine to know the admin sits in front of a screen if he hasn't logged in yet ;D?

What exactly is your question now?

GauGau
Title: Re: Hide Login/logout button
Post by: Bill_S on April 26, 2004, 05:51:09 pm
With the login button hidden from everyone, you (the Admin) could just go directly to the
login URL http://www.YourSite.com/gallery/login.php  ;D

Does that work for you?

Bill
Title: Re: Hide Login/logout button
Post by: compac on April 26, 2004, 08:02:26 pm
 Thank you, now it works.
 I better like that a button that only two persons shall use, is hidden for thousands of other users.
Title: Re: Hide Login/logout button
Post by: Bill_S on April 26, 2004, 09:23:45 pm
The simplest solution is to bookmark the login URL in your browser.

Another easy solution is to create an "invisible" button with a link to the login URL.
This could be a transparent gif image or any text word with the link.

If you want to get fancy and you have a dedicated IP address, you could test for
the dedicated IP address, then display the login button if the address matches.

Choose wisely ::)

Bill