Guests not permitted to view CPG Guests not permitted to view CPG
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Guests not permitted to view CPG

Started by finchbirds, June 24, 2005, 09:03:59 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

finchbirds

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) ;

//}

casNuy

What are your settings within pnCPG ?

Cas

Photo-nut

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) ;

}
}*/

casNuy

I will dive into this issue, thought i solved this one !!

Cas