Page 1 of 2
Run time error and web page aligns to left
Posted: Sat Nov 04, 2006 9:58 am
by clubamigos99
Script URL:
http://www.club-amigos.co.uk/mboard/msg/214.html
Version of script: 1.22
Hosting company: 34sp
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:
Write your message below:
When l click on a message in the forum l get a run time error and the web page aligns to the left. Any idea of the cause of this?
Posted: Sun Nov 05, 2006 12:08 am
by Henrie
Hello clubamigos99,
For your not centered page it's the same problem as your guestbook:
Unfortunately Internet Explorer does not interpret the css correctly depending on which doctype is declared in the page.
Compare the page to your other pages to see what difference there is in the doctype.
As a workaround you can add the following style to your body tag in the css:
This way your "wrapper" div also gets centered in internet explorer
As for your runtime error I can't exactly see what is wrong but I get the text
$content=" at the top of the page. So I would look where this code is and then correct the code in that page because that code is probably faulty.
Greetings,
Henrie
Help with removing "content" word at top of websit
Posted: Sat Nov 11, 2006 3:57 pm
by clubamigos99
Hello,
The centering problem is fine now, l cannot work out to get rid of the word "content=" at the top of the screen when l click on a message, can you tell what file l need to look in, in order to rectify this problem. Also what coding l need to change as l am unsure am chaning php coding.
Another problem l am getting is when l click on a message on the forum, l get a gap to the right of the word "Contact" on the nav bar. This is the same problem with the guestbook.
Your help would very much be appreciated.
Posted: Sat Nov 11, 2006 9:03 pm
by Henrie
I searched in pages and found the string $content=" in mboard.php
So I guess something is changed in the mboard.php file that causes wrong parsing of the file.
I suggest replacing the mboard.php file on your server by uploading the original mboard.php file to your server.
Greetings,
Henrie
Posted: Sat Nov 18, 2006 4:07 pm
by clubamigos99
I done this but now it looks event worse!
Please please can you help.
All l done was uploaded the mboard.php file and now for some odd reason it it is not intergtaed into the rest of my site i.e nav bar and header is not showing , l am confused.
I would apperciate it if you could help me out , if you go to this link you will see what l mean:
http://www.club-amigos.co.uk/mboard/mboard.php
Posted: Sat Nov 18, 2006 4:55 pm
by Henrie
You probably had modified the previous mboard.php file to include you stylesheet, so you have to do that again.
Open the mboard.php file and find the following on line 682
Code: Select all
<link href="style.css" type="text/css" rel="stylesheet">
and add this line blow
Code: Select all
<link href="http://club-amigos.co.uk/amigos_style.css" rel="stylesheet" type="text/css">
And find the following on line 311:
Code: Select all
<link href="'.$settings['mboard_url'].'/style.css" type="text/css" rel="stylesheet">
and add this line blow
Code: Select all
<link href="http://club-amigos.co.uk/amigos_style.css" rel="stylesheet" type="text/css">
To get rid of the
$content=" line on top of existing pages you have to open these pages (which can be found in the
mboard/msg/ folder) with a html-editor and remove that code at the start of that page.
I tried to add a new forum message to test if new pages are created correctly but i could not add a new message. Have you set your permissions right?
Greetings,
Henrie
Posted: Sat Nov 18, 2006 6:36 pm
by clubamigos99
That works fine now, you help is greatly appreciated.
One minor issue - how in firefox view do l get the font size in the forum do be the same size as the guestbook.
If it is not possible it does not matter.
Posted: Sun Nov 19, 2006 3:28 pm
by Henrie
I tried several things to change the font-size, but could not get it to work.
By using more stylesheets, the last called stylesheet overrules styles defined in the previous stylesheet(s). I think some styles in your clubamigos stylesheets does that in this case.
So maybe changing the order of the called stylesheets will help (a littel).
I tried adding a "wrapper" div (called <div id="mboard"> )in the header.txt file and defining the font-size to that, but it only change a few font-sizes, not all of them.
So to do that you will probably have to define all elements used in the page in the stylesheet and assing a specific font-size to them all.
Greetings,
Henrie
Posted: Sun Nov 19, 2006 4:27 pm
by clubamigos99
Thanks for your help , l will try and work out why the font size is wrong.
I now have another problem and that is when l click on new postings the nav bar and logo is missing?
If you clickl here you will see what i mean:
http://www.club-amigos.co.uk/mboard/msg/237.html
For other messages it is fine, i.e.:
http://www.club-amigos.co.uk/mboard/msg/230.html
Your help would be appreciated if you could sort this out for me.
Posted: Sun Nov 19, 2006 7:26 pm
by Henrie
Every new message is composed from the information in the mboard.php file and stored in the message folder.
As a result when you change a thing in the mboard.php file it will not be updated in older messages, but new messages will be composed that way.
The link to your clubamigos stylesheet is like this in the generated message
Code: Select all
<link href=\"http://club-amigos.co.uk/amigos_style.css\" rel=\"stylesheet\" type=\"text/css\">
Remove the
\ before each
" from this line in your mboard.php file.
Also remove them in the message files in which this is faulty.
Greetings,
Henrie
Posted: Sun Nov 19, 2006 8:36 pm
by clubamigos99
Thats great thanks , but now l have another problem!
The fonts are now fine, anti-spam works fine.
On upgrading the forum it is not properly intergtated into my website. I have ftp'd all files correctly and made changes to mboard.php and settings.php. Again l totally baffled as to why this is?
Pleqase please can you help.
http://www.club-amigos.co.uk/mboard/mboard.php
header and footer files are fine.
Once l have resolved this issue then all (fingers crossed should be working at last).
Posted: Sun Nov 19, 2006 9:46 pm
by Klemen
Your header and footer files look nothing like your website. All you have in header.txt is
Code: Select all
<div id="wrapper">
<div id="header"> </div>
<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/calender.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>Forum</h1>
and all you have in footer.txt is
Code: Select all
<div id="footer">x</div>
</div>
</div>
Posted: Sun Nov 19, 2006 9:54 pm
by Henrie
Code: Select all
<link href="http://club-amigos.co.uk/amigos_style.css" rel="stylesheet\" type="text/css\">
You have not deleted all
\ that precede
"
Please pay more attention to what you do.
Greetings,
Henrie
Posted: Sun Nov 19, 2006 10:33 pm
by Henrie
Hello Klemen,
When I started my answer your posting was not there, so you beat me to it.
His code looks exactly like his normal page.
He has just added his own stylesheet that takes care of all the layout (like modern pages should be written).
That's a thing i miss in the current Gbook, you have header.txt and footer.txt files to add things to the <body>...</body> section, but nothing to add anything to the <head>...</head> section.
This can be handy when stylesheets of javascript is needed for the code added in header.txt and footer.txt files.
Greetings,
Henrie
Posted: Mon Nov 20, 2006 9:42 am
by Klemen
Hey Henrie,
Ah, didn't even have a detailed look. Thanks for correcting me.