Fork me on GitHub

Need some help with my sites topic list (Top right)  Bottom

  • Heya everyone, I just installed postnuke and I love it, gj dev team :)

    I am using the Icey theme and I am not sure if it is compatible with the Pheonix rls of Postnuke 0.723. Anyways, there were some minor problems that I fixed but one that is reoccuring is the topics dropdown list on the top right of my page. I tried fixing it myself, no go, then I tried to just take it out, again no go.

    If someone could please help me fix this then I would be greatly appreciated, this is the only aspect of my site that is bothering me, want to get it taken care of :)

    Thanks in advance!

    here is my theme.php file:

    Code

    <?PHP

    /************************************************************/
    /* Ported to PostNuke .7.1.x 3/19/2002 - 3/31/2002          */
    /* by Jan Hübener http://www.nukethemes.de                  */
    /* 350+ themes, translations, modules, forum ...            */
    /* Please report bugs or send new themes to jan@passions.de */
    /************************************************************/

    /************************************************************/
    /* Theme Name: Icey (v1.1)                  */
    /* Theme Developer: Ryan Gomez (http://www.kreativesource.com) */
    /* 02/08/2002                                               */
    /*                                                          */
    /************************************************************/

    /************************************************************/
    /* Theme Colors Definition                                  */
    /*                                                          */
    /* Define colors for your web site. $bgcolor2 is generaly   */
    /* used for the tables border as you can see on OpenTable() */
    /* function, $bgcolor1 is for the table background and the  */
    /* other two bgcolor variables follows the same criteria.   */
    /* $texcolor1 and 2 are for tables internal texts           */
    /************************************************************/

    $bgcolor1 = "#ffffff";
    $bgcolor2 = "#8F9CAC";
    $bgcolor3 = "#ffffff";
    $bgcolor4 = "#8F9CAC";
    $textcolor1 = "#000000";
    $textcolor2 = "#000000";
    $postnuke_theme = true;
    themes_get_language();

    /************************************************************/
    /* OpenTable Functions                                      */
    /*                                                          */
    /* Define the tables look&feel for you whole site. For this */
    /* we have two options: OpenTable and OpenTable2 functions. */
    /* Then we have CloseTable and CloseTable2 function to      */
    /* properly close our tables. The difference is that        */
    /* OpenTable has a 100% width and OpenTable2 has a width    */
    /* according with the table content                         */
    /************************************************************/

    function OpenTable() {
        global $bgcolor1, $bgcolor2;
        echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=\"$bgcolor2\"><tr><td>\n";
        echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"8\" bgcolor=\"$bgcolor1\"><tr><td>\n";
    }

    function CloseTable() {
        echo "</td></tr></table></td></tr></table>\n";
    }

    function OpenTable2() {
        global $bgcolor1, $bgcolor2;
        echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=\"$bgcolor2\" align=\"center\"><tr><td>\n";
        echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"8\" bgcolor=\"$bgcolor1\"><tr><td>\n";
    }

    function CloseTable2() {
        echo "</td></tr></table></td></tr></table>\n";
    }

    /************************************************************/
    /* Function themeheader()                                   */
    /*                                                          */
    /* Control the header for your site. You need to define the */
    /* BODY tag and in some part of the code call the blocks    */
    /* function for left side with: blocks(left);               */
    /************************************************************/

    function themeheader() {
    global $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $index, $thename;
    $slogan = pnConfigGetVar('slogan');
    $sitename = pnConfigGetVar('sitename');
    $banners = pnConfigGetVar('banners');
    $startpage = pnConfigGetVar('startpage');
    $currentlang = pnConfigGetVar('language');
        if (!pnUserLoggedIn()) { $username = pnConfigGetVar('anonymous'); } else { $username = pnUserGetVar('uname'); }
        echo "<body topmargin=\"0\" leftmargin=\"0\" marginheight=\"0\" marginwidth=\"0\" background=\"themes/Icey/images/main-bg.gif\">\n\n";
        if ($banners) {
            echo "<table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" border=\"0\">\n"
            ."<tr>\n"
            ."<td align=\"left\" valign=\"top\" width=\"314\">\n"
            ."<a href=\"index.php\"><img src=\"themes/Icey/images/logo-new.jpg\" border=\"0\"></a>\n"
            ."</td><td>\n";
            pnBannerDisplay();
        }
        echo "</td><td></table>\n";
        echo "<table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" border=\"0\">\n"
            ."<tr>\n"
            ."<td align=\"left\" valign=\"top\" width=\"65%\"><a href=\"index.php\"><img src=\"themes/Icey/images/logo.gif\" align=\"left\" alt=\""._WELCOMETO." $sitename\" border=\"0\"></a></td>\n"
            ."<form action=\"search.php\" method=\"post\">\n"
            ."<td align=\"right\" valign=\"top\">\n"
            ."<font class=\"content\" color=\"#000000\"><b>"._SEARCH." </b>\n"
            ."<input type=\"text\" name=\"query\" size=\"14\"></font></td></form>\n"
            ."<form action=\"search.php\" method=\"get\"><font class=\"content\">\n"
            ."<td align=\"right\" valign=\"top\">\n"
            ."<b>"._TOPICS." </b>\n";
        $toplist = mysql_query("select topicid, topictext from $prefix"._TOPICS." order by topictext");
        echo "<select name=\"topic\"onChange='submit()'>\n"
            ."<option value=\"\">"._ALLTOPICS."</option>\n";
        while(list($topicid, $topics) = mysql_fetch_row($toplist)) {
        if ($topicid==$topic) { $sel = "selected "; }
            echo "<option $sel value=\"$topicid\">$topics</option>\n";
            $sel = "";
        }
        echo "</select></font></td></form>\n"
            ."</tr></table>\n"
            ."<table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" border=\"0\" align=\"center\" bgcolor=\"#F3F4F7\">\n"
            ."<tr>\n"
            ."<td colspan=\"4\"><width=\"1\" height=\"1\" alt=\"\" border=\"0\" hspace=\"0\"></td>\n"
            ."</tr>\n"
            ."<tr valign=\"middle\" bgcolor=\"#ffffff\">\n"
        ."<td align=\"left\" valign=\"top\" width=\"8\" height=\"22\"><img src=\"themes/Icey/images/topnav-left.gif\"></td>\n"
            ."<td width=\"15%\" background=\"themes/Icey/images/topnav-bg.gif\" nowrap><font class=\"content\" color=\"#363636\">\n";
        if (!pnUserLoggedIn()) {
            echo "&nbsp;&nbsp;<font color=\"#ffffff\"><a href=\"user.php\">Create</a></font> an account\n";
        } else {
            echo "&nbsp;&nbsp;Welcome $username!";
        }
        echo "</font></td>\n"
            ."<td align=\"center\" height=\"20\" width=\"70%\" background=\"themes/Icey/images/topnav-bg.gif\"><font class=\"content\">\n"
            ."<A href=\"/\">Home</a>\n"
            ."&nbsp;&middot;&nbsp;\n"
            ."<A href=\"modules.php?op=modload&name=Topics&file=index\">Topics</a>\n"
            ."&nbsp;&middot;&nbsp;\n"
            ."<A href=\"modules.php?op=modload&name=Stats&file=index\">Stats</a>\n"
            ."&nbsp;&middot;&nbsp;\n"
            ."<A href=\"user.php\">Your Account</a>\n"
            ."&nbsp;&middot;&nbsp;\n"
            ."<A href=\"modules.php?op=modload&name=Submit_News&file=index\">Submit News</a>\n"
            ."&nbsp;&middot;&nbsp;\n"
            ."<A href=\"modules.php?op=modload&name=Top_List&file=index\">Top 10</a>\n"
            ."</font>\n"
            ."</td>\n"
            ."<td align=\"left\" valign=\"top\" width=\"8\" height=\"22\"><img src=\"themes/Icey/images/topnav-left.gif\"></td>\n"
            ."<td align=\"right\" width=\"150\" background=\"themes/Icey/images/topnav-bg.gif\"><font class=\"content\">\n"
            ."<script type=\"text/javascript\">\n\n"
            ."<!--   // Array ofmonth Names\n"
            ."var monthNames = new Array( \"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\");\n"
            ."var now = new Date();\n"
            ."thisYear = now.getYear();\n"
            ."if(thisYear < 1900) {thisYear += 1900}; // corrections if Y2K display problem\n"
            ."document.write(monthNames[now.getMonth()] + \" \" + now.getDate() + \", \" + thisYear);\n"
            ."// -->\n\n"
            ."</script></font>&nbsp;</td>\n"
            ."</tr>\n"
            ."<tr>\n"
            ."<td bgcolor=\"#8F9CAC\" colspan=\"5\"><width=\"1\" height=\"3\" alt=\"\" border=\"0\" hspace=\"0\"></td>\n"
            ."</tr>\n"
            ."<tr>\n"
            ."<td bgcolor=\"#180046\" colspan=\"5\"><width=\"1\" height=\"1\" alt=\"\" border=\"0\" hspace=\"0\"></td>\n"
            ."</tr>\n"
            ."<tr>\n"
            ."<td bgcolor=\"#180046\" colspan=\"5\"><width=\"1\" height=\"1\" alt=\"\" border=\"0\" hspace=\"0\"></td>\n"
            ."</tr>\n"
            ."</table>\n"
            ."<!----- Begin Main Content Table ----->\n"
            ."<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" align=\"center\"><tr valign=\"top\">\n"
            ."<td width=\"10\" height=\"1\" border=\"0\" alt=\"\"></td>\n"
            ."<td width=\"175\" valign=\"top\">\n";
        blocks('left');
        echo "</td><td width=\"15\" height=\"1\" border=\"0\" alt=\"\"></td>\n"
            ."<td bgcolor=\"#ffffff\"><width=\"15\" height=\"1\" border=\"0\" alt=\"\"></td>\n"
            ."<td width=\"95%\">\n";
        if ($index == 1){ blocks('centre'); }}

    /************************************************************/
    /* function themefooter()                                   */
    /*                                                          */
    /* Control the footer for your site. You don't need to      */
    /* close BODY and HTML tags at the end. In some part call   */
    /* the function for right blocks with: blocks('right');     */
    /* Also, $index variable need to be global and is used to   */
    /* determine if the page your're viewing is the HomePage or */
    /* and internal one.                                        */
    /************************************************************/

    function themefooter() {
        global $thename, $index, $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $textcolor1, $textcolor2, $sepcolor;
        if ($index == 1) {
            echo "</td><td><width=\"15\" height=\"1\" border=\"0\" alt=\"\"></td><td valign=\"top\" width=\"150\">\n";
            blocks('right');
        }
        echo "</td><td bgcolor=\"#ffffff\"><width=10 height=1 border=0 alt=\"\">\n"
            ."</td></tr></table>\n"
            ."<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" bgcolor=\"#ffffff\" align=\"center\">\n"
            ."<tr align=\"center\">\n"
            ."<td width=\"100%\" colspan=\"3\">\n";
        footmsg();
        echo "</td>\n"
            ."</tr></table>\n";
    }

    /************************************************************/
    /* Function themeindex()                                    */
    /*                                                          */
    /* This function format the stories on the HomePage         */
    /************************************************************/

    function themeindex ($_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $info, $links, $preformat) {
        global $thename, $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $textcolor1, $textcolor2, $sepcolor;
        $anonymous = pnConfigGetVar('anonymous');
        $tipath = pnConfigGetVar('tipath');
        echo "<br><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#ffffff\" width=\"95%\" align=\"center\">\n"
        ."<tr>\n"
        ."<td>\n"

            ."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\n"
            ."<tr>\n"
            ."<td align=\"left\" valign=\"top\" width=\"26\" height=\"30\"><img src=\"themes/Icey/images/sidebox-title-left.gif\"></td>\n"
            ."<td align=\"left\" valign=\"middle\" background=\"themes/Icey/images/sidebox-title-bg.gif\" width=\"100%\" height=\"30\">\n"
            ."<font class=\"option\" color=\"#363636\">&nbsp;&nbsp;<b>$preformat[catandtitle]</b></font>\n"
            ."</td>\n"
            ."<td align=\"left\" valign=\"top\" width=\"6\" height=\"30\"><img src=\"themes/Icey/images/sidebox-title-right.gif\"></td>\n"
            ."</tr>\n"
            ."</table>\n"

            ."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\n"
            ."<tr>\n"
            ."<td>\n"

            ."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\n"
            ."<tr>\n"
            ."<td align=\"left\" valign=\"top\" width=\"15\" height=\"46\"><img src=\"themes/Icey/images/storybox-left.gif\"></td>\n"
            ."<td align=\"left\" valign=\"middle\" background=\"themes/Icey/images/storybox-bg.gif\" width=\"100%\" height=\"46\">\n"
            ."<font color=\"#999999\" size=\"1\">"._POSTEDBY." ";
        echo "$info[informant]";
        echo " "._ON." $info[longdatetime] ($info[counter] "._READS.")</font>\n"
            ."</td>\n"
        ."<td width=\"12\" align=\"left\" valign=\"top\"><img src=\"themes/Icey/images/storybox-right.gif\"></td>\n"
            ."</tr>\n"
            ."</table>\n"

            ."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\n"
            ."<tr>\n"
            ."<td width=\"4\" align=\"left\" valign=\"top\" background=\"themes/Icey/images/sidebox-bar-left.gif\"><img src=\"themes/Icey/images/sidebox-bar-px.gif\"></td>\n"
            ."<td>\n"

            ."<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" width=\"100%\">\n"
            ."<tr valign=\"top\">\n"
            ."<td width=\"800\">\n"
            ."<font color=\"#999999\"><b><a href=\"$links[searchtopic]\"><img src=\"images/topics/$info[topicimage]\" border=\"0\" Alt=\"$info[topictext]\" align=\"right\" hspace=\"10\" vspace=\"10\"></a></B></font>\n";
    echo "$preformat[hometext]<br><br>$preformat[notes]<br><br>$preformat[more]\n";
        echo "</td></tr></table>\n"
        ."</td>\n"
        ."<td width=\"13\" align=\"left\" valign=\"top\" background=\"themes/Icey/images/storybox-content-right.gif\"><img src=\"themes/Icey/images/storybox-content-right-px.gif\"></td>\n"
        ."</tr></table>\n"

            ."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\n"
            ."<tr valign=\"top\">\n"
            ."<td width=\"9\" height=\"29\" align=\"left\" valign=\"top\"><img src=\"themes/Icey/images/storybox-bottom-left.gif\"></td>\n"
            ."<td width=\"100%\" height=\"29\" background=\"themes/Icey/images/storybox-bottom-bg.gif\">&nbsp;</td>\n"
            ."<td width=\"18\" height=\"29\" align=\"left\" valign=\"top\"><img src=\"themes/Icey/images/storybox-bottom-right.gif\"></td>\n"
        ."</table>\n"

        ."</td></tr></table>\n"

        ."</td></tr></table>\n";
    }

    /************************************************************/
    /* Function themeindex()                                    */
    /*                                                          */
    /* This function format the stories on the story page, when */
    /* you click on that "Read More..." link in the home        */
    /************************************************************/

    function themearticle ($_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $info, $links, $preformat) {
       global $thename, $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $textcolor1, $textcolor2, $sepcolor;
        echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#ffffff\" width=\"100%\"><tr><td>\n"
            ."<table border=\"0\" cellpadding=\"1\" cellspacing=\"0\" bgcolor=\"#000000\" width=\"100%\"><tr><td>\n"
            ."<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" bgcolor=\"#ffffff\" width=\"100%\"><tr><td align=\"left\">\n"
            ."<font class=\"option\" color=\"#363636\"><b>$preformat[catandtitle]</b></font><br>\n"
            ."<font class=\"content\">Posted on $info[briefdatetime] "._BY." ";
        echo "$info[informant]";
        if (pnSecAuthAction(0, 'Stories::', "$info[aid]:$info[cattitle]:$info[sid]", ACCESS_DELETE)) {
            echo "<br>[ <a href=\"admin.php?module=NS-AddStory&amp;op=EditStory&amp;sid=$info[sid]\">"._EDIT."</a> | <a href=\"admin.php?module=NS-AddStory&amp;op=RemoveStory&amp;sid=$info[sid]\">"._DELETE."</a> ]\n";
        }
        echo "</td></tr></table></td></tr></table><br>";
        echo "<a href=\"$links[searchtopic]\"><img src=\"images/topics/$info[topicimage]\" border=\"0\" Alt=\"$info[topictext]\" align=\"right\" hspace=\"10\" vspace=\"10\"></a>\n";
    echo "$preformat[fulltext]\n";
        echo "</td></tr></table><br>\n\n\n";
    }

    /************************************************************/
    /* Function themesidebox()                                  */
    /*                                                          */
    /* Control look of your blocks. Just simple.                */
    /************************************************************/

    function themesidebox($block) {
        global $block_side, $thename;
       
        if (empty($block['position'])) {
            $block['position'] = "a";
        }
       
        if ($block['position'] == 'l') {
        echo "<br><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"175\"><tr><td>\n"
            ."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\n"
            ."<tr>\n"
            ."<td align=\"left\" valign=\"top\" width=\"26\" height=\"30\"><img src=\"themes/Icey/images/sidebox-title-left.gif\"></td>\n"
            ."<td align=\"left\" valign=\"middle\" background=\"themes/Icey/images/sidebox-title-bg.gif\" width=\"143\" height=\"30\">\n"
            ."<font class=\"option\" color=\"#ffffff\">&nbsp;&nbsp;<b>$block[title]</b></font></td>\n"
            ."<td align=\"left\" valign=\"top\" width=\"6\" height=\"30\"><img src=\"themes/Icey/images/sidebox-title-right.gif\"></td>\n"
            ."</tr>\n"
            ."</table>\n"
            ."</td>\n"
            ."</tr>\n"
            ."</table>\n\n"
            ."<!----- Side Box Content ----->\n"
            ."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"175\">\n"
            ."<tr valign=\"top\">\n"
            ."<td width=\"4\" align=\"left\" valign=\"top\" background=\"themes/Icey/images/sidebox-bar-left.gif\"><img src=\"themes/Icey/images/sidebox-bar-px.gif\"></td>\n"

            ."<td bgcolor=\"#ffffff\" width=\"166\" align=\"left\" valign=\"top\">\n"
            ."<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" width=\"167\">\n"
            ."<tr>\n"
            ."<td>\n"
            ."$block[content]\n"
            ."</td>\n"
            ."</tr>\n"
            ."</table>\n"
            ."</td>\n"
        ."<td width=\"4\" align=\"left\" valign=\"top\" background=\"themes/Icey/images/sidebox-bar-right.gif\"><img src=\"themes/Icey/images/sidebox-bar-px.gif\"></td>\n"
            ."</tr></table>\n"

            ."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"175\">\n"
            ."<tr>\n"
            ."<td align=\"left\" valign=\"top\" width=\"175\" height=\"29\">\n"
            ."<img src=\"themes/Icey/images/sidebox-bottom.gif\">\n"
            ."</td>\n"
            ."</tr>\n"
            ."</table>\n\n\n";
    }

    if ($block['position'] == 'r') {
        echo "<br><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"175\"><tr><td>\n"
            ."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\n"
            ."<tr>\n"
            ."<td align=\"left\" valign=\"top\" width=\"26\" height=\"30\"><img src=\"themes/Icey/images/sidebox-title-left.gif\"></td>\n"
            ."<td align=\"left\" valign=\"middle\" background=\"themes/Icey/images/sidebox-title-bg.gif\" width=\"143\" height=\"30\">\n"
            ."<font class=\"option\" color=\"#ffffff\">&nbsp;&nbsp;<b>$block[title]</b></font></td>\n"
            ."<td align=\"left\" valign=\"top\" width=\"6\" height=\"30\"><img src=\"themes/Icey/images/sidebox-title-right.gif\"></td>\n"
            ."</tr>\n"
            ."</table>\n"
            ."</td>\n"
            ."</tr>\n"
            ."</table>\n\n"
            ."<!----- Side Box Content ----->\n"
            ."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"175\">\n"
            ."<tr valign=\"top\">\n"
            ."<td width=\"4\" align=\"left\" valign=\"top\" background=\"themes/Icey/images/sidebox-bar-left.gif\"><img src=\"themes/Icey/images/sidebox-bar-px.gif\"></td>\n"

            ."<td bgcolor=\"#ffffff\" width=\"166\" align=\"left\" valign=\"top\">\n"
            ."<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" width=\"167\">\n"
            ."<tr>\n"
            ."<td>\n"
            ."$block[content]\n"
            ."</td>\n"
            ."</tr>\n"
            ."</table>\n"
            ."</td>\n"
        ."<td width=\"4\" align=\"left\" valign=\"top\" background=\"themes/Icey/images/sidebox-bar-right.gif\"><img src=\"themes/Icey/images/sidebox-bar-px.gif\"></td>\n"
            ."</tr></table>\n"

            ."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"175\">\n"
            ."<tr>\n"
            ."<td align=\"left\" valign=\"top\" width=\"175\" height=\"29\">\n"
            ."<img src=\"themes/Icey/images/sidebox-bottom.gif\">\n"
            ."</td>\n"
            ."</tr>\n"
            ."</table>\n\n\n";
    }

    if ($block['position'] == 'c') {
        echo "<font class=\"PN-normal\">$block[content]</font>";
    }
    }


    ?>


    And link to my site: http://killer.uber-fxp.com

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