Advanced search  

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]

Pages: [1]   Go Down

Author Topic: {GALLERY} tag removing unwanted html from my template.html?  (Read 7308 times)

0 Members and 1 Guest are viewing this topic.

-

  • Coppermine newbie
  • Offline Offline
  • Posts: 4

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 :-)
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: {GALLERY} tag removing unwanted html from my template.html?
« Reply #1 on: July 07, 2006, 06:00:16 pm »

sorry can't say anything without seeing your theme !
Logged
‍I don't answer to PM with support question
Please post your issue to related board

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: {GALLERY} tag removing unwanted html from my template.html?
« Reply #2 on: July 07, 2006, 06:09:54 pm »

Post a link to your coppermine-driven gallery.
Logged

-

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: {GALLERY} tag removing unwanted html from my template.html?
« Reply #3 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
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: {GALLERY} tag removing unwanted html from my template.html?
« Reply #4 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
Logged
‍I don't answer to PM with support question
Please post your issue to related board

-

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: {GALLERY} tag removing unwanted html from my template.html?
« Reply #5 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.
« Last Edit: July 07, 2006, 06:52:50 pm by piksi »
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Logged
‍I don't answer to PM with support question
Please post your issue to related board

-

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: {GALLERY} tag removing unwanted html from my template.html?
« Reply #7 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?
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: {GALLERY} tag removing unwanted html from my template.html?
« Reply #8 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
« Last Edit: July 08, 2006, 08:52:50 am by bmossavari »
Logged
‍I don't answer to PM with support question
Please post your issue to related board

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: {GALLERY} tag removing unwanted html from my template.html?
« Reply #9 on: July 08, 2006, 08:48:05 am »

Is the initial issue solved?
Logged
Pages: [1]   Go Up
 

Page created in 0.04 seconds with 20 queries.