Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 07:01 AM
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 06:41 AM
- ehdwma created topic »Hide "Register new account" and change template to 3 col« 06:27 AM
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 01:29 AM
- mdee created topic »How to implement returnpage ?« 01:00 AM
- nestormateo responded to »Fillters in Clip« 24. May
- damon responded to »Can the Updated Version Check be Turned Off (Z 1.3)« 24. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
pnphpbb wont show pn menu blocks
-
**unknown user**
- Rank: Registered User
- Registered: Mar 16, 2002
- Last visit: Jun 24, 2005
- Posts: 8
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... -
**unknown user**
- Rank: Registered User
- Registered: Mar 16, 2002
- Last visit: Jun 24, 2005
- Posts: 8
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&op=EditStory&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&op=RemoveStory&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\"> <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\"> <a href=\"modules.php?op=modload&name=Recommend_Us&file=index&ramp;eq=FriendSend&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";
}
}
?> -
- Rank: Developer
- Registered: Jun 16, 2003
- Last visit: May 29, 2010
- Posts: 1966
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")){
}
;)
- Moderated by:
- Support
