coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: mandalaia on January 31, 2006, 02:18:09 PM

Title: Having problems editing template.html
Post by: mandalaia on January 31, 2006, 02:18:09 PM
I am trying to change the layout of my gallery but everytime I make changes to template.html I get runtime errors and the menus don't show up, just {SYS_MENU}, {SUB_MENU}, etc...  Maybe I just need to get some sleep but I can't, for the life of me, figure out why it won't work.  I want to put the menus on the side, like this: http://www.letterheadfonts.com/gallery/ .  I already edited template.php to make my menus look that way, and I can get the layout right with template.html, but the menus won't actually show up.  They show up fine though if I upload the original template.html so I know I didn't mess anything up in the php.  If anyone can help me, I would greatly appreciate it!


This is what happens when I edit it:  example (http://carche.mybesthost.com/gallery/)

This is the code I am using for template.html:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="{LANG_DIR}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={CHARSET}" />
<meta http-equiv="Pragma" content="no-cache" />
<title>{TITLE}</title>
<link rel="stylesheet" type="text/css" href="themes/hardwired/themes/hardwired/style.css" />
<p align="center">{META}
<script type="text/javascript" src="themes/hardwired/scripts.js" ></script>
<!-- $Id: template.html,v 1.12 2005/12/04 03:22:35 donnoman Exp $ -->
</head>
<body>
<div align="center">
<table width="800"  border="0" cellspacing="0" cellpadding="0">
  <tr valign="top">
    <td colspan="2" align="center">{CUSTOM_HEADER}
    </td>
  </tr>
  <tr>
    <td class="gallery" align="left" valign="top" width="600"> {GALLERY} </td>
    <td class="gallery" align="left" valign="top" width="200">
    <div align="left" class="topmenu"> {SYS_MENU} </div> <br />
    <div align="left" class="topmenu"> {SUB_MENU} </div> <br />
</td>
  </tr>
  <tr valign="baseline">
    <td colspan="2">{CUSTOM_FOOTER}</td>
  </tr>
</table>
</div>
<br />
<div align="center"> {LANGUAGE_SELECT_FLAGS} <br />
  <br />
</div>
<p align="center">
{VANITY} </p>
</body>
</html>


When I upload this, the layout is fine, but the menu won't show up?
Title: Re: Having problems editing template.html
Post by: Blueiris on January 31, 2006, 07:12:49 PM
It's because the {GALLERY} token must be above the menu tokens in the code.

See this thread: http://forum.coppermine-gallery.net/index.php?topic=26151.msg120938#msg120938 (http://forum.coppermine-gallery.net/index.php?topic=26151.msg120938#msg120938) for an explanation of how to put the menu on the right.
Title: Re: Having problems editing template.html
Post by: mandalaia on February 01, 2006, 07:26:19 AM
That worked, thanks so much!!