Jump to content
MakeWebGames

Recommended Posts

Posted

Simple Header made for those who are just getting started with a game and want to change from the mcc Default layout (Simple & Free)

Header.php

Stylesheet (CSS)

images all need to go in an image folder

W3C Validated

Ive also used a sprite might wanna have a look at it you can do great things having sprites when using loads of images

 

Tested in Browsers Opera - IE7 - IE8 - IE9 -Firefox

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

If you need anything changed or added let me know

Thanks

 

http://img411.imageshack.us/img411/2251/headerpe.png

http://www.2shared.com/photo/CqspSUgR/new_header.html <<--- PSD

Posted
is deprecated - Update it

LOL did you just look that up or something?

No? I keep up too date with stuff, Alot of people are still using it, So I'm telling them not too as sooner or later they'll remove it totally :)

Posted
Very good job man!

 

Just a few suggestions

  • <font> is deprecated - Update it
  • All the IP info there isn't needed $_SERVER['REMOTE_ADDR'] done.

Apart from then too, Good work ;D

 

a yeah forgot about the Font.. easily done just need to add it to the css stylesheet and define it from there with a class

for the IP your right but no harm is done with 2 extra lines ^^

Posted
Can someone covert it so it works on lite
Im sure if you read trough the code you could do it you self with out converting

Make sure you understand the stylesheet and class set in Header.php then see the sqls and change accordingly, any errors i will help you out

Posted
ob_start ("ob_gzhandler");

 

I dunno about that. It requires zlib installed on the server. So if you have zlib then your better just using zlib output compression.

checked

zlib.output_compression Off

zlib.output_compression_level-1

zlib.output_handler no value

so zlib would be better?

i have gzib tough!

Posted
is deprecated - Update it

LOL did you just look that up or something?

No? I keep up too date with stuff, Alot of people are still using it, So I'm telling them not too as sooner or later they'll remove it totally :)

When will that be then?

HTML 4 Not Deprecated

XHTML 1.0 Deprecated.

XHTML 2.0 (cancelled)

HTML 5 Not Deprecated.

So when? HTML 6 in about another Ten years?

Keep up too date with W3C not XHTML 1.0 bud :)

PaddyTM sweet work well done.

Posted
Use ob_start(); to avoid chances of errors then.

Oh and look up at php.net which one is preferred and why.

didn't find what i wanted but since i found something, its good for others that like me are interested to read this

Enabling the zlib output compression can speed up the load times considerably(up to 7x and more), particularly on pages which are comprised mostly of html code without pictures,

These directions apply for Apache servers with PHP, and the zlib compression module installed, which is the case with the majority of the servers.

To enable the compression , you just have to add the following 2 lines to the .htaccess file which resides in the www directory of the server. If there is no such file, create it:

php_flag zlib.output_compression on

php_value zlib.output_compression_level 2

That's it. Providing the server supports it, you should now experience considerable diference in how fast the pages are displayed.

So its good but i still need to compare though

Posted

For the mccode v2 you need to make it in order E.G

1. replace header.php with this : [have the code here]

2. replace style.css with this : [have code here]

3. create a folder called images and upload them [images found below]

That would be easier because at the moment i dont have a clue of what to do.

Posted

@DJK..

 

The <font> Tag Should NOT be Used

The <font> tag is deprecated in the latest versions of HTML (HTML 4 and XHTML).

The World Wide Web Consortium (W3C) has removed the <font> tag from its recommendations. In future versions of HTML, style sheets (CSS) will be used to define the layout and display properties of HTML elements.

Check..

Posted

The <font> tag in HTML is deprecated. It is supposed to be removed in a future version of HTML.

Even if a lot of people are using it, you should try to avoid it, and use styles instead.

http://www.w3.org/TR/1999/REC-html401-19991224/ (w3c HTML4 specifications - font tag still exists)

http://dev.w3.org/html5/spec/Overview.html (w3c HTML 5 Specifications - font tag still exists)

So all in all you're still safe to use;

<font>

<cite>

<u>

so on!

 

Think about semantices wise it all makes sense :)

Posted

Oh yeah me too :P

However I'm only stating that even though you're correct in pointing out it's deprecated it is still safe to use in HTML4 and HTML5 only XHTML 1.0 curses at you for using it :)

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...