Lekker ingewikkeld probleem, eens kijken als iemand kan hlpn  Naar boven

  • Mijn probleem is het volgende :
    Ik heb pn 723 geinstalleerd, met een custom thema (BabyBlue). Als ik admin berichten activeer, als gecentreerd block, dan wordt dit block niet weergegeven bij dit thema. Als ik het thema switch naar eender welk ander thema, dan werkt het wel. Simpel, zou je zeggen, dan scheelt er iets met het thema. Maar hetzelfde thema op pn 0703 heeft dan weer totaal geen problemen met dit block. Zou het kunnen dat het thema dan niet 100% pn 723 compatibel is, en hoe maak ik het 723 compatibel ? Als er iemand is die het denkt te weten, ik kan de code hier posten ...
  • Zou kunnen. Moet ik de code ff bekijken. Waar heb je die gehaald?

    Op het einde van de functie themeheader in theme.php van die theme zou iets moeten staan zoals:
    Code
    if ($index ==1){
            blocks(center);
        }


    __________
    Brave Cobra
  • Normaal gezien zou ik het thema even kunnen uploaden, maar omdat het een commercieel thema is ga ik dat niet doen.

    Hier is alvast wel een groot stuk code, maar
    Code
    if ($index ==1){
          blocks(centre);
       }
    vind ik er nergens in terug ...
    Code
    function themeheader() {
        global $user, $banners, $sitename, $slogan, $cookie, $prefix;
        cookiedecode($user);
        $username = $cookie[1];
        if ($username == "") {
            $username = "Anonymous";
        }
        echo "<!----- PostNuke Theme Copyright BassFace ----->\n\n\n\n\n"
        ."<body bgcolor=\"#DAE9F5\" text=\"#000000\" link=\"#363636\" vlink=\"#363636\" alink=\"#d5ae83\" leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\">\n";
        if ($banners) {
        include("banners.php");
        }
        echo "<table cellpadding=\"0\" cellspacing=\"0\" width=\"780\" border=\"0\" align=\"center\" bgcolor=\"#93BEE2\">\n"
            ."<tr>\n"
            ."<td bgcolor=\"#93BEE2\">\n"
            ."<img height=\"15\" alt=\"\" hspace=\"0\" src=\"themes/BabyBlue/images/corner-top-left.gif\" width=\"15\" align=\"left\">\n"
            ."<a href=\"index.php\"><img src=\"themes/BabyBlue/images/logo.gif\" align=\"left\" alt=\""._WELCOMETO." $sitename\" border=\"0\"></a></td>\n"
            ."<td bgcolor=\"#93BEE2\" valign=\"top\"><img height=\"15\" alt=\"\" hspace=\"0\" src=\"themes/BabyBlue/images/corner-top-right.gif\" width=\"15\" align=\"right\"></td>\n"
            ."</tr></table>\n";

    // Top Navigation Bar
        echo "<table cellpadding=\"0\" cellspacing=\"0\" width=\"780\" border=\"0\" align=\"center\" bgcolor=\"#336699\">\n"
            ."<tr>\n"
            ."<td align=\"left\" width=\"28%\" bgcolor=\"#93BEE2\">&amp;nbsp;</td>\n"
            ."<TD WIDTH=\"12%\" ALIGN=CENTER onclick=\"location.href='index.php'\" onmouseover=\"this.style.backgroundColor='#93BEE2';this.style.cursor='hand';\" onmouseout=\"this.style.backgroundColor='#336699';this.style.cursor='hand';\"><A CLASS=\"BabyBluetopmenu\" HREF=\"index.php\">Home</A></TD>\n"
            ."<TD WIDTH=\"12%\"ALIGN=CENTER onclick=\"location.href='modules.php?op=modload&amp;name=Topics&amp;file=index'\" onmouseover=\"this.style.backgroundColor='#93BEE2';this.style.cursor='hand';\" onmouseout=\"this.style.backgroundColor='#336699';this.style.cursor='hand';\"><A CLASS=\"BabyBluetopmenu\" HREF=\"modules.php?op=modload&amp;name=Topics&amp;file=index\">Onderwerpen</A></TD>\n"
            ."<TD WIDTH=\"12%\" ALIGN=CENTER onclick=\"location.href='modules.php?op=modload&amp;name=Downloads&amp;file=index'\" onmouseover=\"this.style.backgroundColor='#93BEE2';this.style.cursor='hand';\" onmouseout=\"this.style.backgroundColor='#336699';this.style.cursor='hand';\"><A CLASS=\"BabyBluetopmenu\" HREF=\"modules.php?op=modload&amp;name=Downloads&amp;file=index\">Downloads</A></TD>\n"
            ."<TD WIDTH=\"12%\" ALIGN=CENTER onclick=\"location.href='user.php'\" onmouseover=\"this.style.backgroundColor='#93BEE2';this.style.cursor='hand';\" onmouseout=\"this.style.backgroundColor='#336699';this.style.cursor='hand';\"><A CLASS=\"BabyBluetopmenu\" HREF=\"user.php\">Uw Account</A></TD>\n"
            ."<TD WIDTH=\"12%\" ALIGN=CENTER onclick=\"location.href='modules.php?op=modload&amp;name=Submit_News&amp;file=index'\" onmouseover=\"this.style.backgroundColor='#93BEE2';this.style.cursor='hand';\" onmouseout=\"this.style.backgroundColor='#336699';this.style.cursor='hand';\"><A CLASS=\"BabyBluetopmenu\" HREF=\"modules.php?op=modload&amp;name=Submit_News&amp;file=index\">Nieuws inzenden</A></TD>\n"
            ."<TD WIDTH=\"12%\" ALIGN=CENTER onclick=\"location.href='modules.php?op=modload&amp;name=Top_List&amp;file=index'\" onmouseover=\"this.style.backgroundColor='#93BEE2';this.style.cursor='hand';\" onmouseout=\"this.style.backgroundColor='#336699';this.style.cursor='hand';\"><A CLASS=\"BabyBluetopmenu\" HREF=\"modules.php?op=modload&amp;name=Top_List&amp;file=index\">Top Tien</A></TD>\n"
            ."</tr>\n"
            ."<tr>\n"
            ."<td bgcolor=\"#336699\" colspan=\"7\"><IMG src=\"themes/BabyBlue/images/pixel.gif\" width=\"1\" height=3 alt=\"\" border=\"0\" hspace=\"0\"></td>\n"
            ."</tr>\n"
            ."</table>\n\n\n"


    // Date, Login &amp; Search Area
            ."<table cellpadding=\"0\" cellspacing=\"0\" width=\"780\" border=\"0\" align=\"center\" bgcolor=\"#93BEE2\">\n"
            ."<tr valign=\"middle\" bgcolor=\"#93BEE2\">\n"
            ."<td colspan=\"5\"><IMG src=\"themes/BabyBlue/images/pixel.gif\" width=\"1\" height=5 alt=\"\" border=\"0\" hspace=\"0\"></td>\n"
            ."</tr>\n"
    // Date
            ."<tr valign=\"middle\" bgcolor=\"#93BEE2\">\n"
            ."<td bgcolor=\"#93BEE2\" width=\"300\" align=\"left\" valign=\"middle\">\n"
            ."&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;\n"
            ."<script type=\"text/javascript\">\n\n"
            ."<!--   // Array ofmonth Names\n"
            ."var monthNames = new Array( \"Januari\",\"Februari\",\"Maart\",\"April\",\"Mei\",\"Juni\",\"Juli\",\"Augustus\",\"September\",\"Oktober\",\"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>\n"
            ."</td>\n"
    // User Login
            ."<td bgcolor=\"#D8E8F5\" width=\"15\" align=\"right\" valign=\"top\"><img src=\"themes\BabyBlue\images\search-left-corner.gif\" width=\"15\" height=\"15\" alt=\"\"></td>\n";
        if ($username == "Anonymous") {
            echo "<td bgcolor=\"#D8E8F5\" width=\"380\">\n"
            ."<form action=\"user.php?module=NS-User\" method=\"post\" style=\"margin:0\">\n"
            ."&amp;nbsp;&amp;nbsp;Gebruikersnaam:\n"
            ."<input type=\"text\" name=\"uname\" size=\"7\" maxlength=\"25\">\n"
            ."Paswoord:\n"
            ."<input type=\"password\" name=\"pass\" size=\"7\" maxlength=\"20\">\n"
            ."<input type=\"hidden\" name=\"op\" value=\"login\">\n"
            ."<input type=\"submit\" value=\"inloggen\">\n"
            ."\n"
            ."</form>\n"
            ."</td>\n";
            } else {
            echo "<td bgcolor=\"#D8E8F5\" width=\"380\">\n"
            ."&amp;nbsp;&amp;nbsp;<b>Welkom $username!</b> &amp;nbsp;<a href=\"user.php?module=NS-User&amp;op=logout\">uitloggen</a></td>";
        }
    // Search
            echo "<td bgcolor=\"#D8E8F5\" width=\"200\" align=\"right\" valign=\"middle\">\n"

    // Search Form
            ."<form action=\"modules.php\" method=\"post\" style=\"margin:0\">\n"
            ."<input type=\"hidden\" name=\"name\" value=\"Search\">\n"
            ."<input type=\"hidden\" name=\"file\" value=\"index\">\n"
            ."<input type=\"hidden\" name=\"op\" value=\"modload\">\n"
            ."<input type=\"hidden\" name=\"action\" value=\"search\">\n"
            ."<input type=\"hidden\" name=\"overview\" value=\"1\">\n"
            ."<input type=\"hidden\" name=\"active_stories\" value=\"1\">\n"
            ."<input type=\"hidden\" name=\"bool\" value=\"AND\">\n"
            ."<input type=\"hidden\" name=\"stories_cat\" value=\"\">\n"
            ."<input type=\"hidden\" name=\"stories_topics\" value=\"\">\n"
            ."<input NAME=\"q\" TYPE=\"text\" VALUE=\"\" SIZE=\"15\">&amp;nbsp;\n"
            ."<input type=\"submit\" value=\"Zoeken\">&amp;nbsp;&amp;nbsp;\n"
            ."</form>\n"
            ."</td>\n"
            ."</tr>\n"
            ."</table>\n\n\n"

            ."<table cellpadding=\"0\" cellspacing=\"0\" width=\"780\" border=\"0\" align=\"center\">\n"
            ."<tr>\n"
            ."<td align=\"left\" valign=\"top\" width=\"780\">&amp;nbsp;</td>\n"
            ."</tr>\n"
            ."</table>\n"


    // Begin of Main Content
        ."<table width=\"780\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" align=\"center\">\n"
        ."<tr valign=\"top\">\n"
            ."<td  width=\"150\">\n";
        blocks(left);
        echo "</td>\n"
            ."<td width=\"15\" align=\"left\" valign=\"top\"><img src=\"themes/BabyBlue/images/pixel.gif\" width=\"15\" height=\"1\" border=\"0\" alt=\"\"></td>\n"
            ."<td>\n";
    }

    /************************************************************/


    function themefooter() {
        global $index;
        if ($index == 1) {
        echo "</td>\n"
            ."<td><img src=\"themes/BabyBlue/images/pixel.gif\" width=\"15\" height=\"1\" border=\"0\" alt=\"\"></td>\n"
            ."<td valign=\"top\" width=\"150\">\n";
        blocks(right);
        }
        echo "</td>\n"
            ."</tr>\n"
            ."<tr>\n"
            ."</tr>\n"
            ."</table>\n"
            ."<br>"
            ."<table width=\"780\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" bgcolor=\"#93BEE2\" align=\"center\"><tr valign=\"top\">\n"
            ."<td><IMG alt=\"\" hspace=\"0\" src=\"themes/BabyBlue/images/corner-top-left.gif\" width=\"15\" height=\"15\" align=\"left\"></td>\n"
            ."<td width=\"100%\">&amp;nbsp;</td>\n"
            ."<td><IMG alt=\"\" hspace=\"0\" src=\"themes/BabyBlue/images/corner-top-right.gif\" width=\"15\" height=\"15\" align=\"right\"></td>\n"
            ."</tr><tr align=\"center\">\n"
            ."<td width=\"100%\" colspan=\"3\">\n";
        footmsg();
        echo "</td>\n"
            ."</tr><tr>\n"
            ."<td><IMG alt=\"\" hspace=\"0\" src=\"themes/BabyBlue/images/corner-bottom-left.gif\" width=\"15\" height=\"15\" align=\"left\"></td>\n"
            ."<td width=\"100%\">&amp;nbsp;</td>\n"
            ."<td><IMG alt=\"\" hspace=\"0\" src=\"themes/BabyBlue/images/corner-bottom-right.gif\" width=\"15\" height=\"15\" align=\"right\"></td>\n"
            ."</tr></table>\n";
    }

    /************************************************************/
  • Nou, dan is de oplossing vrij simpel. Plak dat kleine stukje code achteraan de themeheader functie

    Code
    function themeheader()
    {
    ...code omitted here...
        if ($index==1)
        {  
           blocks(center);
        }
    }


    __________
    Brave Cobra
  • Helaas heeft dat geen oplossing geboden voor mij ... of wel doe ik het verkeerd. Ik zal even de theme.php uploaden, als je eens even zou willen kijken ...
  • Probeer deze ff

    __________
    Brave Cobra
  • bijna :D nu staan er al admin msgs, maar nu zien ze eruit als een sideblock ipv als op www.brookesatchwellonline.com

Deze lijst is gebaseerd op gebruikers die de afgelopen 10 minuten online waren

 

Taal

Preferred language