Messages not being viewed correctly in forum.
-
- Posts: 62
- Joined: Mon Feb 20, 2006 4:20 pm
Messages not being viewed correctly in forum.
Script URL: http://www.club-amigos.co.uk/mboard/mboard.php
Version of script: 1.3
Hosting company:34a
URL of phpinfo.php: n/a
URL of session_test.php:n/a
What terms did you try when SEARCHING for a solution:n/a
Write your message below:
For some odd reason when l click on some messages in the forum the style sheet is missing?
Cannot work out why as was working.
(see messages in November)
Also on new posts the site moves to the left, if you enter a new posting and click on the message to view it you will see what l mean.
Any help would be appreciated.
Version of script: 1.3
Hosting company:34a
URL of phpinfo.php: n/a
URL of session_test.php:n/a
What terms did you try when SEARCHING for a solution:n/a
Write your message below:
For some odd reason when l click on some messages in the forum the style sheet is missing?
Cannot work out why as was working.
(see messages in November)
Also on new posts the site moves to the left, if you enter a new posting and click on the message to view it you will see what l mean.
Any help would be appreciated.
For me the new message from 20/Mar/2007 shows ok and the others do not.
I guess the fault is here in post (19/Nov/2006)
In post 20/Mar/2007 which is ok shows:
See the backslashed in rel="stylesheet\" and type="text/css\" in the message from 19/Nov/2006.
I guess this is where it goes wrong.
Greetings,
Henrie
I guess the fault is here in post (19/Nov/2006)
Code: Select all
<link href="http://www.club-amigos.co.uk/mboard/style.css" type="text/css" rel="stylesheet">
<link href="http://club-amigos.co.uk/amigos_style.css" rel="stylesheet\" type="text/css\">
Code: Select all
<link href="http://www.club-amigos.co.uk/mboard/style.css" type="text/css" rel="stylesheet">
<link href="http://club-amigos.co.uk/amigos_style.css" rel="stylesheet" type="text/css">
I guess this is where it goes wrong.
Greetings,
Henrie
-
- Posts: 62
- Joined: Mon Feb 20, 2006 4:20 pm
-
- Posts: 62
- Joined: Mon Feb 20, 2006 4:20 pm
Doesn't happen in new posts, just tested...
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
You should follow me on Twitter here
Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools


Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools
-
- Posts: 62
- Joined: Mon Feb 20, 2006 4:20 pm
-
- Posts: 62
- Joined: Mon Feb 20, 2006 4:20 pm
You have two problems.
1.
In old posts the link to the stylesheet is incorrect as mentioned before.
2.
The alignment is not a problem of the stylesheet. It's a problem of the doctype used in your pages. You use different doctypes for your regular pages and your mboard pages.
In mboard.php file change lines 342 and 742 in which the doctypes are declared so that the doctype is the same as in your other pages.
Greetings,
Henrie
1.
In old posts the link to the stylesheet is incorrect as mentioned before.
2.
The alignment is not a problem of the stylesheet. It's a problem of the doctype used in your pages. You use different doctypes for your regular pages and your mboard pages.
In mboard.php file change lines 342 and 742 in which the doctypes are declared so that the doctype is the same as in your other pages.
Greetings,
Henrie
-
- Posts: 62
- Joined: Mon Feb 20, 2006 4:20 pm
Hello,
In response to your questions.
1. I am confused which is the correct link to the stylesheet?
<link href="http://club-amigos.co.uk/amigos_style.css" rel="stylesheet\" type="text/css\">
or
<link href="http://club-amigos.co.uk/amigos_style.css" rel="stylesheet" type="text/css">
As from what l can gather l have the correct linking to the style sheet as l have the latter coding of the above?
Also what files do l make these changes to?
2. In have made changes to DOCTYPE as you mentioned in mboard.php
In response to your questions.
1. I am confused which is the correct link to the stylesheet?
<link href="http://club-amigos.co.uk/amigos_style.css" rel="stylesheet\" type="text/css\">
or
<link href="http://club-amigos.co.uk/amigos_style.css" rel="stylesheet" type="text/css">
As from what l can gather l have the correct linking to the style sheet as l have the latter coding of the above?
Also what files do l make these changes to?
2. In have made changes to DOCTYPE as you mentioned in mboard.php
This is the correct one:
<link href="http://club-amigos.co.uk/amigos_style.css" rel="stylesheet" type="text/css">
No backslashes should be used.
Greetings,
Henrie
<link href="http://club-amigos.co.uk/amigos_style.css" rel="stylesheet" type="text/css">
No backslashes should be used.
Greetings,
Henrie
-
- Posts: 62
- Joined: Mon Feb 20, 2006 4:20 pm
Changing the mboard.php file will only correct new messages.
Old messages are stored as html pages in the msg directory. The old messages have to be corrected by opening and correcting them individually.
I just took a look at your site (with IE7) and the forum is center aligned as all the other pages. Only problem I can see now that the text of the message I posted is center aligned while the old posts have the text left aligned.
Greetings,
Henrie
Old messages are stored as html pages in the msg directory. The old messages have to be corrected by opening and correcting them individually.
I just took a look at your site (with IE7) and the forum is center aligned as all the other pages. Only problem I can see now that the text of the message I posted is center aligned while the old posts have the text left aligned.
Greetings,
Henrie
Same here, everything is center-aligned in IE7, looks better in Firefox.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
You should follow me on Twitter here
Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools


Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools
-
- Posts: 62
- Joined: Mon Feb 20, 2006 4:20 pm