Ok here I go (because i can see you have certainly tried to change you code properly).
I saw you have it partially working bot it's not really proper html. You have meta tags and links to your css files inside your body and these are supposed to be in you head section.
Here is a step by step explanation how i would have done it.
1. Open mboard.php file.
Then change lines 255-268
Code: Select all
$content="<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">
<html>
<head>
<title>$subject</title>
<meta content=\"text/html; charset=windows-1250\">
<link href=\"$settings[mboard_url]/style.css\" type=\"text/css\" rel=\"stylesheet\">
<META HTTP-EQUIV=\"Expires\" CONTENT=\"-1\">
<META HTTP-EQUIV=\"Pragma\" CONTENT=\"no-cache\">
<script language=\"Javascript\" src=\"$settings[mboard_url]/javascript.js\"><!--
//-->
</script>
</head>
<body>
";
to
Code: Select all
$content="<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd\">
<html>
<head>
<title>$subject</title>
<meta content=\"text/html; charset=iso-8859-1\">
<link href=\"http://club-amigos.co.uk/amigos_style.css\" rel=\"stylesheet\" type=\"text/css\">
<link href=\"$settings[mboard_url]/style.css\" type=\"text/css\" rel=\"stylesheet\">
<META HTTP-EQUIV=\"Expires\" CONTENT=\"-1\">
<META HTTP-EQUIV=\"Pragma\" CONTENT=\"no-cache\">
<script language=\"Javascript\" src=\"$settings[mboard_url]/javascript.js\"><!--
//-->
</script>
</head>
<body>
";
I would not include your own meta tags as they are not really needed for this page. These mostly make sense for your index.htm page.
Then change lines 623-634
Code: Select all
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">
<html>
<head>
<title>$settings[mboard_title]</title>
<meta content=\"text/html; charset=windows-1250\">
<link href=\"style.css\" type=\"text/css\" rel=\"stylesheet\">
<script language=\"Javascript\" src=\"javascript.js\" type=\"text/javascript\"><!--
//-->
</script>
</head>
<body>
";
to
Code: Select all
echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd\">
<html>
<head>
<title>$settings[mboard_title]</title>
<meta content=\"text/html; charset=iso-8859-1\">
<link href=\"http://club-amigos.co.uk/amigos_style.css\" rel=\"stylesheet\" type=\"text/css\">
<link href=\"style.css\" type=\"text/css\" rel=\"stylesheet\">
<script language=\"Javascript\" src=\"javascript.js\" type=\"text/javascript\"><!--
//-->
</script>
</head>
<body>
";
2. Open header.txt file.
Insert the following of your code
Code: Select all
<div id="wrapper">
<div id="navcontainer">
<ul>
<li> <a href="http://www.club-amigos.co.uk/index.htm">Home</a> </li>
<li> <a href="http://www.club-amigos.co.uk/faq.htm">FAQ's</a> </li>
<li> <a href="http://www.club-amigos.co.uk/links.htm">Links</a> </li>
<li> <a href="http://www.club-amigos.co.uk/feb.html">Calendar</a></li>
<li> <a href="http://www.club-amigos.co.uk/mboard/mboard.php">Forum</a></li>
<li> <a href="http://www.club-amigos.co.uk/guestbook/gbook.php">Guestbook</a></li>
<li> <a href="http://www.club-amigos.co.uk/album.htm">Album</a></li>
<li> <a href="http://www.club-amigos.co.uk/contact.html" id="last">Contact</A>
</ul>
</div>
<div id="content">
<h1>Guestbook</h1>
3. Open the footer.txt file
Insert the following code
Code: Select all
<div id="footer">x</div>
</div>
</div>
4. If you want to left align the list with topics in the start page of the forum, add this to you style.css file
5. If you want to align text in the displayed topic left (like it shows in Firefox) you should add
to the style.css file
and change the following lines in mboard.php
line 284
Code: Select all
<p><a href=\"$settings[mboard_url]/mboard.php?a=delete&num=$count&up=$up\"><img
to
Code: Select all
<p class=\"left\"><a href=\"$settings[mboard_url]/mboard.php?a=delete&num=$count&up=$up\"><img
and
line 294
to
I think this should create good style.
For doctype i would not use xhtml doctype because the forum script is html4 and does not comply to xhtml standards.
I hope this is the light at the end of the tunnel for you.
And I hope you learn to write clean html 'code' because messy code can create unpredictable pages.
Greetings,
Henrie