New Theme not showing Right Blocks

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   New Theme not showing Right Blocks
CueBall
CZ Newbie
CueBall has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Sep 05, 2004
0.00 posts per day
Posts: 7
Points: 1,965
   
Ok, I've tried using several different themes but the same thing keeps happening. Every time I upload a new theme the right blocks disappear.

I've been out the Nuke scene for a very long time, sorry for this (most likely) stupid question.

Thanks!



Back to top Reply with quote
#2   re: New Theme = No Right Blocks
bonkers
CZ Newbie
usa.gif
Occupation: Web Designer
Gender: Male
Website:
Status: Offline
Joined: Sep 10, 2003
0.00 posts per day
Posts: 1
Points: 400
 Yahoo Messenger MSN Messenger 
Okay, this is what you do, edit the "theme.php" for the theme that you are trying to use, in the "theme footer" function part of the code, look for somethng that looks like the following:


function themefooter() {
    global $index, $foot1, $foot2, $foot3, $copyright, $totaltime;
    if ($index == 1) {
        $tmpl_file = "themes/ownag3/center_right.html";
        $thefile = implode("", file($tmpl_file));
        $thefile = addslashes($thefile);
        $thefile = "\$r_file=\"".$thefile."\";";
        eval($thefile);
        print $r_file;
        blocks(right);


Okay, now, remove the line that says:


if ($index == 1) {


REPLACE it with:


if (defined('INDEX_FILE')) {


This will fix the problem... Many themes of the theme.php file you will have to edit to make the blocks on the right sde appear! icon_mrgreen.gif

- Papa Doc


Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
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
You cannot attach files in this forum
You cannot download files in this forum