Fork me on GitHub

pnphpbb wont show pn menu blocks  Bottom

  • Hi people, i really dont why i cant find out how to do this. Every nuke site i see has the forum like this one, set into the post nuke page with the menus on the left. On my site, the menus dissapear when in pnphpbb and all i get is the forum with the PN header sat on top of it. Everything else works fine. Do i need to wrap it in someway? Thanks in advance...
  • Ok, ive tracked this problem down to being an issue with the postnuke template i am using. The theme.php for the template i am using doesnt seam to have the right code to get the PN blocks to display when on the forum. If i switch to extralite, it works fine. If anyone knows what code i need to put in to get the blocks to show, it would be most helpful.

    Here is the code for the theme i am using -

    Code

    $thename  = "Faction";
    $bgcolor1 = "#000000";
    $bgcolor2 = "#333333";
    $bgcolor3 = "#222222";
    $bgcolor4 = "#f1f1f1";
    $textcolor1 = "#FFFFFF";
    $textcolor2 = "#333333333";
    $postnuke_theme = true;

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

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

    function OpenTable2() {
        global $bgcolor1, $bgcolor2;
        echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\"><tr><td>\n";
        echo "<table class=\"opentable2\" width=\"100%\" border=\"0\"><tr><td>\n";
    }

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

    function themeheader(){  
    global $thename, $sepcolor, $index, $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4;
        $sitename = pnConfigGetVar('sitename');
        $slogan = pnConfigGetVar('slogan');
        $type = pnVarCleanFromInput('type');
        $email = pnConfigGetVar('adminmail');
    if (!pnUserLoggedIn()) {
            $username = pnConfigGetVar('anonymous');
            } else {
            $username = pnUserGetVar('uname');
        }

        echo "<body>\n\n\n";
    //copyright info. Out of respect, please do not remove thank you.  
        echo "<!-- Theme Designed by © 2004 VIPixel (http://www.vipixel.com - webmaster at vipixel dot com)-->\n";
        echo "<!-- $sitename is using Faction, Free PHP-Nuke theme -->\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n";
    //Begin Header
        include("themes/Faction/header.php");
    //end header

    echo "<table bgcolor=\"#000000\" align=\"center\" width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\">\n"
         ."<tr valign=\"top\">\n"
         ."<td bgcolor=\"#333333\"><img src=\"themes/Faction/images/spacer.gif\" width=\"1\" height=\"1\" border=\"0\" alt=\"\"></td>\n"
         ."<td><img src=\"themes/Faction/images/spacer.gif\" width=\"4\" height=\"1\" border=\"0\" alt=\"\"></td>\n"
         ."<td valign=\"top\">\n";
    //Hiding left sideblock for these modules listed below:
        $curmodname = pnModGetName();
        if (($curmodname == "PNphpBB2") OR ($curmodname == "gallery") OR  ($curmodname == "Stats")){
                 }
         else {     
         blocks('left');
        }
    echo "<td><img src=\"themes/Faction/images/spacer.gif\" width=\"4\" height=\"1\" border=\"0\" alt=\"\"></td>\n"
         ."<td align=\"center\" valign=\"top\" width=\"100%\" >\n";
        if ($GLOBALS['index'] == 1) {
            blocks('centre');
        }
    }

    function themefooter() {
    global $index, $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $sepcolor;
        $slogan = pnConfigGetVar('slogan');
        $banners = pnConfigGetVar('banners');
        if ($index == 1) {
    echo "</td>\n"
         ."<td><img src=\"themes/Faction/images/spacer.gif\" width=\"4\" height=\"1\" border=\"0\" alt=\"\"></td>\n"
         ."<td valign=\"top\">\n";
         blocks('right');
    }
    echo "</td>\n"
         ."<td width=\"4\"><img src=\"themes/Faction/images/spacer.gif\" width=\"4\" height=\"1\" border=\"0\" alt=\"\"></td>\n"
         ."<td bgcolor=\"#333333\"><img src=\"themes/Faction/images/spacer.gif\" width=\"1\" height=\"1\" border=\"0\" alt=\"\"></td>\n"
         ."</tr>\n"
         ."</table>\n\n\n";
    //Begin Footer
    ?>
    <table align="center" width="100%" cellpadding="0" cellspacing="0">
      <tr>
      <td width="1" bgcolor="#333333"></td>
        <td bgcolor="#000000" align="center">
       <?php
    // Should we display banners?
        if(pnModAvailable('Banners'))
        {
            pnBannerDisplay();
        }

    echo "<br /><br />\n";
    echo "<div class=\"slogan\">$slogan</div>\n";
    echo "<div class=\"footer\">\n";
            footmsg();
    ?>
    <br /></td>
    <td></td>
    <td width="1" bgcolor="#333333"></td>
      </tr>
    </table>
    <?php
    }

    function themeindex ($_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $info, $links, $preformat)
    {
        $anonymous = pnConfigGetVar('anonymous');
        $tipath = pnConfigGetVar('tipath');

    //Begin Story Box
    OpenTable2();
    echo "<div class=\"storytitle\">$preformat[catandtitle]</div>\n"
         ."<div align=\"left\" class=\"tiny\">"._POSTEDBY.":$info[informant] "._ON." $info[longdatetime]</div>\n";
    echo "<div class=\"contentbox\">\n"
        ."<div align=\"right\">\n"
        ."<span class=\"tiny\"> $info[counter] "._READS."</span></div>\n"    
        ."<div>\n"
        ."<span class=\"storycontent\">
        $preformat[searchtopic]
        $info[hometext]</span>\n"

        ."</div>\n"
        ."</div>\n" 
        ."<div class=\"note\">$preformat[notes]</div>\n"
        ."<div class=\"comments\">$preformat[more]</div>\n";
    CloseTable2();
    }



    function themearticle ($_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $info, $links, $preformat)
    { $sid = $info['sid'];
       
    //Begin Article Box
    OpenTable2();
      echo "<!-- Begin STORYBOX -->\n"
        ."<div class=\"storybox\">\n"
        ."<div class=\"titleboxstory\">\n"
        ."<span class=\"title\">$preformat[catandtitle]</span>\n"
        ."<br><span class=\"tiny\">\n"._POSTEDBY.": $info[informant] "._ON." $info[longdatetime]</span>\n"
        ."</div>\n"
        ."<div class=\"contentbox\">\n";
        if (pnSecAuthAction(0, 'Stories::Story', "$info[aid]:$info[cattitle]:$info[sid]", ACCESS_EDIT)) {
                echo "<span class=\"comments\"> [ <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> ]</span>";
                }
                echo "<br />\n";
            }
    //echo "$preformat[searchtopic]\n";
    echo "<div align=\"right\"><span class=\"tiny\"> $info[counter] "._READS."</span></div>\n"    
        ."<font class=\"hometext\">$preformat[hometext]</font><br><br>\n";
        echo "<span class=\"storycontent\">$preformat[bodytext]</span>\n"
        ."<br />\n"
        ."<br />\n"
        ."<span class=\"note\">$preformat[notes]</span>\n"
        ."</div>\n"
        ."<div class=\"more\">\n"
        //."<br>$preformat[more]<br></div>\n"
        ."<img src=\"images/global/print.gif\" border=\"0\" Alt=\""._PRINTER."\" width=\"16\" height=\"11\">&nbsp;&nbsp;<a target=_blank href=\"print.php?sid=$sid\">"._PRINTER."</a>\n"
        ."<img src=\"images/global/friend.gif\" border=\"0\" Alt=\""._FRIEND."\" width=\"16\" height=\"11\">&nbsp;&nbsp;<a href=\"modules.php?op=modload&amp;name=Recommend_Us&file=index&ramp;eq=FriendSend&amp;sid=$sid\">Send To Friend(s)</a>\n"
        ."</div><br />\n"
        ."<!-- END OF STORYBOX -->\n\n\n\n\n\n\n";
    CloseTable2();
    }

    function themesidebox($block)
    {  // Begin Center Block
        if ($block['position'] == 'c') {
            echo "$block[content]<br>";
        } else {
        echo "<div class=\"sidebox\"><div class=\"boxtitle\">\n";
        echo "$block[title]<br /></div>\n";
        echo "<div class=\"sideboxcontent\">\n";
        echo "$block[content]\n"
         ."</div></div>\n";
         }
    }
    ?>
  • I'm guessing you would want to modify these lines:

    Code

    //Hiding left sideblock for these modules listed below:
       $curmodname = pnModGetName();
       if (($curmodname == "PNphpBB2") OR ($curmodname == "gallery") OR  ($curmodname == "Stats")){
               }


    ;)
  • Damn! Cant believe i didnt see that icon_redface

    Nice one mate!

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