Login.php Login.php
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Login.php

Started by piercedwater, June 17, 2010, 02:46:41 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

piercedwater

Hello,

I am new to Coppermine but I have big plans for it. Here is my situation:

I am trying to customize the login box on the classic theme. I can find two pieces of relevant code to do this. The first is from the "Login.php" script, which is as follows:
Quotestarttable('-1', $lang_login_php['enter_login_pswd'], 2);
echo <<< EOT
                  $login_failed
                  $cookie_warning
                  <tr>
                        <td class="tableb">{$lang_login_php['username']}</td>
                        <td class="tablebbox"><input type="text" class="textinput" name="username" tabindex="1" /></td>
                  </tr>

The second, is from my "View Source" menu option of my browser, which is as follows:
Quote<!-- Start standard table -->
<table align="center" width="600" cellspacing="1" cellpadding="0" class="maintable">
        <tr>
                <td class="tableh1" colspan="2">Enter your username and password to login</td>
        </tr>
                 

I am unable to find anywhere in the code that will allow me to edit what the source in my second quote shows. I am also trying to adjust <td> width through the style.css file, which is not working.

I apologize if this is a newbie question, but I searched for thirty minutes and couldn't find anything!




Joachim Müller


piercedwater


Joe Carver

Take some time to read your docs. about theming and creating your custom theme.

But to get you started....the width of that table is set as a variable in Admin >> Config >> Album list view >> Width of the main table (pixels or %)  Don't forget you also have a value in Config. >>  Image view >> Width of the table for file display (pixels or %).

To set/adjust the style of a <td> for example, you will need to copy the file themes/sample/style.css into your custom theme directory and adjust it accordingly. Yes, for login.php you will need to make adjustments to that file for the td width, etc. but keep in mind you will lose those changes on your next upgrade. Changes to other pages should always be done, where possible, through the file themes/your_custom_theme/theme.php.

piercedwater

Ok, thank you both. When all else fails, read the directions!