Support Forums

A Useful little 'fix' for layout.tpl

This is a discussion on A Useful little 'fix' for layout.tpl within the Templates, HTML, CSS, and Design Help forums, part of the General category; Well not so much a fix as a 'patch up' to cover Internet Explorers dismal rendering failure! Current code with ...


Go Back   68 Classifieds Forums > General > Templates, HTML, CSS, and Design Help

Reply
 
Thread Tools Display Modes
Old 05-17-2009, 10:14 AM   #1
Just get on with it!
 
michael's Avatar
 
Join Date: Jan 2007
Location: Milton Keynes, England
Posts: 470
Rep Power: 30
michael is just really nice michael is just really nice
Lightbulb A Useful little 'fix' for layout.tpl

Well not so much a fix as a 'patch up' to cover Internet Explorers dismal rendering failure!

Current code with problem in red:

Code:
<!-- // Content // -->
<br /><br />
                        {* This includes the content portion *}
                        {include file=$body}
 <!-- // End Content // -->
Those two break tags were so frustrating! I suspect they were only ever placed there because IE sucked at rendering the original code, but by using them all other browsers had to pay the price in the form of some useless, dead whitespace beneath the search bar - right in the top, middle of your home page! I stripped them out and replaced them with a common enough hack as follows;

My new code with solution in red:

Code:
<!-- // Content // -->
<!--[if IE]>
    <br />
<![endif]-->
                        {* This includes the content portion *}
                        {include file=$body}
 <!-- // End Content // -->
__________________
M Michael
V4.2.1 Developer - Sigma Template


"All truths are easy to understand once they are discovered; the point is to discover them" - Galileo Galilei (1564 - 1642)

Last edited by michael; 05-17-2009 at 10:16 AM. Reason: spelling
michael is offline   Reply With Quote
Old 05-18-2009, 10:57 AM   #2
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,493
Rep Power: 132
Eric Barnes is just really nice Eric Barnes is just really nice
Default

Thanks. Would you mind adding this to our bug tracker so I don't forget to fix this?
http://www.68classifieds.com/forums/.../bug-list.html
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline   Reply With Quote
Old 05-18-2009, 12:25 PM   #3
68 Evangelist & Developer
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 2,049
Rep Power: 60
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

Michael,

Thanks for taking the time to post this thread. This is the type of community input that helps everyone and helps make the product better now and in the future. I added to your reputation for this post!
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified & used as the CMS)
Sandbox [localhost(v3.1.10, v4.0.9, 4.1.10,4.2)] for development and customization
Visit My blog: reviews, tips, tricks, tutorials and my store with Templates, Mods & Docs
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline   Reply With Quote
Old 05-18-2009, 12:53 PM   #4
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 2,941
Rep Power: 71
seymourjames is a jewel in the rough
Default

Good one Michael. IE is just a royal pain as they say.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68 Classifieds
seymourjames is offline   Reply With Quote
Old 06-04-2009, 06:39 PM   #5
Just get on with it!
 
michael's Avatar
 
Join Date: Jan 2007
Location: Milton Keynes, England
Posts: 470
Rep Power: 30
michael is just really nice michael is just really nice
Default

IE8 does seem to have upped it's game, the following amendment shoud take care of it;

<!--[if lte IE 7]>
<br /><br />
<![endif]-->

This way, the hack will only be applied to versions of IE that are less than or equal to 7.
__________________
M Michael
V4.2.1 Developer - Sigma Template


"All truths are easy to understand once they are discovered; the point is to discover them" - Galileo Galilei (1564 - 1642)
michael is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
New layout.tpl hel68c Modules / Plugins / Modifications 7 08-11-2008 07:46 PM


All times are GMT -4. The time now is 12:44 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0