1
Xman04
Firefox does not display redirect page properly
  • 2007/1/5 17:28

  • Xman04

  • Not too shy to talk

  • Posts: 180

  • Since: 2004/7/12


I'm using the 7Xred theme. The system_redirect page looks fine in Internet Explorer, but it is not centered in Firefox. I tried making a few changes, but nothing seems to work. Even the font looks different.

Does anyone have any ideas how to fix this? I'm sure it is something very simple that I'm missing.

** By the way, the 7Xred theme comes with its own custom system_redirect html file.

Dave

2
Will_H
Re: Firefox does not display redirect page properly
  • 2007/1/5 21:39

  • Will_H

  • Friend of XOOPS

  • Posts: 1786

  • Since: 2004/10/10


hmm, it may help if you post up the html for the template.

Firefox tends to ignore sloppy non compliant code.

Resized Image

3
Xman04
Re: Firefox does not display redirect page properly
  • 2007/1/5 22:20

  • Xman04

  • Not too shy to talk

  • Posts: 180

  • Since: 2004/7/12


Hi Biteronboard,

Here is the "original" code for the custom system_redirect.html file:

<html>
<
head>
<
meta http-equiv="Content-Type" content="text/html; charset=<{$xoops_charset}>" />
<
meta http-equiv="Refresh" content="<{$time}>; url=<{$url}>" />
<
title><{$xoops_sitename}></title>
<
style type="text/css">
<!--
body 
background#464646; 
text-aligncenter
font-familyVerdanaArialHelveticasans-serif;
margin:20px;
}
.
div {
    
border1px solid #333;
    
font-size12px;
    
color#333;
    
width500px;
    
border0;
  
background#DFDFDF; 
  
font-weight bold;
  
padding:20px;
}
-->
</
style>
</
head>
<
body>
<
div class="div">
  <
h4><{$message}></h4>
  <
p><{$lang_ifnotreload}></p>
</
div>
<{if 
$xoops_logdump != ''}><br /><div><{$xoops_logdump}></div><{/if}>
</
body>
</
html>

4
badz525
Re: Firefox does not display redirect page properly
  • 2007/1/6 16:30

  • badz525

  • Just popping in

  • Posts: 6

  • Since: 2006/5/18


Well, this is an accessibility problem i guess...

5
Xman04
Re: Firefox does not display redirect page properly
  • 2007/1/6 20:39

  • Xman04

  • Not too shy to talk

  • Posts: 180

  • Since: 2004/7/12


Hi,

Quote:
Well, this is an accessibility problem i guess...


The custom redirect page is being accessed, since both Internet Explorer and Firefox are showing "some" of the custom features of the customized file. As a side note, I don't understand how XOOPS knows which sytem_redirect file to use, since there is also a standard redirect file in the system module of XOOPS. If I delete the custom file, XOOPS once again uses the standard redirect file instead.

Now, back to the issue of the custom redirect page. I'm wondering if Firefox doesn't like all the CSS code and html code being on the same page? I'm not a CSS/html expert, so this is just a possibility I'm considering.

The other thing I noticed was that the html body tag doesn't seem to be referencing the CSS code created for that specific tag. The CSS code for body seems to also be missing a period before it. In any case, I tried adjusting all that, which had absolutely no effect.

I guess I will just have to use the standard file (by deleting the custom file). However, this bothers me, because I like the way the custom redirect page looks in Internet Explorer. It just doesn't center itself or show the correct fonts in Firefox.

Dave

6
Will_H
Re: Firefox does not display redirect page properly
  • 2007/1/6 20:58

  • Will_H

  • Friend of XOOPS

  • Posts: 1786

  • Since: 2004/10/10


Try this instead, basically what this should do is pull in the theme css. You may need to tweak placement, color, ect. But it should be cross browser friendly.

<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<
html>
<
head>
<
meta http-equiv="Content-Type" content="text/html; charset=<{$xoops_charset}>" />
<
meta http-equiv="Refresh" content="<{$time}>; url=<{$url}>" />
<
title><{$xoops_sitename}></title>
<
link rel="stylesheet" type="text/css" media="all" href="<{$xoops_themecss}>" />
</
head>

<
table cellspacing="0" id="Main" align="center">
    <
tr>
      <
td id="centercolumn" style="padding-top:40px; padding-bottom:60px; ">
        <!-- 
Display center blocks if any -->
<
div style="text-align:center;  font-weight : bold;">
  <
h4><{$message}></h4>
  <
p><{$lang_ifnotreload}></p>
</
div>
<{if 
$xoops_logdump != ''}><div><{$xoops_logdump}></div><{/if}> </td>
       </
tr>
</
table>
</
body>
</
html>


The table id of "Main" may need to be adjusted. open up your theme.html and pull the id tag off of the very top table tag.

Let us know.

7
Xman04
Re: Firefox does not display redirect page properly
  • 2007/1/6 21:29

  • Xman04

  • Not too shy to talk

  • Posts: 180

  • Since: 2004/7/12


UPDATE:

I may have received the errors below because I created the new file in wordpad and then changed it to an html file. It may have created it in some kind of unreadable format.

I just used the original file and replaced it with your code, and the errors are now gone. However, I need to play around with the fonts and colors, since only the theme background is showing up at the moment, and not the message text. This may work though. I will let you know.

Thanks for your help!
---------------------------------


Hi Biteronboard,

I tried using the code you posted, but when the redirect page is generated, Internet Explorer displays this page:

{rtf1ansiansicpg1252deff0deflang1033{fonttbl{f0fswissfcharset0 Courier New;}{f1fswissfcharset0 Arial;}} {*generator Msftedit 5.41.15.1503;}viewkind4uc1pardtx0tx959tx1918tx2877tx3836tx4795tx5754tx6713tx7672tx8631f0fs20 par par par par par par par par par par  par  par par 
par 
<{$message}>
par 
<{$lang_ifnotreload}>

par 
par 
<{if $xoops_logdump != ''}>
<{
$xoops_logdump}>
<{/if}>  
par  
par  par par f1par 
}


And I received this page in Firefox:

Not Found
The requested URL 
/<{$url}> was not found on this server.

Additionallya 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


Dave

8
Will_H
Re: Firefox does not display redirect page properly
  • 2007/1/7 2:31

  • Will_H

  • Friend of XOOPS

  • Posts: 1786

  • Since: 2004/10/10


mmkay

First off Get Metapad

You will like it :)

Second, go ahead and retry your original. Though you should open it with metapad and save it as html.

The errors that you are receiving make very little sense, I am using the very same system_redirect on one of my domains and it is cross browser friendly.

I am not really sure what the deal is. I guess it could be as simple as your editor.

9
Xman04
Re: Firefox does not display redirect page properly
  • 2007/1/11 3:56

  • Xman04

  • Not too shy to talk

  • Posts: 180

  • Since: 2004/7/12


Biteronboard,

Quote:
The errors that you are receiving make very little sense, I am using the very same system_redirect on one of my domains and it is cross browser friendly. I am not really sure what the deal is. I guess it could be as simple as your editor.


Yes, it was my editor. Your version of system_redirect works just fine, and I'm going to use it for my site.

I also fixed the original html file that was giving me all the trouble. I added "margin: 0 auto;" to the div style, and that centered it. It was going to drive me crazy until I figured out what was going wrong.

Thanks for the help and the code!

Dave

Login

Who's Online

126 user(s) are online (66 user(s) are browsing Support Forums)


Members: 0


Guests: 126


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits