Jump to content
MakeWebGames

header support


PHPDevil

Recommended Posts

Hi, I want to modify my header completely and well make a new design.

Im just curious on how mccodes manages to place the header around each page. I can't seem to work out how this header appears on every page.

does anyone know?

thanks

header.php

Although, agreed, the source isn't exactly "eye-candy".

Link to comment
Share on other sites

globals.php instantiates the headers class; somewhere near the bottom, and calls a few functions to prepare the page: startheaders(), userdata() and menuarea(). With a little thinking about how the headers class is instantiated, you can actually get rid of the dreaded "one-page-behind" that has plagued McCodes for too long.

Link to comment
Share on other sites

globals.php instantiates the headers class; somewhere near the bottom, and calls a few functions to prepare the page: startheaders(), userdata() and menuarea(). With a little thinking about how the headers class is instantiated, you can actually get rid of the dreaded "one-page-behind" that has plagued McCodes for too long.

Although true, he would need to edit the header.php file to address his main issue, " I want to modify my header completely and well make a new design."

Link to comment
Share on other sites

thanks for your support.

i roughly have some indication on how this works now with all these functions.

Instead of messing with then i decided just to redo the design of the page first but even thats causing me poblems.

for example if i wanted to move the main body within a div class as i hate using tables for the design, the entire page disappears and only banner remains?

im hoping someone knows whats going on....trying to make the main menu area 200 pixels wide in a div and the rest of the page 800 pixels. Of course all of this is in a main div cotainer thats set margin: 0 auto and width: 1000px

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...