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: full screen view only for registered users  (Read 7506 times)

0 Members and 1 Guest are viewing this topic.

troublemaker

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 40
    • http://www.clynefan.com
full screen view only for registered users
« on: December 11, 2003, 05:00:06 pm »

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

bobo

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
full screen view only for registered users
« Reply #1 on: December 22, 2003, 05:07:32 am »

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

olegario

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 32
Logged

Rodinou

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 346
  • Tournicoti, Tournicota
    • http://www.sortons.net
full screen view only for registered users
« Reply #3 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

Code: [Select]
// 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
Code: [Select]
   global $lang_errors, $lang_fullsize_popup, $lang_charset;

Add
Code: [Select]
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

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 21
full screen view only for registered users
« Reply #4 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.
Logged

gazon_zaseyan

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 34
full screen view only for registered users
« Reply #5 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

Code: [Select]
// 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
Code: [Select]
   global $lang_errors, $lang_fullsize_popup, $lang_charset;

Add
Code: [Select]
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.
Logged

gazon_zaseyan

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 34
full screen view only for registered users
« Reply #6 on: January 22, 2004, 03:16:44 pm »

anyone?
Logged

yanola

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
full screen view only for registered users
« Reply #7 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??
Logged

lordprodigy

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 228
    • B514 ///
Re: full screen view only for registered users
« Reply #8 on: April 25, 2004, 12:42:01 am »

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

Joachim Müller

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

lordprodigy

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 228
    • B514 ///
Re: full screen view only for registered users
« Reply #10 on: April 27, 2004, 02:04:32 am »

beautiful.... thank you GauGau!
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 18 queries.