Hide Login/logout button Hide Login/logout button
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Hide Login/logout button

Started by compac, April 23, 2004, 04:55:19 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

compac

It's only the administrator and the superuser who need to use my login-function.
How can I hide this text for other users?


Joachim Müller

Hide the login button completely: edit themes/yourtheme/theme.php and find<!-- BEGIN login -->
                       <a href="{LOGIN_TGT}">{LOGIN_LNK}</a>
<!-- END login -->
and replace it with<!-- 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

compac

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?

Joachim Müller

Quote from: compac on April 26, 2004, 05:14:48 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

Bill_S

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
I just want it to work!

compac

 Thank you, now it works.
I better like that a button that only two persons shall use, is hidden for thousands of other users.

Bill_S

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
I just want it to work!