[Solved]: Layout Won't Change [Solved]: Layout Won't Change
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

[Solved]: Layout Won't Change

Started by strokesfan, April 11, 2008, 05:52:45 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

strokesfan

Hi!
I have a problem with my gallery located at http://www.jenniferanistonfan.org/pictures/index.php. I am using the Water_drop theme and I've had this layout up forever and when I uploaded over the themes/water_drop/template.html file, it wouldn't overwrite. I'm able to change around categories and the content of the main page, but when I try to overwrite the template.html file, it won't change the layout. If I try and change the theme in the Configuration page of my gallery, it won't change. It'll stay the water_drop one. I even deleted the water_drop folder and the layout just stays at that dark brown one.

I'm using the latest Coppermine, 1.4.16. Thank you in advance for any help you can give!

Joachim Müller

You're using the theme green_wap as far as I can seen. If this is different for you, reset your preferences stored in a cookie on your machine, go to http://www.jenniferanistonfan.org/pictures/?theme=xxx
To view your gallery using the water_drop theme, go to http://www.jenniferanistonfan.org/pictures/?theme=water_drop
Not sure what your actual issue is. Post details. Maybe a screenshot will help.

jaspervd

I have the exact same problem.

I tried clearing my browser cache, restarted my computers, tried different browsers etc but my layout just won't change.

Here is my website:
http://www.fpsguru.com/jen/index.php

the top of my website (the header picture) is saved in the template.html file of my modified water_drop theme, so whenever I switch to a different theme that header should be gone, since I didn't add it to any of the other installed themes, but as you can see they all have the same header:

http://www.fpsguru.com/jen/index.php?theme=igames
http://www.fpsguru.com/jen/index.php?theme=classic

So I began a research, and somehow my website is still displaying the water_drop theme template.html, even when I edit this file and re-upload it it will still display the old version!!

I tried deleting the theme and switched to a different theme in the admin section,
but when I look at the source of my gallery it is still loading the water_drop theme:

<link rel="stylesheet" href="themes/water_drop/style.css" type="text/css" />

I have tried everything but my site wont stop displaying that old template.html, even when its not on the server anymore :S

steveeh131047

Looking at the source code for your page, the image is stored outside any of your theme folders at:
......./gallery/header.jpg.

Is the header picture being injected via {CUSTOM_HEADER} ? If so that is independent of the theme (I think)

jaspervd

Quote from: steveeh131047 on April 13, 2008, 08:43:44 PM
Is the header picture being injected via {CUSTOM_HEADER} ? If so that is independent of the theme (I think)
No I did not use the {CUSTOM_HEADER} function, this is the source of /water_drop/template.html at the current moment on the server:


</head>
<body>
<table width="34343434433443433434960" border="0" align="center">
<tr><td align="center"><img src="goawayyoustupidpicture" style="margin-bottom:0px; padding:0px  border:0px; "></td></tr>
<tr><td>
  <table>
    <tr>


I have added lots of other stuff to my template.html, but they just wont show up in the browser, I keep on seeing this old page.

Does coppermine perhaps cache template.html files somewhere?? (in the database perhaps)

steveeh131047

Interesting!

In my browser (Firefox) the source code for the header picture is:

<table width="960" border="0" align="center">

<tr><td align="center"><img src="http://fpsguru.com/jen/gallery/header.jpg" style="margin-bottom:-15px; padding:0px  border:0px; "></td></tr>
<tr><td>


Is the strange table width in your code any clue?

jaspervd

Quote from: steveeh131047 on April 13, 2008, 09:05:24 PM
Interesting!

In my browser (Firefox) the source code for the header picture is:

<table width="960" border="0" align="center">
<tr><td align="center"><img src="http://fpsguru.com/jen/gallery/header.jpg" style="margin-bottom:-15px; padding:0px  border:0px; "></td></tr>
<tr><td>


Is the strange table width in your code any clue?
I just added that huge width so I would quickly notice it once it was loading the latest template.html and not the old one its displaying now.

I also get the same source as you, everyone does, but the strange thing is why  ???  no file saved on the server has that line of code in it, it was part of an old template.html which I have already updated

Nibbler

Delete the template.html from your gallery root directory. Don't upload it there - only in the theme's directory.

jaspervd

thanks a lot, problem solved :)

I somehow uploaded it also in the root folder and forgot to delete it