Throwing the tables out on page

Is message board greying out your hair (at least what's left of it)? Let us help you here
Locked
Matt

Throwing the tables out on page

Post by Matt »

Script URL: www.echobeatmusic.com/mboard/mboard.php
Version of script: 1.21
Version of PHP: 4.3.11
Hosting company: eukhost.com
Have you searched THIS FORUM for your problem: yes
(if not please do before posting)
If so, what terms did you try:
tables, customization, style sheets
Write your message below:

I've made this script work fine, its a great little script, but i've got a couple of issues concerning it within my website, my site is a simple table driven affair, with menu down the left and main data in the middle. I've taken the area above my mboard into the header and the part below into the footer.

But if you click down the links in my menu when you hit the forum button it throws it off, they all bump up about quarter of an inch. Its really bugging me. I've left a huge cell on the bottom below the forum link to push all the others up as IE doesn't seem to let them do what my table properties say and thats the cells should only be 25px high, whereas firefox does, effin ie.

I guess this isn't a real issue for you, but its such a bug for me, its a real pain in the arse. What do you suggest, i've never coded an iframe before, would this work better?

cheers
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Hi,

I see what you mean. The problem could be your header and footer code, if you look at http://www.echobeatmusic.com/mboard/mboard.php source code you will see the <head> declared twice with different HTML versions (4.0 default by MBoard and then 4.01 in your header code).

Try this if it helps:

Open mboard.php in a PLAIN TEXT editor (like Notepad ort Wordpad). Use the search function to find this text:

function printTopHTML() {

A few lines below you will find this code, delete it:

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>
";
Add this to your header.txt, somewhere in the head (between <head> and </head>):

Code: Select all

<script language="Javascript" src="javascript.js" type="text/javascript"><!--
//-->
</script>

Also delete this from your footer.txt:
</body>
</html>

Save, upload and test. Does it make a difference (you will need to refresh the mboard page)?

You could try an iframe, but I personally am not a fan of them.

Regards
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
Matt

Post by Matt »

Thanks for your prompt reply Klemen, i hope you get paid a decent wage for your skills in one form or another!

Anyhow, i did as you said and its given me a white screen, completely thrown out my style sheet it would appear, its odd as the style sheet for the mboard works now but mine doesn't, weird.

Thanks again, this may well have helped, but as my bgcolor is now apparently white, i couldn't tell you, anyhow, i'll have a fiddle and get back to you.

cheers
Matt

Post by Matt »

Ugh, its late and i messed it up good now, too tired to remember what i did. I made it all work okay last night, but i'm basically sorting out all the small things in my site, you had probably noticed by my new index page being index2.php and index.php differ, all links in the new one point at new pages, as i say, sorting out the little annoying bits.

Really want to dump by Ipb for your board, i dont get enough interest in the forum and have no need for the clunkyness that it has.

Just irritating me that i had it all sorted last night and i messed it without keeping a backup, bollocks eh. Oh well.

I'll have another bash in the morning, when i am a little more awake, appreciate your input and your script, goodwork!
Matt

Post by Matt »

I dont get tables, is there anyway to make a table stay to the dimensions that you've specified without it breaking lose, so that content inside has to be lost due to the fact that the table is such a size.

My table layout is pretty simplistic, in IE it works in ever page other than the message board, and in FF it works okay in all but the message board and the reviews, its bloody weird and driving me mad. I haven't done anything different in any of these, used the same layout as the other pages.

Oh well, its not too much if a disturbance, perhaps i'll just change the layout and put the site links on the top for the message board, really would rather not though.

Cheers
FruitBeard
Posts: 38
Joined: Thu Jul 21, 2005 6:25 pm

your forum

Post by FruitBeard »

hi there,

email me your files and i'll sort it out for you.

i would need mboard.php your css.sheets.

http://www.fgps.com/keith/

:idea:
FruitFully yours

http://www.fgps.com/keith/
Matt
Posts: 1
Joined: Tue Aug 16, 2005 12:38 pm

Post by Matt »

pm sent fruitbeard, although i can't find your email address on your site!

cheers
Locked