coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 pnCPG (Coppermine for postNuke/Zikula) => Topic started by: finchbirds on June 24, 2005, 09:03:59 PM

Title: Guests not permitted to view CPG
Post by: finchbirds on June 24, 2005, 09:03:59 PM
I had to go into the code and comment out some lines in order to allow guests to view coppermine through the postNuke link.

I tried every option in the pnCPG admin panel first, but gave up when nothing seemed to work.

I am looking for a reason why only registered / logged in users of postNuke are able to view.

Thanks in advance for any help. Here is what I commented out:



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

//}
Title: Re: Guests not permitted to view CPG
Post by: casNuy on June 26, 2005, 01:27:10 PM
What are your settings within pnCPG ?

Cas
Title: Re: Guests not permitted to view CPG
Post by: Photo-nut on July 11, 2005, 08:41:15 PM
You need to comment out the following in "index.php" in the /modules/pnCPG folder. The code has changed a bit from a the earlier query on the same topic, so it looks different. From what you noted as being commented you have not included enough.

For lines 11 - 16 of the code, add the comment codes noted in red, save, and upload the modified index.php to the server.

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

}
}*/
Title: Re: Guests not permitted to view CPG
Post by: casNuy on July 12, 2005, 03:44:43 AM
I will dive into this issue, thought i solved this one !!

Cas