coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: Peter Palm on March 06, 2006, 09:31:55 PM

Title: How can I make CPG only 512 pixels wide?
Post by: Peter Palm on March 06, 2006, 09:31:55 PM
Hey guys, I'm new to the forum, but a CPG user for years now :-)

I'm wondering how I can get CPG to be only 512 (not wider) pixels or smaller?
I changed a lot, but somehow the page is always to wide for its frame.

See: http://weer.bommeltje.nl (http://weer.bommeltje.nl)   
Click "Fotogalerij" in the menu.

The width of the main table is set to 100% (but even when I change that to lets say 60%, the page is still to wide).

Does anyone know how to reduce the width, and where to change that?
Or maybe someone have a theme for me that's less wide than 512 pixels?
Title: Re: How can I make CPG only 512 pixels wide?
Post by: Joachim Müller on March 06, 2006, 11:09:55 PM
works as expected for me using Firefox
Title: Re: How can I make CPG only 512 pixels wide?
Post by: Peter Palm on March 07, 2006, 12:01:07 AM
Indeed, it looks fine in Firefox  ???
In IE the page is show 'wrong' (see image).
Title: Re: How can I make CPG only 512 pixels wide?
Post by: Joachim Müller on March 07, 2006, 08:14:43 AM
hm, that's one of the reasons why Iframes are so bad. Try modifying the <iframe> tag attributes. IE seems to do something non-standards-compliant. Another place to look into is coppermine's style sheet and template. Hard to say what actually is wrong.
Title: Re: How can I make CPG only 512 pixels wide?
Post by: netfalls on March 07, 2006, 11:34:04 AM
Can you sent the source code of your template & page with the Iframe there must be a tag to remove to make it work with IE

Cheers
Title: Re: How can I make CPG only 512 pixels wide?
Post by: Peter Palm on March 07, 2006, 05:52:14 PM
Hi, thanks for the reply.
The template is as follow:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html dir="{LANG_DIR}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={CHARSET}" />
<meta http-equiv="Pragma" content="no-cache" />
<title>{TITLE}</title>
{META}
<link rel="stylesheet" href="themes/water_drop/style.css" type="text/css" />
<script type="text/javascript" src="scripts.js"></script>
<!-- $Id: template.html,v 1.9 2005/12/04 03:22:35 donnoman Exp $ -->
</head>
<body>

        <table width="90%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="100%" align="center">
              <h1>{GAL_NAME}</h1>
              <h3>{GAL_DESCRIPTION}</h3><br />
              {SYS_MENU}<br />
            </td>
          </tr>
        </table>
        <img src="images/spacer.gif" width="1" height="15" alt="" />
        <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td valign="top">
              {ADMIN_MENU}
              {GALLERY}
            </td>
          </tr>
        </table>

</body>
</html>


I'm not using an Iframe to display CPF 1.44, it is shown in a frameset.
Title: Re: How can I make CPG only 512 pixels wide?
Post by: netfalls on March 08, 2006, 08:23:26 AM
Hi,

There is something wrong in the template if you remove <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> the frameset is working in the right way with IE but this does not solve the problem it's just showing you where to search.
Title: Re: How can I make CPG only 512 pixels wide?
Post by: Joachim Müller on March 08, 2006, 09:40:11 AM
then edit the frameset - paste the code here
Title: Re: How can I make CPG only 512 pixels wide?
Post by: Peter Palm on March 08, 2006, 10:51:20 AM
Yahooo, thanks Netfalls and GauGau !!

I removed the first line from the template and now Coppermine is perfectly shown in the frame  ;D
I don't know what the removed line does, but it was in there in the original template. I did not add that  ???

But, who cares, it works again  :P  ;D
Title: Re: How can I make CPG only 512 pixels wide?
Post by: Nibbler on March 08, 2006, 02:02:33 PM
For a frameset you need to use the frameset DTD, not the transitional.


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">