forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: - on July 07, 2006, 05:54:03 pm

Title: {GALLERY} tag removing unwanted html from my template.html?
Post by: - on July 07, 2006, 05:54:03 pm
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 :-)
Title: Re: {GALLERY} tag removing unwanted html from my template.html?
Post by: Sami on July 07, 2006, 06:00:16 pm
sorry can't say anything without seeing your theme !
Title: Re: {GALLERY} tag removing unwanted html from my template.html?
Post by: Joachim Müller on July 07, 2006, 06:09:54 pm
Post a link to your coppermine-driven gallery.
Title: Re: {GALLERY} tag removing unwanted html from my template.html?
Post by: - on July 07, 2006, 06:11:35 pm
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
Title: Re: {GALLERY} tag removing unwanted html from my template.html?
Post by: Sami 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
Title: Re: {GALLERY} tag removing unwanted html from my template.html?
Post by: - on July 07, 2006, 06:43:21 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.
Title: Re: {GALLERY} tag removing unwanted html from my template.html?
Post by: Sami on July 07, 2006, 06:46:36 pm
your page is valid now :)
check this out:
http://validator.w3.org/check?uri=http%3A%2F%2Fpi-xi.net%2Fgallery%2F&amp;ss=1&amp;outline=1
Title: Re: {GALLERY} tag removing unwanted html from my template.html?
Post by: - on July 07, 2006, 06:53:00 pm
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?
Title: Re: {GALLERY} tag removing unwanted html from my template.html?
Post by: Sami on July 07, 2006, 07:00:55 pm
- 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
Title: Re: {GALLERY} tag removing unwanted html from my template.html?
Post by: Joachim Müller on July 08, 2006, 08:48:05 am
Is the initial issue solved?