coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 pnCPG (Coppermine for postNuke/Zikula) => Topic started by: malykazio on April 12, 2005, 01:03:52 AM

Title: Wrong (direct) link in comment notification
Post by: malykazio on April 12, 2005, 01:03:52 AM
I have installed cpg 1.3.2 ang pnCPG 2.5 on my postnuke site. In pnCPG index.php I have commented such lines:
//if (!pnLocalReferer()) {
//    die ("You can't access this file from and external site...");
//}
because i got sometimes such an error when i tried to get into my gallery which error dissapeared after refreshing page or entering once more.

and

// if (!pnUserLoggedIn()) {
// if ($guest<1){
// pnRedirect($home) ;
//
// }
// }

to allow guests seeing gallery.

My problem is that after adding comment i receive correct notification exept link which leads direct to my gallery, not by my postnuke but direct so i can see my gallery without blocks, without header of my pn site. Anybody can help?
Title: Re: Wrong (direct) link in comment notification
Post by: casNuy on April 12, 2005, 09:34:18 PM
Here is a hint, check db_input.php
I know this is happening but was not planning to fix it since i prefer not to change  default code.

cas
Title: Re: Wrong (direct) link in comment notification
Post by: malykazio on April 17, 2005, 10:05:14 PM
I found it. But can you tell me what should link look like to pass it througn PN?
Title: Re: Wrong (direct) link in comment notification
Post by: casNuy on April 24, 2005, 02:06:54 PM
The link should be something like :
index.php?module=pnCPG&func=view&soort=1&album=50&pos=1411

Cas