[Solved]: coppermine's faq doesn't work on "only thumbnail view" for unregistered users [Solved]: coppermine's faq doesn't work on "only thumbnail view" for unregistered users
 

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]

Main Menu

[Solved]: coppermine's faq doesn't work on "only thumbnail view" for unregistered users

Started by sexiestbabygirl, June 07, 2009, 08:34:22 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

sexiestbabygirl

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

Joachim Müller


sexiestbabygirl

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

Joachim Müller

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?

sexiestbabygirl

oh yes!!!!

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

i did it!!!!!!

thank u soooooo much!!!!!!!!! :D