You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 205 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Blocks on right not showing up [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
ace2011
Nuke Cadet
Nuke Cadet


Joined: Nov 29, 2005
Posts: 8


PostPosted: Tue Nov 29, 2005 11:06 am Reply with quoteBack to top

I'm probably missing something very obvious since this is my first attempt at using nuke and if so I apologize ahead of time, but I can't get any blocks to show up on the right hand side of my page. When I set a block to be on the right, it just disappears until I move it back to the left.

I'm using 7.9 (I didnt know I could get 7.8 for free until it was too late :-/). The problem is there no matter what theme I use, so I know it's not my theme.

Anyway, please help me out here if you know what's causing the problem or have any ideas that might fix it.
Find all posts by ace2011View user's profileSend private message
v3x
Support Mod
Support Mod


Joined: Oct 19, 2004
Posts: 1041

Location: UK

PostPosted: Tue Nov 29, 2005 11:40 am Reply with quoteBack to top

Open you theme.php.

find

Code:
if ($index == 1) {


change to

Code:
if (defined('INDEX_FILE')) {
Find all posts by v3xView user's profileSend private messageVisit poster's website
ace2011
Nuke Cadet
Nuke Cadet


Joined: Nov 29, 2005
Posts: 8


PostPosted: Tue Nov 29, 2005 11:47 am Reply with quoteBack to top

Thanks a ton, that fixed it. Very Happy
Find all posts by ace2011View user's profileSend private message
d12boy420
Nuke Cadet
Nuke Cadet


Joined: Nov 29, 2005
Posts: 4


PostPosted: Tue Nov 29, 2005 1:33 pm Reply with quoteBack to top

I have the same problem but there isn't
Code:
if ($index == 1) {


This happended when i was upgrading PHP Nuke 7.8 to the patched version. Im using XtratoDemon as my theme.

Theme.php
Code:

<?php
$bgcolor1 = "#CFCFCF";
$bgcolor2 = "#CFCFCF";
$bgcolor3 = "#CFCFCF";
$bgcolor4 = "#CFCFCF";
/************************************************************/
/* Function themeindex()                                    */
/* This function format the stories on the Homepage         */
/************************************************************/
function OpenTable() {
   global $name;
if (($name=='Sections') OR ($name=='Content')) {
   echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" ><tr><td class=extra>\n";
    echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"8\" ><tr><td>\n";
}
else
{
    ?>
<table width=98% height="26" border=0 align="center" cellpadding=0 cellspacing=0>
  <tr>
    <td valign="top"><table width=100% border=0 align="center" cellpadding=0 cellspacing=0>
        <tr>
          <td valign="top" background="themes/XtratoDemon/images/TBL/XtratoDemon_TBL_02.gif"><IMG SRC="themes/XtratoDemon/images/TBL/XtratoDemon_TBL_01.gif" WIDTH=38 HEIGHT=42 ALT=""></td>
          <td background="themes/XtratoDemon/images/TBL/XtratoDemon_TBL_02.gif"><div align="center">
              <table border=0 align="center" cellpadding=0 cellspacing=0>
                <tr>
                  <td valign="top" background="themes/XtratoDemon/images/TBL/XtratoDemon_TBL_02.gif"><IMG SRC="themes/XtratoDemon/images/TBL/XtratoDemon_TBL_04.gif" WIDTH=145 HEIGHT=42 ALT=""></td>
                </tr>
              </table>
          </div></td>
          <td valign="top" background="themes/XtratoDemon/images/TBL/XtratoDemon_TBL_02.gif"><div align="right"> <IMG SRC="themes/XtratoDemon/images/TBL/XtratoDemon_TBL_06.gif" WIDTH=38 HEIGHT=42 ALT=""></div></td>
        </tr>
      </table>
        <table width=100% height="26" border=0 align="center" cellpadding=0 cellspacing=0>
          <tr>
            <td width="16" valign="top" background="themes/XtratoDemon/images/TBL/XtratoDemon_TBL_10.gif"><IMG SRC="themes/XtratoDemon/images/TBL/XtratoDemon_TBL_10.gif" WIDTH=16 HEIGHT=10 ALT=""></td>
            <td valign="top" bgcolor="#CFCFCF">
<?
}
}
function OpenTable2() {
    global $bgcolor1, $bgcolor2;
    echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" ><tr><td class=extra>\n";
    echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"8\" ><tr><td>\n";
}
function CloseTable() {
   global $name;
if (($name=='Sections') OR ($name=='Content')) {
   echo "</td></tr></table></td></tr></table>\n";
}   
else
{
    ?>

</td>
            <td width="16" valign="top" background="themes/XtratoDemon/images/TBL/XtratoDemon_TBL_11.gif"><div align="right"><IMG SRC="themes/XtratoDemon/images/TBL/XtratoDemon_TBL_11.gif" WIDTH=16 HEIGHT=10 ALT=""></div></td>
          </tr>
        </table>
        <table width=100% border=0 align="center" cellpadding=0 cellspacing=0>
          <tr>
            <td width="11" valign="top" background=""><IMG SRC="themes/XtratoDemon/images/TBL/XtratoDemon_TBL_14.gif" WIDTH=16 HEIGHT=27 ALT=""></td>
            <td valign="top" background="themes/XtratoDemon/images/TBL/XtratoDemon_TBL_15.gif">&nbsp;</td>
            <td width="19" valign="top" background="themes/XtratoDemon/images/TBL/XtratoDemon_TBL_15.gif"><div align="right"><IMG SRC="themes/XtratoDemon/images/TBL/XtratoDemon_TBL_17.gif" WIDTH=16 HEIGHT=27 ALT=""></div></td>
          </tr>
      </table></td>
  </tr>
</table>

<?
}
}

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

///////////////////////////////////////

function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
    global $anonymous, $tipath;

$ThemeSel = get_theme();
    if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) {
                $t_image = "themes/$ThemeSel/images/topics/$topicimage";
    }
        else {$t_image = "$tipath$topicimage";}
    if ($notes != "") { $notes = "<br><br><b>Admin's Comment:</b> $notes\n"; }
        else {$notes = "";}
    if ("$aid" == "$informant") {$content = "$thetext$notes\n";}
         else {
        if($informant != "") {
            $content = "News submitted by: <a href=\"modules.php?name=Your_Account&amp;op=userinfo&amp;username=$informant\">$informant</a><br><br>";
        }
                else {$content = "News submitted by: <i>$anonymous</i><br><br>";}
        $content .= "$thetext$notes\n";
    }
    $posted = ""._POSTEDBY." ";
    $posted .= get_author($aid);
    $posted .= " "._ON." $time $timezone ";

$tmpl_file = "themes/XtratoDemon/story_home.htm";
        if (!function_exists('file_get_contents'))
{
    function file_get_contents($filename, $use_include_path = 0)
    {
        $file = @fopen($filename, 'rb', $use_include_path);
        if ($file)
        {
            if ($fsize = @filesize($filename))
            {
                $data = fread($file, $fsize);
            }
            else
            {
                while (!feof($file))
                {
                    $data .= fread($file, 1024);
                }
            }
            fclose($file);
        }
        return $data;
    }
}


    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"".$thefile."\";";
    eval($thefile);
    print $r_file;
}

/************************************************************/
/* Function themeindex()                                    */
/************************************************************/

function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {
    global $admin, $sid, $tipath;
        $ThemeSel = get_theme();
    if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) {
        $t_image = "themes/$ThemeSel/images/topics/$topicimage";
    } else {
        $t_image = "$tipath$topicimage";
}
    $posted = ""._POSTEDON." $datetime "._BY." ";
    $posted .= get_author($aid);
    if ($notes != "") {
        $notes = "<br><br><b>Admin's Comment:</b> <i>$notes</i>\n";
    } else {
        $notes = "";
    }
    if ("$aid" == "$informant") {
        $content = "$thetext$notes\n";
    } else {
        if($informant != "") {
            $content = "News submitted by: <a href=\"modules.php?name=Your_Account&amp;op=userinfo&amp;username=$informant\">$informant</a><br><br> ";
        } else {
            $content = "News submitted by: <i>$anonymous</i><br><br>";
        }
        $content .= "$thetext$notes\n";
    }
    $tmpl_file = "themes/XtratoDemon/story_page.htm";
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"".$thefile."\";";
    eval($thefile);
    print $r_file;
}


include("themes/XtratoDemon/header.php");
include("themes/XtratoDemon/footer.php");


function themesidebox($title, $content) {
     $tmpl_file = "themes/XtratoDemon/blocks.htm";
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"".$thefile."\";";
    eval($thefile);
    print $r_file;
   
}

?>
Find all posts by d12boy420View user's profileSend private message
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12482


PostPosted: Tue Nov 29, 2005 2:32 pm Reply with quoteBack to top

Where is themefooter() defined? Its not in your theme.php

_________________
Helping those that help themselves
Read FIRST or DIE!

"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
d12boy420
Nuke Cadet
Nuke Cadet


Joined: Nov 29, 2005
Posts: 4


PostPosted: Tue Nov 29, 2005 3:17 pm Reply with quoteBack to top

nvm fixed it i found it in the footer.php file of my theme
Find all posts by d12boy420View user's profileSend private message
Synith
Nuke Cadet
Nuke Cadet


Joined: Dec 16, 2005
Posts: 2


PostPosted: Fri Dec 16, 2005 8:49 am Reply with quoteBack to top

I currently have done this and it is not working for me....someone please help.
Find all posts by SynithView user's profileSend private message
Synith
Nuke Cadet
Nuke Cadet


Joined: Dec 16, 2005
Posts: 2


PostPosted: Fri Dec 16, 2005 11:49 am Reply with quoteBack to top

anyone?!
Find all posts by SynithView user's profileSend private message
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12482


PostPosted: Fri Dec 16, 2005 6:22 pm Reply with quoteBack to top

Please tell us exactly what you did, and what specific problem you are having

_________________
Helping those that help themselves
Read FIRST or DIE!

"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
PiombuZ
Nuke Soldier
Nuke Soldier


Joined: Dec 24, 2003
Posts: 23


PostPosted: Sat Dec 17, 2005 3:55 am Reply with quoteBack to top

well got same problem that don't work check http://chruxios.dutchgame.nl

i got more problems but that is problem number 1

wot is wrong i don't know i changed that index == 1

and still not working got ideas
Find all posts by PiombuZView user's profileSend private message
PiombuZ
Nuke Soldier
Nuke Soldier


Joined: Dec 24, 2003
Posts: 23


PostPosted: Sat Dec 17, 2005 4:24 am Reply with quoteBack to top

lol got it seems my footer.php was deleted
Find all posts by PiombuZView user's profileSend private message
ace2011
Nuke Cadet
Nuke Cadet


Joined: Nov 29, 2005
Posts: 8


PostPosted: Wed Dec 28, 2005 2:34 am Reply with quoteBack to top

I thought I got it working, but now it seems that the right hand blocks are only showing up on the home page. In the forums, admin, and a handful of other modules, they're still not showing up.

I'm using the zoneCopper theme from this site and PHPNuke 7.9 if that helps.
Find all posts by ace2011View user's profileSend private message
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12482


PostPosted: Wed Dec 28, 2005 11:12 pm Reply with quoteBack to top

They aren't designed to show up in those spots.

If you want to always show right blocks, remove the check completely

The lines
Code:

if (defined('INDEX_FILE')) {

...

}

Keep the code in between

_________________
Helping those that help themselves
Read FIRST or DIE!

"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
ace2011
Nuke Cadet
Nuke Cadet


Joined: Nov 29, 2005
Posts: 8


PostPosted: Wed Dec 28, 2005 11:35 pm Reply with quoteBack to top

I found a different solution in another post that seems to work as well.

Just added
Code:
define('INDEX_FILE', true);

to the beginning of every module's index.php file.

I guess that basically does the same thing as removing the check since it makes it true every time.
Find all posts by ace2011View user's profileSend private message
ssace
Lieutenant
Lieutenant


Joined: Dec 29, 2005
Posts: 175


PostPosted: Sun Jan 08, 2006 7:13 am Reply with quoteBack to top

Thanks Virus. Your code edit worked like magic for me. Don't understand it...but hey, it works! Very Happy
Find all posts by ssaceView user's profileSend private message
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by TOGETHER TEAM srl ITALY http://www.togetherteam.it - DONDELEO E-COMMERCE http://www.DonDeLeo.com - TUTTISU E-COMMERCE http://www.tuttisu.it
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.229 Seconds - 206 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::