Hi there guys,
Sorry for the ignorant question, but I'm trying to get someone elses' code working.
I run a PostNuke site, and the old theme system does not support shutting down blocks on certain modules, and I really need the ability to get rid of the right side blocks on the forum and gallery, so I went to the PostNuke community forum(term used loosely), and posed the question. After a couple of clarifications, the guy helping came up with this code, but it gives me an error, and I was wondering if anyone could help out with why it's failing, as it seems I've gotten all the help I'm going to from the PN community:
function themefooter()
{
list ($module, $name) = pnVarCleanFromInput('module', 'name');
if (!($name("PNphpBB2")) and !($name("gallery"))) {
echo "</td>
<td> </td>
<td valign=\"top\" style=\"width:150px;background-color:$GLOBALS[bgcolor1]\">";
blocks('right');
}
echo "</td>
</tr></table>
</td></tr></table>
<div style=\"text-align:center\">";
footmsg();
echo "</div>";
}
error:
Fatal error: Call to undefined function: () in /path/to/public_html/themes/ExtraLite/theme.php on line 126
line 126:
if (!($name("PNphpBB2")) and !($name("gallery"))) {
See any glaring problems with the code?
thanks,
json