Page 1 of 2
Messages not being viewed correctly in forum.
Posted: Tue Mar 20, 2007 4:51 pm
by clubamigos99
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.
Posted: Tue Mar 20, 2007 5:28 pm
by Henrie
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)
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\">
In post 20/Mar/2007 which is ok shows:
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">
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
Posted: Thu Mar 22, 2007 6:36 pm
by clubamigos99
Can you tell me what needs to be done to rectify the problem please , as l am not to sure.
Posted: Thu Mar 22, 2007 11:31 pm
by Henrie
In the posts that do not display correctly change the lines i mentioned in my previous post so that they are the same as in the post that works (remove the wrong placed backslashes).
The posts can be found in the msg folder inside your mboard folder.
Greetings,
Henrie
Posted: Fri Mar 23, 2007 8:37 am
by clubamigos99
This is occurring with all new posts, so l have to edit new posts, this is a lot of hassle?
There must be a better solution.
Posted: Fri Mar 23, 2007 11:15 am
by Klemen
Doesn't happen in new posts, just tested...
Posted: Fri Mar 23, 2007 4:18 pm
by clubamigos99
If you use IE in 1024 * 768 it definetly aligns to left when you click on post in forum, l will send screenshot for you if you want.
Posted: Fri Mar 23, 2007 5:00 pm
by clubamigos99
Posted: Fri Mar 23, 2007 7:02 pm
by Henrie
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
Posted: Fri Mar 23, 2007 7:34 pm
by clubamigos99
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
Posted: Sat Mar 24, 2007 4:13 am
by Henrie
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
Posted: Sat Mar 24, 2007 9:21 am
by clubamigos99
This is what l am using as l have just checked the mboard.php file.
I don't it is possible to rectify this problem by the sounds of it, would you agree?
Posted: Sat Mar 24, 2007 11:48 am
by Henrie
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
Posted: Sat Mar 24, 2007 12:01 pm
by Klemen
Same here, everything is center-aligned in IE7, looks better in Firefox.
Posted: Sat Mar 24, 2007 12:18 pm
by clubamigos99
For some reason l now get message
Error
You are not allowed to post on this message board!
When l try to post on mboard.
Please can you me why this?