Author Topic: Style Sheet Problem  (Read 6728 times)

0 Members and 1 Guest are viewing this topic.

Offline Paddywhacker

  • Pre-Newbie
  • Posts: 4
    • View Profile
Style Sheet Problem
« on: December 20, 2006, 07:19:39 PM »
Hi,
I just updated to version 1.7.4 and am experiencing some issues.
My gallery works but my style sheet (the default one installed) won't display properly. The images in the header won't display properly, nor the footer. Any ideas how I can reset this?

The admin section works fine and the style sheet works fine there also...

Thanks,

Paddywhacker

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Re: Style Sheet Problem
« Reply #1 on: December 21, 2006, 10:43:44 AM »
Can you post a link to your gallery
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline Paddywhacker

  • Pre-Newbie
  • Posts: 4
    • View Profile
Re: Style Sheet Problem
« Reply #2 on: December 21, 2006, 04:28:16 PM »
Sorry - should have done that earlier. It's http://www.paddywhackers.com/gallery

Offline mawenzi

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Style Sheet Problem
« Reply #3 on: December 21, 2006, 04:51:47 PM »
... there is something wrong with your header.html ...
... the code of your header.html is not shown on your website ...
... in header.html is the rel_link to your style.css ...
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline Paddywhacker

  • Pre-Newbie
  • Posts: 4
    • View Profile
Re: Style Sheet Problem
« Reply #4 on: December 21, 2006, 05:16:07 PM »
Thanks mawenzi. The actual file is on the server and is fine. I can put the location directly into my browser and it works fine.

It looks like the index page is not calling it properly... any ideas where I could go to track that down?

Offline KurtW

  • 4images Guru
  • *******
  • Posts: 2.778
    • View Profile
    • Malediven-Bilder ~~Dreams~~
Re: Style Sheet Problem
« Reply #5 on: December 21, 2006, 07:19:24 PM »
Hi,

something in your php files wrong.

Code: [Select]
{header} and
Code: [Select]
{footer} are not included :?

Upload the php files again.

Kurt

Offline Paddywhacker

  • Pre-Newbie
  • Posts: 4
    • View Profile
Re: Style Sheet Problem
« Reply #6 on: December 21, 2006, 08:06:12 PM »
I've resolved the issue. I downloaded the new version 1.7.4 and uploaded the appropriate files, which included page_header.php. However when I compared the new file with the old version I noticed that the following code was missing from the end of the file:

//-----------------------------------------------------
//--- Parse Header & Footer ---------------------------
//-----------------------------------------------------
if (isset($main_template) && $main_template) {
  $header = $site_template->parse_template("header");
  $footer = $site_template->parse_template("footer");
  $site_template->register_vars(array(
    "header" => $header,
    "footer" => $footer
  ));
  unset($header);
  unset($footer);
}

The above code needed to be put after the very last curly brace } and the final ?>
Once I inserted the Parse Header & Footer section everything works out fine.

Note for the developers: does the page_header.php in version 1.7.4 need to be corrected?
Thanks,

Paddywhacker

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Re: Style Sheet Problem
« Reply #7 on: December 22, 2006, 11:01:59 AM »
This part has been moved to includes/template.php since version 1.7.4.
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search