View Full Version : [phpnuke fix] Include other PHP files in Blocks
if you want to inlcude php files in your blocks with phpnuke (to display the last 10 posts in a block for example) go here (http://vbulletin.com/forum/showthread.php?s=&threadid=30113)
I've explained why it doesn't work and provided a fix....
BramT
10-11-2001, 09:34 PM
if you still need help, post here or in the thread linked above... (i'll be notified and i'll respond asap. This is the least i can do for u great ppl!! :D)
good luck and nuke 'm! ;)
ps. a "thank you" is really appreciated if i've solved your problem.. it would make me come back more often to help u out.... :p
fudgeman
12-02-2001, 04:07 PM
Where can I find this page? It doesn't work for me. :(
Konqueror
12-15-2001, 09:19 PM
It's here: https://vborg.vbsupport.ru/showthread.php?s=&threadid=30113
SteveUrkelREAL
01-03-2002, 10:51 AM
Hi all,
that my themesidebox
/************************************************** **********/
/* 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:
<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??
if (substr($content,0,2) != "<?") echo $content;
else {
$content = str_replace ("<?", "", $content);
eval($content);}
Can anyone help me???
Thanks
Steve
Anatolia
01-03-2002, 02:26 PM
thanks all in needed that fix..
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.