forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Themes/Skins/Templates => Topic started by: knet on August 04, 2004, 09:00:28 am

Title: How to change gallery width?
Post by: knet on August 04, 2004, 09:00:28 am
Hi,

I'm using the Water drop theme and have added a custom banner that is 780 pixels. I have made certain changes to the templates.html and theme.php files but I notice that the tables below the banner (ie Category, Random Files, Last Additions) are still wider, at 800 pixels.

Where do I change that? I've been looking for it all day!

Thanks in advance.

GS
Title: Re: How to change gallery width?
Post by: Casper on August 04, 2004, 09:09:22 am
In config, look for 'Width of the table for file display (pixels or %)'.
Title: Re: How to change gallery width?
Post by: knet on August 04, 2004, 10:32:58 am
Hi,

Is that in include/config.php? I couldn't find it there.

You can see the width problem at http://gallery.khalsanet.org

Thnx

GS
Title: Re: How to change gallery width?
Post by: Joachim Müller on August 04, 2004, 12:09:46 pm
click on "config" when logged as admin and in admin mode (in the admin menu). It will send you to the file config.php in the coppermine root folder. There's no file "include/config.php", there is only "include/config.inc.php", and it is not related.

GauGau
Title: Re: How to change gallery width?
Post by: Casper on August 04, 2004, 02:39:02 pm
You seem to have broken your install.  Have you removed the include/config.inc.php and install.lock
Title: Re: How to change gallery width?
Post by: knet on August 04, 2004, 06:05:11 pm
Hi,

My ISP transfered my account to another server and the gallery settings were affected. Sorry if you could not see the site. It's  showing now.

I went into admin and set the width to 780 (same as the banner) as suggested, but the bottom tables still appear a little larger than the heading. When I went to the source via the browser, I still see 800 as the width:

     <!-- Start standard table -->
     <table align="center" width="800" cellspacing="1" cellpadding="0" class="maintable">


What else can I do?

Thanks in advance.

GS

Title: Re: How to change gallery width?
Post by: Joachim Müller on August 04, 2004, 06:16:36 pm
You have nested your tables incorrectly. The banner should not be in the cell the {GALLRY} resides in. Edit http://gallery.khalsanet.org/themes/water_drop/template.html and change your template like this:
Code: [Select]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="{LANG_DIR}">
<head>
<title>{TITLE}</title>
<meta http-equiv="Content-Type" content="text/html; charset={CHARSET}" />
<meta http-equiv="Pragma" content="no-cache" />
{META}
<link rel="stylesheet" href="themes/water_drop/style.css" />
<script type="text/javascript" src="scripts.js"></script>
<!--
$Id: template.html,v 1.3 2004/06/11 09:20:11 tarique Exp $
-->
</head>
<body bgcolor="#7EB5E8">
<center>
<table border="0" cellpadding="10" cellspacing="10">

<tr>
        <td align="center" valign="top" bordercolor="#666666" bgcolor="#FFFFFF" style="border: 1px solid #ccd7e0; background-color: #fff;">



          <table width="780" border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td>
                <img src="images/banner1.gif" width="227" height="116" alt="khalsanet" /></td>
              <td>
                <a href="http://www.khalsanet.org"><img src="images/buttons_02.gif" border = 0 width="93" height="116" alt="khalsanet home" /></a></td>
              <td><a href="http://emails.khalsanet.org">
                <img src="images/buttons_03.gif" border=0 width="92" height="116" alt="webmail" /></a></td>
              <td>
                <img src="images/buttons_04.gif" width="93" height="116" alt="articles" /></td>
              <td>
                <img src="images/buttons_05.gif" width="88" height="116" alt="downloads" /></td>
              <td>
                <img src="images/buttons_06.gif" border=0 width="93" height="116" alt="gallery" /></a></td>
              <td><a href="http://forums.khalsanet.org/phpbb">
                <img src="images/buttons_07.gif" border=0 width="94" height="116" alt="forums" /></a></td>
            </tr>
          </table>
        </td>
</tr>
<tr>
        <td align="center" valign="top" bordercolor="#666666" bgcolor="#FFFFFF" style="border: 1px solid #ccd7e0; background-color: #fff;">
                <table width="780" border="0" cellspacing="0" cellpadding="0">

                         <tr>
                                <td width="100%" align="center">
                                        {MAIN_MENU}<br />
                                        {LANGUAGE_SELECT_FLAGS}<br>{LANGUAGE_SELECT_LIST}&nbsp;
                                        {THEME_SELECT_LIST}
                                </td>
                        </tr>
                </table>
                <img src="images/spacer.gif" width="1" height="15" /><br />
                <table width=780 border="0" align="center" cellpadding="0" cellspacing="0">
                        <tr>
                                <td align="center" valign="top">
                                        {ADMIN_MENU}
                                        {GALLERY}
                                </td>
                        </tr>
                </table>
        </td>
</tr>
</table>
</body>
</html>

GauGau