need help with a template

Discussion in 'PHP' started by scart3r, Nov 7, 2006.

  1. #1
    Hi guys,

    I am having some problems with this one.

    http://www.mesatheliomalawyers.com/

    here is the site. I am trying to use the hypervre program to generate the pages, but it's all coming out weird. What is wrong with the code? Can I change it manually?

    Thanks for taking the time to help me out :)
     
    scart3r, Nov 7, 2006 IP
  2. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #2
    You will have to post your code.
     
    nico_swd, Nov 8, 2006 IP
  3. scart3r

    scart3r Notable Member

    Messages:
    3,513
    Likes Received:
    279
    Best Answers:
    0
    Trophy Points:
    250
    #3
    Oh, sorry - thought you would just view the source. here it is -

    <html>
    <head>
    <title>Your mesothelioma Leading Resource For mesothelioma Information</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

    <link href="style.css" rel="stylesheet" type="text/css">

    <style fprolloverstyle>A:hover {color: #3D5AA9; font-family: Tahoma; font-size: 12px}
    </style>

    <script language="JavaScript">
    <!-- Hide from old browsers
    function a(txt) {
    self.status = txt
    }

    function b() {
    self.status = ""
    }
    // --End Hiding Here -->
    </script>
    </HEAD>

    <body topmargin="0" bottommargin="0" rightmargin="0" leftmargin="0" background="images/back_main.jpg" bgcolor="#273672" link="#0000CC" vlink="#000000" alink="#273672" >
    <table cellpadding="0" cellspacing="0" border="0" align="center" height="521" width="667">
    <tr>
    <td valign="top" width="667" height="521">
    <table cellpadding="0" cellspacing="0" border="0" bgcolor="#FFFFFF" width="667">
    <tr>
    <td valign="top" width="667" height="140" >
    <table cellpadding="0" cellspacing="0" border="0" height="127" width="667">
    <tr>
    <td valign="top" width="667" height="89">
    <table cellpadding="0" cellspacing="0" border="0" height="191">
    <tr>
    <td class="blackbold" valign="top" width="689" height="191">
    <table border="0" width="100%" id="table1" background="images/top_blue.jpg" cellspacing="0" cellpadding="0" height="190">
    <tr>
    <td height="136" width="4%" rowspan="2">&nbsp;</td>
    <td height="110" width="96%">
    <span style="font-size: 8pt">
    <br>
    <br>
    <font size="3"> Logo</font> </span> <font face="Lucida Sans Unicode" style="font-size: 25pt">&nbsp;
    Mesothelioma Laywers Help Service</font></td>
    </tr>
    <tr>
    <td height="26" width="96%">
    <b>
    <font color="#3D5AA9" size="2">
    Connecting you to the most informative articles on the web</font></b></td>
    </tr>
    <tr>
    <td valign="top" colspan="2">
    <table cellpadding="0" cellspacing="0" border="0" height="24" width="667" id="table2">
    <tr>
    <td width="10" height="24" align="center">
    <div style="padding-left:3px; padding-top:0px">
    &nbsp;</div>
    </td>
    <td width="137" height="24" align="center" bgcolor="#E8EFF4">
    <a class="blacktext" href="index.php">
    <span style="text-decoration: none; font-weight:700">Home</span></a></td>
    <td width="10" height="24" align="center" bgcolor="#E8EFF4">
    <font color="#273672"><b>|</b></font></td>
    <td width="150" height="24" align="center" bgcolor="#E8EFF4">
    <b>
    <a class="bar" href="http://www.akte.com.sa/news/index.htm">
    </a>
    <span style="text-decoration: none">
    <font style="font-size: 9pt">Articles</font></span></b></td>
    <td width="10" height="24" align="center" bgcolor="#E8EFF4">
    <font color="#273672"><b>|</b></font></td>
    <td width="145" height="24" align="center" bgcolor="#E8EFF4">
    <b>
    <a class="bar" href="http://www.akte.com.sa/careers/index.htm">
    </a>
    <span style="font-size: 9pt; text-decoration: none">Contact Us</span></b></td>
    <td width="10" height="24" align="center" bgcolor="#E8EFF4">
    <font color="#273672"><b>|</b></font></td>
    <td width="158" height="24" align="center" bgcolor="#E8EFF4">
    <b>
    <a class="bar" href="http://www.akte.com.sa/links/index.htm">
    </a>
    <span style="font-size: 9pt; text-decoration: none">About Us</span></b></td>
    <td width="10" height="24" align="center">&nbsp;
    </td>
    </tr>
    </table>
    </td>
    </tr>
    </table>
    </td>
    </tr>
    </table>
    </td>
    </tr>
    </table>
    </td>
    </tr>
    <tr>
    <td valign="top" width="667" height="309">
    <table cellpadding="0" cellspacing="0" border="0" height="302">
    <tr>
    <td valign="top" width="163" height="302">
    <table cellpadding="0" cellspacing="0" border="0" width="163">
    <tr>
    <td valign="top" width="163" height="10"><img src="images/top.jpg"></td>
    </tr>
    <tr>
    <td class="menu" valign="top" width="163" height="266" background="images/tall.jpg">
    <div style="padding-left:14px; padding-top:4px">

    <h1 align="center" class="menu">mesothelioma Navigation</h1>
    <p><b>Mesothelioma Articles</b><br>
    <span class="menu"> <a href="Mesothelioma/Mesothelioma.php">Mesothelioma</a><BR><a href="Asbestos/Asbestos.php">Asbestos</a><BR><a href="Mesothelioma-And-Asbestos/Mesothelioma-And-Asbestos.php">Mesothelioma And Asbestos</a><BR><a href="Asbestos-Disease-Mesothelioma/Asbestos-Disease-Mesothelioma.php">Asbestos Disease Mesothelioma</a><BR><a href="Mesothelioma-Information-Asbestos-Cancer/Mesothelioma-Information-Asbestos-Cancer.php">Mesothelioma Information Asbestos Cancer</a><BR><a href="Asbestos-Attorney-Cancer-Mesothelioma-Settlement/Asbestos-Attorney-Cancer-Mesothelioma-Settlement.php">Asbestos Attorney Cancer Mesothelioma Settlement</a><BR><a href="Asbestos-Attorney-Cancer-Lawyer-Mesothelioma/Asbestos-Attorney-Cancer-Lawyer-Mesothelioma.php">Asbestos Attorney Cancer Lawyer Mesothelioma</a><BR><a href="Alabama-Attorney-Mesothelioma-Pleural/Alabama-Attorney-Mesothelioma-Pleural.php">Alabama Attorney Mesothelioma Pleural</a><BR></span><br>
    <br>
    <br>
    <b>Additional Resources</b><span style="font-weight: 700"><br>
    </span><font face="Tahoma"><span style="font-size: 8pt" class="menu"><?php

    ((double)microtime()*1000000);

    $linklist = file("randomlink.txt");

    $nlink = sizeof($linklist);

    $rlink = rand(0,$nlink-1);

    $linkdata = $linklist[$rlink];

    echo $linkdata;

    ?>
    </span></font><br>
    <br>
    <b>Additional Resources</b><span style="font-weight: 700"><br>
    </span><font face="Tahoma"><span style="font-size: 8pt"><?php

    ((double)microtime()*1000000);

    $linklist = file("randomlink.txt");

    $nlink = sizeof($linklist);

    $rlink = rand(0,$nlink-1);

    $linkdata = $linklist[$rlink];

    echo $linkdata;

    ?>
    </span></font></p>
    <p align="left"><font face="Tahoma"><script type="text/javascript"><!--
    google_ad_client = "pub-3588397795869293";
    google_ad_width = 728;
    google_ad_height = 90;
    google_ad_format = "728x90_as";
    google_ad_type = "text_image";
    google_ad_channel = "";
    //--></script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script></font></p>
    </div>
    </td>
    </tr>
    <tr>
    <td valign="top" width="163" height="10"><img src="images/bot.jpg"></td>
    </tr>
    <tr>
    <td valign="top" width="163" height="7"></td>
    </tr>
    </table>
    </td>
    <td valign="top" width="20" height="302"></td>
    <td valign="top" width="307" height="302">
    <table cellpadding="0" cellspacing="0" border="0" height="206">
    <tr>

    <td class="blacktext" valign="top" width="342" height="206" >
    <br>
    Welcome to <font color="#000000"> Mesothelioma Laywers Help Service</font>
    &#151; your comprehensive mesothelioma resource. Our
    mission is to give you the facts you need about <i>mesothelioma</i>
    &#151; fast &#151; so you can get on the road to taking
    action right away`.
    <p class="blacktext"><span class="blacktext">The <font color="#000000">Mesothelioma Laywers Help Service</font>
    website provides a ton of information about mesothelioma.
    In addition, you will find extensive information on
    leading mesothelioma to help you on your way to
    success.</span></p>
    <p class="blacktext"><span class="blacktext">Please have
    a look at our mesothelioma articles, products, resources,
    and additional information located throughout <font color="#000000">Mesothelioma Laywers Help Service</font>.</span></p>
    <p class="blacktext"><span class="blacktext">We strive
    to provide only quality articles, so if there is a specific
    topic related to mesothelioma that you would like
    us to cover, please contact us at any time.</span></p>
    <p class="blacktext"><span class="blacktext">And again,
    thank you to those contributing daily to our <b>mesothelioma
    website</b>.<br>
    </span></p>
    <p>&nbsp;</p>
    <p class="blacktext"><span class="blacktext"><?php
    function parse_rss1($f) {
    error_reporting(16);
    $xmlfile = fopen($f, 'r');
    if (!$xmlfile) return('RSS Feed down');
    $readfile = fread($xmlfile ,80000);
    $parsefile = eregi("<item>(.*)</item>", $readfile ,$arrayreg);
    $filechunks = explode("<item>", $arrayreg[0]);
    $count = count($filechunks);
    echo '<font face=verdana>';
    for($i=1 ; $i<=$count-1 ;$i++) {
    ereg("<title>(.*)</title>",$filechunks[$i], $title);
    ereg("<link>(.*)</link>",$filechunks[$i], $links);
    ereg("<description>(.*)</description>",$filechunks[$i], $description);
    echo str_replace('hxaxh','a',"<font style='font-size: 12px;'><hxaxh target=_blank href ='$links[1]'\>".utf8_decode($title[1])."</hxaxh></font>");
    echo "<br><font color=gray style='font-size: 10px;'>".utf8_decode($description[1])."</font><BR>";
    }
    }
    //
    $xmlfeed = 'http://www.tncity.biz/ck.rss.txt';
    parse_rss1($xmlfeed);
    ?>
    </span></p>
    </td>
    </tr>
    </table>
    </td>
    <td valign="top" width="10" height="302"></td>
    <td valign="top" width="167" height="302">
    <table cellpadding="0" cellspacing="0" border="0" width="167">
    <tr>
    <td valign="top" width="167" height="10"><img src="images/top2.jpg"></td>
    </tr>
    <tr>
    <td valign="top" width="167" height="266" background="images/tall2.jpg">

    <div style="padding-left:14px; padding-top:4px">
    <p><a class="blackbold" href="news#.html"> <span style="text-decoration: none">
    News</span></a></p>
    <p><span style="text-decoration: none"><font face="Tahoma"><span style="font-size: 8pt"><?php

    ((double)microtime()*1000000);

    $linklist = file("randomlink.txt");

    $nlink = sizeof($linklist);

    $rlink = rand(0,$nlink-1);

    $linkdata = $linklist[$rlink];

    echo $linkdata;

    ?>
    </span></font></span><br>
    <br>
    <a class="blackbold" href="news#.html"> <span style="text-decoration: none">
    News</span></a></p>
    <p><span style="text-decoration: none"><font face="Tahoma"><span style="font-size: 8pt"><?php

    ((double)microtime()*1000000);

    $linklist = file("randomlink.txt");

    $nlink = sizeof($linklist);

    $rlink = rand(0,$nlink-1);

    $linkdata = $linklist[$rlink];

    echo $linkdata;

    ?>
    </span></font></span><br>
    <br>
    <a class="blackbold" href="news#.html"> <span style="text-decoration: none">
    News</span></a></p>
    <p><span style="text-decoration: none"><font face="Tahoma"><span style="font-size: 8pt"><?php

    ((double)microtime()*1000000);

    $linklist = file("randomlink.txt");

    $nlink = sizeof($linklist);

    $rlink = rand(0,$nlink-1);

    $linkdata = $linklist[$rlink];

    echo $linkdata;

    ?>
    </span></font></span></p>
    </div>
    </td>
    </tr>
    <tr>
    <td valign="top" width="167" height="10"><img src="images/bot2.jpg"></td>
    </tr>
    <tr>
    <td valign="top" width="167" height="7"></td>
    </tr>
    </table>
    </td>
    </tr>
    </table>
    </td>
    </tr>
    <tr>
    <td class="blacktext" valign="top" width="667" height="10" background="images/back_bot.gif" style="background-repeat:repeat-x ">
    <p align="center"><span style="font-size: 2pt">&nbsp;</span><br>
    <span style="text-decoration: none; font-size: 4pt">&nbsp;</span></td>
    </tr>
    <tr>
    <td class="blacktext" width="667" height="23" style="background-repeat:repeat-x " bgcolor="#E8EFF4">
    <p align="center">
    <a href="index.html">
    <span style="font-size: 8pt; text-decoration: none">Home</span></a><span style="font-size: 8pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    &nbsp;</span><font color="#273672"><b>|</b></font><span style="font-size: 8pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    &nbsp;Articles&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    &nbsp;</span><font color="#273672"><b>|</b></font><span style="font-size: 8pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    &nbsp;Contact Us&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    </span><font color="#273672"><b>|</b></font><span style="font-size: 8pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    &nbsp;About Us</span></td>
    </tr>
    <tr>
    <td class="menu" valign="top" width="667" height="37" style="background-repeat:repeat-x ">
    <p align="center"><span style="font-size: 5pt">&nbsp;</span>
    <br>
    © 2006 Mesothelioma Laywers Help Service. All Rights Reserved. <i><b>mesothelioma</b></i><br>
    &nbsp;</td>
    </tr>
    </table>
    </td>
    </tr>
    </table>
    </body>
    </html>

    Thanks :)
     
    scart3r, Nov 8, 2006 IP
  4. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #4
    Well if you think the error is in the parsed source, then you are probably asking in the wrong forum. You might want to ask the CSS guys instead.

    forums.digitalpoint.com/forumdisplay.php?f=39

    Oh, and please use
     wrappers when posting code.
    Code (markup):
     
    nico_swd, Nov 8, 2006 IP
  5. scart3r

    scart3r Notable Member

    Messages:
    3,513
    Likes Received:
    279
    Best Answers:
    0
    Trophy Points:
    250
    #5
    AAGGG!!! THanks anyway. Sorry, first time I have had to seek help for this sort of stuff...
     
    scart3r, Nov 8, 2006 IP