Fork me on GitHub

Suggestions for layout for my news articles?  Bottom

  • I just started working with a website, and I personally think it looks quite bad, at least the way the news articles are listed. The news articles are basically the entire page (besides the header which includes the menu) and are just plain text, line by line, with a topic image. The webpage is http://www.southcolonieschools.org . Here's the code for the articles:

    Code

    function themeindex ($_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $info, $links, $preformat) {
        $tipath = pnConfigGetVar('tipath'); // path to topic image
        echo "<table width=\"90%\" border=\"0\" cellspacing=\"5\" cellpadding=\"0\">
      <tr>
        <td>$preformat[catandtitle]</td></tr><tr><td>\n"
    ;
        if (pnSecAuthAction(0, 'Stories::Story', "$info[aid]:$info[cattitle]:$info[sid]", ACCESS_EDIT)) {
            echo "<span class=\"pn-sub\">[ <a href=\"admin.php?module=NS-AddStory&amp;op=EditStory&amp;sid=$info[sid]\">"._EDIT."</a>";
            if (pnSecAuthAction(0, 'Stories::Story', "$info[aid]:$info[cattitle]:$info[sid]", ACCESS_DELETE)) {
                echo " | <a href=\"admin.php?module=NS-AddStory&amp;op=RemoveStory&amp;sid=$info[sid]\">"._DELETE."</a> ]";
            } else { echo " ]";
            }
            echo "</span></td></tr><tr><td>\n";
         }
         echo"<div class=\"pn-normal\"><a href=\"$links[searchtopic]\">
        <img class=\"TopicImgLeft\" src=\"$tipath$info[topicimage]\" border=\"0\" alt=\"$info[topictext]\" align=\"left\" hspace=\"5\" vspace=\"5\"></a>\n"
    ;
        echo $preformat['hometext']."</div></td></tr><tr><td>\n"; // $preformat[searchtopic]
    // To change picture from left to right, change class=\"TopicImgLeft\" to class=\"TopicImgRight\"
         if ($preformat['notes']){
            echo "<div class=\"pn-sub\">$preformat[notes]</div></td></tr>\n";
         }
         echo "<tr><td><div class=\"pn-sub\">
         "
    ._PUBLISHED." ".$info['briefdatetime']."<br />
         "
    .$preformat['more']."</div>
        </td>
      </tr>
    </table><p></p><hr width=\"90%\" size=\"3\">\n"
    ;
    }


    Anyone have any suggestions on how I could maybe make the page look a little better? I'm new to working with PHP but I understand what it's doing (I'm a CS grad from Boston College so I've programmed quite a bit)

    Thanks, any suggestions would be appreciated.
  • Hi there,

    The first thing you shoud do is grab the AutoTheme module and use that - it will make your life much easier!

    --
    -Lobos
    Professional PHP Framework Services: Concept, Development and Deployment

This list is based on users active over the last 60 minutes.