coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 pnCPG (Coppermine for postNuke/Zikula) => Topic started by: rolands on December 07, 2004, 02:59:02 PM

Title: problem with the menu link
Post by: rolands on December 07, 2004, 02:59:02 PM
I just installed the pn coppermine hack, using postnuke 0.750, PHP 4.3.9 and MySQL 4.1.7. After i added a new menu block with {pnCPG} i get this message:

Wrong method of calling this module use {} instead of []..

What's going wrong? I already searched this forum and find a message that says to use index.php?module=pnprojekt&func=main for an outside link, i also did try this and i get then an error that says: Failed to load module pnprojekt (at function: "main").

Anyone an idea?

Thanks,
Roland
Title: Re: problem with the menu link
Post by: casNuy on December 07, 2004, 08:56:31 PM
Open up index.php within pnCPG and add the following line :

Code:
$url=pnVarCleanFromInput('url');


just before :

Quote
if ($url=="") {
die ("Wrong method of calling this module use {} instead of []..");
}


That's all

next release will have full support for 0.750 and Coppermine 1.4

Cas 



Title: Re: problem with the menu link
Post by: rolands on December 08, 2004, 09:05:01 AM
Thanks! This worked for me.

Roland