forum.coppermine-gallery.net
Support => Older/other versions => cpg1.2 Standalone Support => Topic started 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?
-
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
-
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?
-
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
-
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
-
Thank you, now it works.
I better like that a button that only two persons shall use, is hidden for thousands of other users.
-
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