coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: troublemaker on December 11, 2003, 05:00:06 PM

Title: full screen view only for registered users
Post by: troublemaker on December 11, 2003, 05:00:06 PM
if they are not logged in they can not view the full sized image
Title: full screen view only for registered users
Post by: bobo on December 22, 2003, 05:07:32 AM
I agree; this would be an excellent feature to add!
Title: full screen view only for registered users
Post by: olegario on December 22, 2003, 07:28:37 PM
Check out http://coppermine.sourceforge.net/oldboard/viewtopic.php?t=1380
Title: full screen view only for registered users
Post by: Rodinou on December 27, 2003, 09:18:06 AM
I don't think it's really that ...

you want to say : people can see "normal" pictures but not in pop up ?

in displayimage.php search

// Display the full size image
function display_fullsize_pic()
{
    global $CONFIG, $HTTP_GET_VARS, $THEME_DIR, $ALBUM_SET;
    global $lang_errors, $lang_fullsize_popup, $lang_charset;

    if (function_exists('theme_display_fullsize_pic')) {
                 
        theme_display_fullsize_pic();
        return;
    }


After
   global $lang_errors, $lang_fullsize_popup, $lang_charset;

Add
if (!USER_ID) cpg_die(ERROR, 'Your message to invite visitors to register to see the big pic', __FILE__, __LINE__);

I know : layout is not good, but this is the idea, isn'it it ?
Title: full screen view only for registered users
Post by: frankae on January 20, 2004, 05:22:37 PM
I wouldn't care so much about the layout, but your solution doesn't protect anything!

I see your medium size picture, I view page code, I see albums/rodinou/normal_blahblah.jpg, so I  open http://rodinousdomain.com/albums/rodinou/blahblah.jpg.

I didn't login did I?

I know security is relative, but this is ludicrous.
Title: full screen view only for registered users
Post by: gazon_zaseyan on January 21, 2004, 04:51:15 AM
Quote from: "Rodinou"I don't think it's really that ...

you want to say : people can see "normal" pictures but not in pop up ?

in displayimage.php search

// Display the full size image
function display_fullsize_pic()
{
    global $CONFIG, $HTTP_GET_VARS, $THEME_DIR, $ALBUM_SET;
    global $lang_errors, $lang_fullsize_popup, $lang_charset;

    if (function_exists('theme_display_fullsize_pic')) {
                 
        theme_display_fullsize_pic();
        return;
    }


After
   global $lang_errors, $lang_fullsize_popup, $lang_charset;

Add
if (!USER_ID) cpg_die(ERROR, 'Your message to invite visitors to register to see the big pic', __FILE__, __LINE__);

I know : layout is not good, but this is the idea, isn'it it ?

is it possible to get the same error messege in the same window? without having it open a new page(originaly for the full size pic)  ?

or just make the same window to open in a fixed size, when an unregistered user is clicking on it ?

is it possible?

Thanks.
Title: full screen view only for registered users
Post by: gazon_zaseyan on January 22, 2004, 03:16:44 PM
anyone?
Title: full screen view only for registered users
Post by: yanola on April 07, 2004, 10:28:23 AM
i can't code well, but couldn't you set it up so that it disables thumbnail links when a user is unregistered??
Title: Re: full screen view only for registered users
Post by: lordprodigy on April 25, 2004, 12:42:01 AM
thats a good idea... i am looking for something like this. do you have any leads?
Title: Re: full screen view only for registered users
Post by: Joachim Müller on April 25, 2004, 08:02:40 AM
http://coppermine.sourceforge.net/faq.php?q=registeredUsersOnly#registeredUsersOnly
Title: Re: full screen view only for registered users
Post by: lordprodigy on April 27, 2004, 02:04:32 AM
beautiful.... thank you GauGau!