forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: piercedwater on June 17, 2010, 02:46:41 am

Title: Login.php
Post by: piercedwater 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!



Title: Re: Login.php
Post by: Joachim Müller on June 17, 2010, 09:56:39 am
http://forum.coppermine-gallery.net/index.php/topic,55415.msg270616.html#msg270616
Title: Re: Login.php
Post by: piercedwater on June 17, 2010, 06:11:02 pm
My URL is:

http://www.thedarrahfamily.us

Thanks.
Title: Re: Login.php
Post by: Joe Carver 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.
Title: Re: Login.php
Post by: piercedwater on June 17, 2010, 11:03:19 pm
Ok, thank you both. When all else fails, read the directions!