Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Guests not permitted to view CPG  (Read 4209 times)

0 Members and 1 Guest are viewing this topic.

finchbirds

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Guests not permitted to view CPG
« 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:

Code: [Select]

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

//}
Logged

casNuy

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 671
  • My other hobby
    • Nuy Community
Re: Guests not permitted to view CPG
« Reply #1 on: June 26, 2005, 01:27:10 pm »

What are your settings within pnCPG ?

Cas
Logged

Photo-nut

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 7
    • Kurucz site
Re: Guests not permitted to view CPG
« Reply #2 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) ;

}
}*/
Logged

casNuy

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 671
  • My other hobby
    • Nuy Community
Re: Guests not permitted to view CPG
« Reply #3 on: July 12, 2005, 03:44:43 am »

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

Cas
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 16 queries.