Paddy Posted May 30, 2010 Posted May 30, 2010 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 Quote
Jordan Palmer Posted May 30, 2010 Posted May 30, 2010 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 Quote
Brad Posted May 30, 2010 Posted May 30, 2010 can someone cover that to mccode lite cause i wanna use that Quote
Zero-Affect Posted May 30, 2010 Posted May 30, 2010 <font> is deprecated - Update itLOL did you just look that up or something? Quote
Jordan Palmer Posted May 30, 2010 Posted May 30, 2010 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 :) Quote
Paddy Posted May 30, 2010 Author Posted May 30, 2010 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 ^^ Quote
Paddy Posted May 30, 2010 Author Posted May 30, 2010 Can someone covert it so it works on liteIm 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 Quote
Brad Posted May 30, 2010 Posted May 30, 2010 Think i coverted it untested You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Brad Posted May 30, 2010 Posted May 30, 2010 no i just tested it the coverted one dont work can someone fix Quote
rulerofzu Posted May 30, 2010 Posted May 30, 2010 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. Quote
Paddy Posted May 30, 2010 Author Posted May 30, 2010 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! Quote
Paddy Posted May 30, 2010 Author Posted May 30, 2010 Looks great well done paddy.Thanks AlucarD Above error has been fixed from V2 to Lite Quote
rulerofzu Posted May 30, 2010 Posted May 30, 2010 Use ob_start(); to avoid chances of errors then. Oh and look up at php.net which one is preferred and why. Quote
Djkanna Posted May 30, 2010 Posted May 30, 2010 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. Quote
Paddy Posted May 30, 2010 Author Posted May 30, 2010 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 Quote
dandre02 Posted June 1, 2010 Posted June 1, 2010 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. Quote
Jordan Palmer Posted June 1, 2010 Posted June 1, 2010 @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.. Quote
Djkanna Posted June 1, 2010 Posted June 1, 2010 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 :) Quote
Jordan Palmer Posted June 1, 2010 Posted June 1, 2010 I'd rather use span anyway. Thanks anyway :) Quote
Djkanna Posted June 1, 2010 Posted June 1, 2010 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 :) Quote
Jordan Palmer Posted June 1, 2010 Posted June 1, 2010 You might be still safe, But it's not recommended, hence why I said too replace it Quote
Djkanna Posted June 1, 2010 Posted June 1, 2010 Again the 'Reccommended' depends on the Doctype you provide for your document :) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.