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: Login.php  (Read 4795 times)

0 Members and 1 Guest are viewing this topic.

piercedwater

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Login.php
« on: June 17, 2010, 02:46:41 am »

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:
Quote
starttable('-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!



Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Logged

piercedwater

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Login.php
« Reply #2 on: June 17, 2010, 06:11:02 pm »

Logged

Joe Carver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1545
  • aka 'i-imagine'
    • Home Page
Re: Login.php
« Reply #3 on: June 17, 2010, 07:01:04 pm »

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

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Login.php
« Reply #4 on: June 17, 2010, 11:03:19 pm »

Ok, thank you both. When all else fails, read the directions!
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 20 queries.