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: [Solved]: coppermine's faq doesn't work on "only thumbnail view" for unregistered users  (Read 2911 times)

0 Members and 1 Guest are viewing this topic.

sexiestbabygirl

  • Coppermine newbie
  • Offline Offline
  • Gender: Female
  • Posts: 14
    • www.sexiestbabygirl.net (not safe for work)

hi guys,

I tried this solution (http://coppermine-gallery.net/demo/cpg14x/docs/faq.htm#viewThumbnailsOnly) and did same as explained:

Edit displayimage.php and add
if (!USER_ID) cpg_die(ERROR, 'You need to register to access this page', __FILE__, __LINE__);
just before

/**************************************************************************
* Local functions definition
**************************************************************************/


but it didn't work
my site url is: http://www.sexiestbabygirl.net/sexiestgallery/index.php

help pls! :D
« Last Edit: June 07, 2009, 09:15:46 pm by Joachim Müller »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de

but it didn't work
What should that mean? That's not a valid report.
Logged

sexiestbabygirl

  • Coppermine newbie
  • Offline Offline
  • Gender: Female
  • Posts: 14
    • www.sexiestbabygirl.net (not safe for work)

hi,

that means, still unregistered users can't see thumbnail pics and nothing changed after i did the change on the code

here's the direct code from displayimage.php

if($CONFIG['read_exif_data'] ){
        include("include/exif_php.inc.php");
}
if($CONFIG['read_iptc_data'] ){
        include("include/iptc.inc.php");
}
if (!USER_ID) cpg_die(ERROR, 'You need to register to access this page', __FILE__, __LINE__);

/**
 * Local functions definition
 */


so what's the problem and what can i do to enable thumbnails for unregistered users? :D
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de

You have set "Allow unlogged users (guest or anonymous) access" to "no" for your page, so that code won't do anything usefull, as visitors who are not logged in will be sent to the login page anyway. What do you expect?
Logged

sexiestbabygirl

  • Coppermine newbie
  • Offline Offline
  • Gender: Female
  • Posts: 14
    • www.sexiestbabygirl.net (not safe for work)

oh yes!!!!

thanks so much!!!! u're super!!!!!

i did it!!!!!!

thank u soooooo much!!!!!!!!! :D
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 15 queries.