Hi all,
that my themesidebox
Code:
/************************************************************/
/* Function themesidebox() */
/* */
/* Control look of your blocks. Just simple. */
/************************************************************/
function themesidebox($title, $content){
$tmpl_file = "themes/NukeNews/blocks.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
}
and thats the html-File for the Block:
Code:
<table width="180" cellpadding="0" cellspacing="1" border="0">
<tr>
<td bgcolor="#ff7f00">
<table width="100%" border="0" cellpadding="3" cellspacing="1">
<tr>
<td bgcolor="#ff7f00"><b><font color="#000000">$title</font></b></td>
</tr>
<tr>
<td bgcolor="#040437">$content</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
where must i do these changes??
PHP Code:
if (substr($content,0,2) != "<?") echo $content;
else {
$content = str_replace ("<?", "", $content);
eval($content);}
Can anyone help me???
Thanks
Steve