coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: sexiestbabygirl on June 07, 2009, 08:34:22 AM

Title: [Solved]: coppermine's faq doesn't work on "only thumbnail view" for unregistered users
Post by: sexiestbabygirl on June 07, 2009, 08:34:22 AM
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
Title: Re: coppermine's faq doesn't work on "only thumbnail view" for unregistered users
Post by: Joachim Müller on June 07, 2009, 09:51:49 AM
Quote from: sexiestbabygirl on June 07, 2009, 08:34:22 AM
but it didn't work
What should that mean? That's not a valid report.
Title: Re: coppermine's faq doesn't work on "only thumbnail view" for unregistered users
Post by: sexiestbabygirl on June 07, 2009, 10:28:05 AM
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
Title: Re: coppermine's faq doesn't work on "only thumbnail view" for unregistered users
Post by: Joachim Müller on June 07, 2009, 08:42:50 PM
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?
Title: Re: coppermine's faq doesn't work on "only thumbnail view" for unregistered users
Post by: sexiestbabygirl on June 07, 2009, 09:11:52 PM
oh yes!!!!

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

i did it!!!!!!

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