Having problems editing template.html Having problems editing template.html
 

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]

Main Menu

Having problems editing template.html

Started by mandalaia, January 31, 2006, 02:18:09 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

mandalaia

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

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?

Blueiris

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 for an explanation of how to put the menu on the right.
You can lead a horse to water, but you can't make him drink - he's got to discover that it's wet for himself.

mandalaia