View Single Post
  #4 (permalink)  
Old 09-14-2004, 12:41 PM
mikem mikem is offline
Senior Member
 
Join Date: Sep 2002
Posts: 2,905
Yes that is normal for a theme that does not use HTML files.

Try replacing that with this:

Code:
/************************************************************/ 
/* Function themesidebox()                                  */ 
/*                                                          */ 
/* Control look of your blocks. Just simple.                */ 
/************************************************************/ 

function themesidebox($title, $content) { 
    echo "<table border=\"0\" cellpadding=\"1\" cellspacing=\"0\" width=\"150\">\n" 
    ."<tr>\n" 
    ."<td>\n";

        if (!empty($title)) { 
       $img_name=explode(" ",$title); 
       $img_nametwo=$img_name[0]; 
       if(file_exists("themes/YourthemeName/images/blocks/$img_nametwo.gif")) { 
    echo "<IMG SRC=\"themes/YourthemeName/images/blocks/$img_nametwo.gif\" align=\"middle\">"; 
       } else { 
    echo  "<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" bgcolor=\"#EEEEEE\" width=\"100%\">\n" 
   ."<tr>\n" 
   ."<td align=left><font class=\"content\" color=\"#363636\">$title</font></td>\n" 
   ."</tr>\n" 
   ."</table>\n"; 
             } 
       } 



   echo "</td>\n" 
   ."</tr>\n" 
   ."</table>\n" 

   ."<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" width=\"150\">\n" 
   ."<tr valign=\"top\"><td>\n" 
   ."$content\n" 
   ."</td></tr></table>\n" 
   ."
\n\n\n"; 
} 

?>
Change YourThemeName to the name of your theme. BACKUP your THEME.PHP before you upload your edited one.
I can't test that code, so it's gonna be trial and error for ya.

mikem
Reply With Quote