Log in

View Full Version : Need help on php message board script



compsol
02-24-2012, 11:15 PM
Everything, but one feature, works as intended on a message board, written in PHP. (Please use the links, 1 & 2 - about the middle of the post, to see the Ticker display - w/Link 2 showing how I would like for it to look in lieu of looking as Link 1 shows):
The problem I'm having is that I want a "blue background" for the Ticker display. The following piece of code, I thought, would make this "blue background" for the Ticker display but it doesn't work: ************************************************
// Message board title
$settings['mboard_title']="<div bgcolor='yellow'><img src='http://www.droark.com/HHS/images/banhhspc.gif'><br><meta content='text/html;

charset=windows-1250'><script type='text/javascript' src='scripts/ledMarquee.js'></script><LINK rel='stylesheet' type='text/css'

HREF='css/ledMarquee.css'><table><tr><td style='background-image:url('images/bluestrip3.jpg');background-size:340px 37px;'>
<div id='ledmarquee'>Welcome to the Huntingdon High School - Class of 1953 - Message Board</div></td></tr></table>
</title>
<br><body bgcolor='yellow'>";
************************************************
However, an intended "blue background" does NOT show up and looks like this:
Link 1: http://www.droark.com/HHS/Classof53/mboard.php

Now, Link2, below, shows the way I would like it to look:
Link 2: http://www.droark.com/HHS/Classof53/led-marquee.html

This latter one was generated by the HTML code below:

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="GENERATOR" content="Mozilla/4.7 [en] (Win95; I) [Netscape]">
<title>Led Marquee</title>
<! NOTICE: Script found at: http://javascriptsource.com/text-effects/led-marquee.html>
<script type="text/javascript" src="scripts/ledMarquee.js"></script>
<LINK rel="stylesheet" type="text/css" HREF="css/ledMarquee.css">
</head>
<body text="#000000" bgcolor="#FFFFFF" link="#0000CC">
<table align=center width=100%>
<tr>
<td align=center style="background-image:url('images/bluestrip3.jpg');background-size:340px 37px;">
<div id="ledmarquee">Welcome to the Huntingdon High School - Class of 1953 - Message Board</div>
</td>
</tr>
</table>
</body>
</html>
*******************************************
Your Help will be much appreciated.

traq
02-25-2012, 02:08 AM
This really doesn't appear to be a php problem.

The PHP is "working" just fine - it's your markup that is horribly mangled. I would recommend learning how to use HTML and CSS (http://code.google.com/edu/submissions/html-css-javascript/).