Advanced search  

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

Pages: [1]   Go Down

Author Topic: Hide Login/logout button  (Read 4511 times)

0 Members and 1 Guest are viewing this topic.

compac

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Hide Login/logout button
« 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?

Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Hide Login/logout button
« Reply #1 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
Logged

compac

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Re: Hide Login/logout button
« Reply #2 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?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Hide Login/logout button
« Reply #3 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
Logged

Bill_S

  • Contributor
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Posts: 58
    • Spilman Photography
Re: Hide Login/logout button
« Reply #4 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
Logged
I just want it to work!

compac

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Re: Hide Login/logout button
« Reply #5 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.
Logged

Bill_S

  • Contributor
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Posts: 58
    • Spilman Photography
Re: Hide Login/logout button
« Reply #6 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
Logged
I just want it to work!
Pages: [1]   Go Up
 

Page created in 0.025 seconds with 18 queries.