Author Topic: [solved] Every category loads with the header  (Read 5477 times)

0 Members and 1 Guest are viewing this topic.

Offline DennisRR

  • Newbie
  • *
  • Posts: 22
    • View Profile
[solved] Every category loads with the header
« on: August 30, 2007, 11:41:37 AM »
on my category pages every category loads the entire header page including all the scripts. I spent weeks to find the cause but nothing. I have 1.7.4. It slows down the pages very much and when I look at the source file of the page, I see that the header is repeated with every category. Can anyone tell me where I might find the cause of this problem. The web site goes live in 2 weeks.
« Last Edit: August 30, 2007, 05:21:53 PM by DennisRR »

Offline n3w

  • Newbie
  • *
  • Posts: 26
    • View Profile
Re: Every category loads with the header
« Reply #1 on: August 30, 2007, 12:48:40 PM »
in-

4images/templates/default/categories.html

search and remove:
Quote
{header}
to remove the overall header

and / or

search and remove:
Quote
{footer}

to remove site overall footer

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Re: Every category loads with the header
« Reply #2 on: August 30, 2007, 01:39:06 PM »
footer is not good.

there is © ;)
cheers
Nicky
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 ...

nicky.net 4 4images
Signature stolen from mawenzi

Offline DennisRR

  • Newbie
  • *
  • Posts: 22
    • View Profile
Re: Every category loads with the header
« Reply #3 on: August 30, 2007, 03:05:13 PM »
Thanks for the fast reply! But it made no difference. Every time a category is loaded, the header loads as well. So on one page where 15 categories show, the source file shows 15 times the header code. There must be a loop somewhere. Any thoughts?

Offline n3w

  • Newbie
  • *
  • Posts: 26
    • View Profile
Re: Every category loads with the header
« Reply #4 on: August 30, 2007, 03:15:48 PM »
@Nickey, i am very sorry.. copyright note just skipped out of my mind.. sorry again  :(

@DennisRR, which template are you using? default?

any screenshot of template and source?

Offline DennisRR

  • Newbie
  • *
  • Posts: 22
    • View Profile
Re: Every category loads with the header
« Reply #5 on: August 30, 2007, 04:23:19 PM »
It's a default template but I've changed it anyway because originally an alternative template caused too many problems. I'll send you a pm with the link because the site is not public yet. I really appreciate it if you could take a look. I'm building a website voluntarily for a non-profit organization. I realized that the repetitive header loop is only on the first subcatagory pages.

Offline DennisRR

  • Newbie
  • *
  • Posts: 22
    • View Profile
Re: Every category loads with the header
« Reply #6 on: August 30, 2007, 05:20:43 PM »
I finally solved it. It was the {header} in category_bit.html
After removing that, speed increased with several hundred percent.

Offline n3w

  • Newbie
  • *
  • Posts: 26
    • View Profile
Re: [solved] Every category loads with the header
« Reply #7 on: August 30, 2007, 08:42:55 PM »
Nice, good to see you solved the problem yourself :)

Best of luck for your project  :)