Advanced search  

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]

Pages: [1]   Go Down

Author Topic: How to change gallery width?  (Read 4780 times)

0 Members and 1 Guest are viewing this topic.

knet

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
How to change gallery width?
« 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
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: How to change gallery width?
« Reply #1 on: August 04, 2004, 09:09:22 am »

In config, look for 'Width of the table for file display (pixels or %)'.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

knet

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: How to change gallery width?
« Reply #2 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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: How to change gallery width?
« Reply #3 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
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: How to change gallery width?
« Reply #4 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
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

knet

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: How to change gallery width?
« Reply #5 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

Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: How to change gallery width?
« Reply #6 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
Logged
Pages: [1]   Go Up
 

Page created in 0.029 seconds with 20 queries.