Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

No banner in IE

Asked Modified Viewed 3,751 times
B
beowulf
B
  • Junior Member, joined since
  • Contributed 14 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions
asked
Junior Member

I'm currently using the DJ Theme on PHPFusion 6. One problem I'm having is that the banner wont' display in Internet Explorer, but when I open the website with FireFox it displays just fine.
Not quite sure where to start looking, so any advice and suggestions are welcome.
The URL for website is: www.aquabarstl.com

Thanks.
Edited by beowulf on 10-02-2009 04:34,
0 replies

8 posts

Y
ytterx
Y
ytterx 10
YtterX
  • Member, joined since
  • Contributed 163 posts on the community forums.
  • Started 1 thread in the forums
answered
Member

an IE fault.. plz check for w3 validation errors:
http://validator.w3.org/check?uri=htt...mp;group=0 (direct link)
0 replies
H
hame
H
hame 10
  • Senior Member, joined since
  • Contributed 423 posts on the community forums.
  • Started 44 threads in the forums
answered
Senior Member

Another thing that might work is clearing your cache, cookies and Web History. Other then that, ive also noticed IE not displaying quite a few Themes properly. - Good Luck
0 replies
S
SiteMaster
S
If i have touched it, it's W3C Valid
  • Senior Member, joined since
  • Contributed 305 posts on the community forums.
  • Started 15 threads in the forums
answered
Senior Member

is it a fault in IE when it wont show wrong formatted code ?

and no im not an IE fan
0 replies
Y
ytterx
Y
ytterx 10
YtterX
  • Member, joined since
  • Contributed 163 posts on the community forums.
  • Started 1 thread in the forums
answered
Member

well, the other browsers shows it good and the w3 is an GUIDELINE it will only help to fix errors better, not display everything always the same.
0 replies
B
beowulf
B
  • Junior Member, joined since
  • Contributed 14 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions
answered
Junior Member

Thanks for replies, everybody. I'll try to go by that list from W3 and see if I can fix any errors.
0 replies
B
beowulf
B
  • Junior Member, joined since
  • Contributed 14 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions
answered
Junior Member

I'm still bummed with this issue...

I don't know much about programming in PHP (as you can tell), so I've been trying to lookup few things on google, but without much luck.
The problem is that my header won't display in internet explorer but it shows up in firefox. I've been looking at the theme.php file in my theme directory and it looks like the header.jpg is loaded as a background of a table used in header. I'm not sure if this is what's causing the issue with IE.

Here's some of the code:


<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";

// theme settings
$body_text = "#fff";
$body_bg = "#454545";
$theme_width = "820";
$theme_width_l = "170";
$theme_width_r = "170";

function render_header($header_content) {
global $theme_width;

echo "
<table align=center width=$theme_width height='13' background=".THEME."images/bg1.jpg border=0 cellspacing=0 cellpadding=0>
<tr></tr>
</table>
";
echo "
<table align=center width=$theme_width height='170' background=".THEME."images/header.jpg border=0 cellspacing=0 cellpadding=0>
<tr></tr>
</table>
";
echo "
<table align=center width=$theme_width height='13' background=".THEME."images/bg2.jpg border=0 cellspacing=0 cellpadding=0>

<tr></tr>
</table>
";

echo "
<table align=center width=$theme_width height=44 class='nuorodos1' background=".THEME."images/bg3.jpg cellspacing=0 cellpadding=0>
<tr><td height=25 class='nuorodos2' align=left style='padding-left:20px;'>"; echo showsublinks("&nbsp;&nbsp; ",white); echo "</td></tr>
</table>
";

echo "<table align='center' cellspacing='0' cellpadding='0' width='$theme_width' >
<tr>
<td>
\n";
}



Any suggestions on what to do next, where to look at? I really like this theme and it would be nice if I could get this working.
Thanks for help.
0 replies
B
bite
B
bite 10
  • Member, joined since
  • Contributed 163 posts on the community forums.
  • Started 5 threads in the forums
answered
Member

Table can't have background attribute.
From table tags, only TH and TD can have background, only in style attribute.
for example you have this:
<table align='center' width='$theme_width' height='13' background='".THEME."images/bg1.jpg' border='0' cellspacing='0' cellpadding='0'>
<tr></tr>
</table>

It must be:
<table align='center' width='$theme_width' height='13' border='0' cellspacing='0' cellpadding='0'>
<tr><td style='background-image:url(".THEME."images/bg1.jpg);'></td></tr>
</table>

That's the only valid way to set background image in table.
0 replies
B
beowulf
B
  • Junior Member, joined since
  • Contributed 14 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions
answered
Junior Member

Quote

bite wrote:
Table can't have background attribute.
From table tags, only TH and TD can have background, only in style attribute.


You're the man. I deleted the header code that came with template and used the one you wrote. Had to play around with few leftover tags, but works perfect now.
Thanks for your help.
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 8 posts
  • Votes 0 votes
  • Topic users 5 members

0 participants

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet