Jump to content

PHP - Problem with forum aligning to left in IE


clubsoton

Recommended Posts

I am trying to work out how to prevent the forum from aligning to the left when you click on a thread. I have been told the solution in another forum, having followed there instructioms by alas it does not work.

This is there solution:

Then I looked at what was different between the index.htm page and the mboard.php page. This was the headers. I pasted the headers of the index.htm page in my mboard_php.html page and it showd ok. I then tried to narrow down what of the header made the difference. It turned out to be doctype declaration. In the presented mboard page you declare the following doctype
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
In your index.htm page you declare the following doctype
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">

When i replace the first with the second it works for me.

The same is true for your 31.html file this also works when i have the second doctype declaration.

I discovered another thing.
When i look at the source code from the pages created by mboard (mboard.php and 31.html) i see two doctype declarations and two <title> sections. One from the code generated by mboard.php and one from your header.txt file. When i save this page to my computer the code is cleaned up and the double doctype declaration and the double <title> section is cleaned so that only on exists (as it should).

This leads to my conclusion that you should really change the code in mboard.php or header.txt so that only one header section exists. You should choose to create the header of the html file with mboard.php (and therefor delete it in the header.txt file. Or create the header with your header.txt file and delete the part in mboard.php file which creates the headers.
Be aware that in mboard.php there are two portions that create headers.
One for the posted messages (in function createNewFile) and one for the forum startpage (in function printTopHTML).


If you click here this is the forum:

[a href=\"http://www.club-amigos.co.uk/mboard/mboard.php\" target=\"_blank\"]http://www.club-amigos.co.uk/mboard/mboard.php[/a]

I am at a loss as to what l am doing wrong, any help would really really be appreciated.[/url]
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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

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

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.