Simple Machines Community Forum

General Community => Scripting Help => Aiheen aloitti: Ryex - tammikuu 20, 2008, 11:16:42 IP

Otsikko: Need a little help
Kirjoitti: Ryex - tammikuu 20, 2008, 11:16:42 IP
I have a small problem I recently a SMF forum on my site and i wanted to use SSI to include the "Boardnews" fuction on my frount page the problem was my front page was written in Html and now in oarder to use SSI it needs to be rewritten in PHP and i cant write it.  I've tried sevral HTML to PHP converters out ther but they always ended up messing up the site so Now I ask you scripters out the i you would be kindly enouf to rewrite my front  page in PHP the HTML coad is below it rathe short so it should not be too hard

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Asan'Tear</title>
<meta http-equiv="Content-Type" content="text/html;  charset=ISO-8859-1">
<link href="style.css" type="text/css" rel="stylesheet">
<style><!--
A { color: #C0C0C0; font-weight:bold; text-decoration: none; }
A:link { color: #C0C0C0; font-weight:bold; text-decoration: none; }
A:visited { color: #C0C0C0; font-weight:bold; text-decoration: none; }
A:active { color: #358391; font-weight:bold; text-decoration: none;  }
A:hover { color: #358391; font-weight:bold; text-decoration: none;  }

body, td, tr{
font-family: verdana;
color:#FFFFFF;
font-size:11;
font-weight:normal;
}

//--></style>
<script language="JavaScript" src="java/javascript.js" type="text/javascript"></script>
<script language="JavaScript" src="java/base.js" type="text/javascript"></script>
<script language="JavaScript" src="java/tabel.js" type="text/javascript"></script>
<link title="SHORTCUT ICON" href="http://www.veebimaja.net/vm01.png" type="picture" rel="SHORTCUT ICON">
</head>
<body bgcolor="#202020" leftmargin="0" background="img/bg.gif" topmargin="0">
<center>
<table height="100%" cellspacing="0" cellpadding="0" width="776" bgcolor="#202020" border="0">
<tbody>
<tr>
<td width="3" bgcolor="#ffffff">&nbsp;</td>
<td valign="top" width="770">
<table cellspacing="0" cellpadding="0" width="770" bgcolor="#202020" border="0">
<tbody>
<tr>
<td valign="middle" align="right" height="32">&nbsp;&nbsp;</td></tr>
<tr>
<td valign="middle" align="left" background="img/headerback.jpg" height="132"><img height="1" alt="" src="img/pixel.gif" width="15" border="0"><img title="" alt="" src="http://i15.photobucket.com/albums/a400/ryex/image005.gif">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <img title="" alt="" src="http://i15.photobucket.com/albums/a400/ryex/glassorbcopy.jpg"></td></tr>
<tr>
<td height="10">&nbsp;</td></tr>
<tr>
<td valign="middle" align="left" background="img/bluebg.gif" height="32"><img height="1" alt="" src="img/pixel.gif" width="15" border="0"><a title="Home" href="/home/www.asantear.890m.com/index.html">Home</a>&nbsp;|&nbsp;<a title="Forum" href="/home/www.asantear.890m.com/Forum/index.php">Forum</a> | <a title="Projects" href="/home/www.asantear.890m.com/projects/index.html">Projects</a> | <a title="Downloads" href="/home/www.asantear.890m.com/downloads/index.html">Downloads</a> | <a title="About us" href="/home/www.asantear.890m.com/aboutus.html">About us</a></td></tr></tbody></table>
<table height="350" cellspacing="0" cellpadding="0" width="770" bgcolor="#464646" border="0">
<tbody>
<tr>
<td valign="top" align="left" width="222" bgcolor="#202020">
<table cellspacing="0" cellpadding="0" width="222" bgcolor="#202020" border="0">
<tbody>
<tr>
<td valign="middle" width="222" height="24">&nbsp; <b>Navagation</b></td></tr>
<tr>
<td onmouseover="javascript:taust(this,'#0F363F')" onmouseout="javascript:taust(this,'#202020')" valign="middle" width="222" bgcolor="#202020" height="24">&nbsp; <a title="Home" href="www.asantear.890m.com/index.html">Home</a></td></tr>
<tr>
<td onmouseover="javascript:taust(this,'#0F363F')" onmouseout="javascript:taust(this,'#202020')" valign="middle" width="222" bgcolor="#202020" height="24">&nbsp; <a title="Forum" href="www.asantear.890m.com/Forum/index.php">Forum</a></td></tr>
<tr>
<td onmouseover="javascript:taust(this,'#0F363F')" onmouseout="javascript:taust(this,'#202020')" valign="middle" width="222" bgcolor="#202020" height="24">&nbsp;&nbsp;<a title="Projects" href="www.asantear.890m.com/projects/index.html">Projects</a></td></tr>
<tr>
<td onmouseover="javascript:taust(this,'#0F363F')" onmouseout="javascript:taust(this,'#202020')" valign="middle" width="222" bgcolor="#202020" height="24">&nbsp; <a title="Downloads" href="www.asantear.890m.com/downloads/index.html">Downloads</a></td></tr>
<tr>
<td onmouseover="javascript:taust(this,'#0F363F')" onmouseout="javascript:taust(this,'#202020')" valign="middle" width="222" bgcolor="#202020" height="24">&nbsp; <a title="About us" href="www.asantear.890m.com/aboutus.html">About us</a></td></tr></tbody></table>
<div style="margin: 0in 0in 0pt" class="MsoNormal"><font face="Times New Roman" color="#000000">&nbsp;</font></div><font face="Times New Roman" color="#000000">
<div style="margin: 0in 0in 0pt" class="MsoNormal"><span style="color: white"><font face="Verdana" size="4">&nbsp;&nbsp; <strong><u>Affiliates</u></strong></font></span></div>
<div style="margin: 0in 0in 0pt" class="MsoNormal"><strong><u><font face="Verdana" color="#ffffff" size="4">&nbsp;</font></u></strong></div>
<div style="margin: 0in 0in 0pt" class="MsoNormal"><span style="color: white"><font size="4"><font face="Verdana">&nbsp;&nbsp; <a href="http://www.freedomain.co.nr/web_hosting_reseller.php" target="_blank"><img height="31" alt="Reseller Hosting" src="http://zsuoara.da.com.ru/ch.gif" width="88" border="0"></a>
<p>&nbsp;</p></font></font></span></div></font></td>
<td valign="top" align="right" width="3" bgcolor="#ffffff">&nbsp;</td>
<td valign="top" align="left" width="10"><img height="32" alt="" src="img/shadow1.gif" width="10" border="0"></td>
<td valign="top" align="left" width="525">
<div align="center"><img height="32" alt="" src="img/shadow1.gif" width="525" border="0"><br>
<strong>Hello and welcome to Asan'Tear!</strong></div>
<div width="10"><img height="32" alt="" src="img/shadow1.gif" width="10" border="0"></div></td></tr></tbody></table>
<table style="border-collapse: separate" height="32" cellspacing="0" cellpadding="0" width="770" bgcolor="#464646" border="0">
<tbody>
<tr>
<td valign="top" align="left" width="222" bgcolor="#202020">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </td>
<td valign="top" align="right" width="3" bgcolor="#ffffff">&nbsp;</td>
<td valign="top" align="left" width="10"><img height="32" alt="" src="img/shadow2.gif" width="10" border="0"></td>
<td valign="top" align="left" width="525"><img height="32" alt="" src="img/shadow2.gif" width="525" border="0"></td>
<td valign="top" align="left" width="10"><img height="32" alt="" src="img/shadow2.gif" width="10" border="0"></td></tr></tbody></table>
<table cellspacing="0" cellpadding="0" width="770" bgcolor="#202020" border="0">
<tbody>
<tr>
<td valign="middle" align="left" width="30" background="img/bluebg.gif" height="32"><img height="1" alt="" src="img/pixel.gif" width="5" border="0"><a href="http://www.veebimaja.net" target="_blank"><img alt="" src="img/veebimaja.gif" border="0"></a></td>
<td valign="middle" align="right" width="740" background="img/bluebg.gif" height="32">&nbsp;</td></tr></tbody></table></td>
<td width="3" bgcolor="#ffffff">&nbsp;</td></tr></tbody></table></center>
</body>
</html>


and if you could insert the in the poper spot at the top of the page

<?php require("/home/a9073023/public_html/Forum/SSI.php"); ?>
Otsikko: Re: Need a little help
Kirjoitti: jamesk - tammikuu 21, 2008, 09:50:44 AP
You don't need to re-write the whole page in PHP.

Just add the SSI in the beginning like:


<?php require("/home/a9073023/public_html/Forum/SSI.php"); ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>


and then wherever you want to include the Boardnews, just add <?php ssi_boardNews(); ?>

For example, you could put it in a table...


<table>
  <tr>
    <td>
        <?php ssi_boardNews(); ?>
     </td>
    </tr>
</table>



[/code]
Otsikko: Re: Need a little help
Kirjoitti: Ryex - tammikuu 21, 2008, 10:36:19 AP
 :o :o :o :o :o :o :o :o :o :o :o

It worked!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

thank you so much!!
O:)
lol
Otsikko: Re: Need a little help
Kirjoitti: jamesk - tammikuu 21, 2008, 10:39:06 AP
You're welcome.  Glad I could help.