full screen view only for registered users full screen view only for registered 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

full screen view only for registered users

Started by troublemaker, December 11, 2003, 05:00:06 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

troublemaker

if they are not logged in they can not view the full sized image
Site Admin's @ coppermine kick much techie @$$

bobo

I agree; this would be an excellent feature to add!


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 ?

frankae

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.

gazon_zaseyan

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.


yanola

i can't code well, but couldn't you set it up so that it disables thumbnail links when a user is unregistered??

lordprodigy

thats a good idea... i am looking for something like this. do you have any leads?


lordprodigy