Page 1 of 1

Need help with embedding in HTML/PHP

Posted: Thu Apr 22, 2010 9:31 pm
by naclfallen
If this needs to be in the PHP section, I apologize. Since the main template is HTML, I figured it would go here.

Here is our website: http://nacleague.com

As you can see, there is a banner up top with buttons and a picture. I will refer to this as the header.

The template you see on the homepage is HTML/CSS. The League page is composed of the CMS script called KML League script. The forums are SMF.

What we are trying to do is, insert that header into every page on the site. Where we have the banner on top and the auto-sized page of content below it. If you need a visual of what I am trying to explain, go to http://www.wogl.org

There you will see the banner on every page with the corresponding auto-sized page below. If anyone can look into it and tell me if there is an easy way to do this, it would be really helpful. It will look more organized with that header on every page. I appreciate any help that can be given.

Re: Need help with embedding in HTML/PHP

Posted: Fri Apr 23, 2010 3:47 pm
by sHobbsWW
Creating a variable (global) or adding a variable to an included php file would solve the problem.

You would create a variable that contains the desired header design code. Then use a simple function to echo it out on every page.
But this is dependent upon whether or not you are using a template system, CMS, etc.. Which I would assume you are and already has a function to echo out the header on each page. If so you would alter that header function / variable to your liking.

Does that help at all? If not, when I get home later I'll take some more time to explain it better.

Re: Need help with embedding in HTML/PHP

Posted: Fri Apr 23, 2010 7:33 pm
by naclfallen
Yes. If you have Xfire, add me if you can haha. I'll PM you the info.