Messages not being viewed correctly in forum.

Is message board greying out your hair (at least what's left of it)? Let us help you here
clubamigos99
Posts: 62
Joined: Mon Feb 20, 2006 4:20 pm

Messages not being viewed correctly in forum.

Post 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.
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post 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
clubamigos99
Posts: 62
Joined: Mon Feb 20, 2006 4:20 pm

Post by clubamigos99 »

Can you tell me what needs to be done to rectify the problem please , as l am not to sure.
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post 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
clubamigos99
Posts: 62
Joined: Mon Feb 20, 2006 4:20 pm

Post 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.
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Doesn't happen in new posts, just tested...
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image 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
clubamigos99
Posts: 62
Joined: Mon Feb 20, 2006 4:20 pm

Post 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.
clubamigos99
Posts: 62
Joined: Mon Feb 20, 2006 4:20 pm

Post by clubamigos99 »

Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post 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
clubamigos99
Posts: 62
Joined: Mon Feb 20, 2006 4:20 pm

Post 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
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post 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
clubamigos99
Posts: 62
Joined: Mon Feb 20, 2006 4:20 pm

Post 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?
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post 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
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

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 Image

Image 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
clubamigos99
Posts: 62
Joined: Mon Feb 20, 2006 4:20 pm

Post 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?
Locked