{GALLERY} tag removing unwanted html from my template.html? {GALLERY} tag removing unwanted html from my 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

{GALLERY} tag removing unwanted html from my template.html?

Started by -, July 07, 2006, 05:54:03 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

-

Hello,

Sorry to bother you so soon after my registration, but after installing 1.4.2 (from fantastico) and updating it properly to 1.4.8 (yes i've checked everything should be ok), i've had some problems with my self written theme file. My intention is to create a complete copy of the look of my website to the gallery. Everything else works fine, except the {GALLERY} -tag. I've browsed through at least a dozen pages without finding an approppriate answer to this problem.
Here goes:

I've created a very very simple template.html, which works fine (all text is outputted when loading the gallery via a browser) EXCEPT the stuff after {GALLERY}. Here is the part where problems begin:

Quote
<td class = "content">
        <div class = "content_frame">
{GALLERY}
</div>
</td>

</tr>

</table>

{CUSTOM_FOOTER}
</html>

It goes over my ability to comprehend why the </div> and </td> tags and practically everything between {GALLERY} and {CUSTOM_FOOTER} disappear from the browsed page (which is also the reason the page gets rendered in a wrong way and doesn't pass w3 validator.

I haven't changed the coppermine installation a bit since i installed it. I even ran chmod -R a+w * in the directory just to ensure the problem was not write permission related.

The problem seems so irrational that I'm stuck... Any help is appreciated :-)

Sami

‍I don't answer to PM with support question
Please post your issue to related board

Joachim Müller


-

The theme can be seen in action at: http://pi-xi.net/gallery/
It's still very unfinished. I've replaced the original css file with mine, but that shouldn't make any difference to the
actual content.

here is the template.html

Quote
<!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>&Pi; - &xi; . NET - Gallery</title>
{META}
<link rel="stylesheet" href="../css/default.css" type="text/css" />
<script type="text/javascript" src="scripts.js"></script>
<!-- $Id: template.html 2688 2005-12-04 03:22:35Z donnoman $ -->

</head>

<body>
  {CUSTOM_HEADER}
<div class = "top_frame">
        <div class = "top_frame_bar">
                <a href="http://pi-xi.net/index.php">
                <img class = "top_frame" src = "http://pi-xi.net/graphics/pi-xi_logo.gif" alt = "&Pi;-&xi;" border = "0" /></a>
                <a class = "top_frame" href = "http://pi-xi.net/author/">/Author</a>
                <a class = "top_frame" href = "http://pi-xi.net/blog/">/Blog</a>
                <a class = "top_frame" href = "http://pi-xi.net/gallery/">/Gallery</a>
                <a class = "top_frame" href = "http://pi-xi.net/articles/">/Articles</a>
                <a class = "top_frame" href = "http://pi-xi.net/shop/">/Shop</a>
                <a class = "top_frame" href = "http://pi-xi.net/reviews/">/Reviews</a>
        </div>
</div>

<table>

<tr>

<td class = "menu">
        <div class = "menu_frame">
{SYS_MENU}
        <br />
{SUB_MENU}
        </div>
</td>

<td class = "content">
        <div class = "content_frame">
{GALLERY}
</div>
</td>

</tr>

</table>

{CUSTOM_FOOTER}


and here is the footer-file:

Quote
<div class = "bar_frame">
<b><font color="red">&Pi; - &xi; . NET</font></b> is powered by osCommerce, Coppermine, CPMFetch, Wordpress, a bunch
of plugins and lot of self written php. &copy; Copyright Otso Helenius 1995-2006.</div>
</body>
<?php
$objCpm->cpm_close();  // COPPERMINE FETCHER END
?>
</html>

You can see how badly it renders:
http://validator.w3.org/check?uri=http%3A%2F%2Fpi-xi.net%2Fgallery%2Findex.php

Sami

- please put coppermine copyright link back
- you should put </body> and </html> to template.html back and remove them from footer file
‍I don't answer to PM with support question
Please post your issue to related board

-

Quote from: bmossavari on July 07, 2006, 06:23:32 PM
- please put coppermine copyright link back
- you should put </body> and </html> to template.html back and remove them from footer file

Done, but that didn't really solve the problem. It still seems as if running the respective code launched by the {GALLERY} tag deletes lots of the lines in my template.html. I've been working on this all day and i'm really running out of ideas.

Sami

‍I don't answer to PM with support question
Please post your issue to related board

-

UPDATE:

Now after cranking on and off my theme, it suddenly DID update itself and correct the erroneous html. I have doubts that this installation is NOT running correctly although the update script checker said everything was ok. A few suspicious notes:

- The debug box says language is set to finnish although in the setup it was set to english. i was unable to change my language before i deleted all language files except for english.

- The updates i make to template.html are NOT reflected on the site immediately on reload (although i have no cache enabled), but they often appear ONLY after i switch to another template and back to my own.

Has anyone else seen these symptoms?

Sami

- One issue per thread please!
- if you change your lang to finish it will stay in your cookie untill you change it to somthing else (even if your default lang was english)
- you have cache issue , you should use ctrl+f5 to refresh
‍I don't answer to PM with support question
Please post your issue to related board

Joachim Müller