- Readme First! - Read and follow the rules, otherwise your posts will be closed
There are currently, 139 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 - Missing Left and right block content in a few themes [ ]
Author
Message
MetalHellsAngel
Nuke Cadet
Joined: Jun 11, 2004
Posts: 9
Posted:
Wed Mar 01, 2006 12:25 am
I installed some themes and in most of the ones that look as if they were ported from xoops are all missing the actual content in the blocks, not just right blocks but left as well here's a pic.
this happens when I install the following themes
fiappleblue6.5
fiapplegreen6.5
fiapplepink6.5
fiblue3D6.5
fiblack3d6.5
Avocodo6.5
I'm running phpnuke 7.8 patched 3.2. Any Ideas?
Thanks,
Angel
Last edited by MetalHellsAngel on Sat Mar 04, 2006 4:58 pm; edited 1 time in total
dezina
Support Mod
Joined: Jun 09, 2003
Posts: 1713
Location: England
Posted:
Thu Mar 02, 2006 5:22 am
Did you read instructions re themes in Chatserv's patch
_________________
Backup files BEFORE altering
Use PHPNuke 7.6 with patches!!
No private messages please, POST in forums.
MetalHellsAngel
Nuke Cadet
Joined: Jun 11, 2004
Posts: 9
Posted:
Sat Mar 04, 2006 4:54 pm
Actully yes I did and nothing fixed it until I did this
In theme.php I had to change this
Code:
function themesidebox($title, $content) {
if (@file_exists($content)) {
$fp = fopen ($content, "r");
$content = fread($fp, filesize($content));
fclose ($fp);
$content = "?>$content<?";
$content = eval($content);
} else if (eregi("^http", $content)) {
$fp = fopen ($content, "r");
$content = fread($fp, 65535);
fclose ($fp);
}
$tmpl_file = "themes/fiapple211/blocks.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
}
to this
Code:
function themesidebox($title, $content) {
$tmpl_file = "themes/fiapple211/blocks.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
}
That was this only way I could make these themes work.
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