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: Allow guests to see only a few images, then they have to login  (Read 3687 times)

0 Members and 1 Guest are viewing this topic.

goingon

  • Coppermine newbie
  • Offline Offline
  • Posts: 3

Hi there,

I'd like to be able to allow guests to view a few full images (whole pictures when clicking on the thumbnail) then tell them they have to register to see any more.

I know the option is there just to let guests view the thumbnails but was wondering if the above is possible.

Thanks in advance.
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Allow guests to see only a few images, then they have to login
« Reply #1 on: August 24, 2005, 04:12:39 am »

At first glance this would look like an easy mod, but in order to be truly effective a new table would need to be made, and a user's ip address would have to be recorded when an image is looked at.  The table would have to be queried with the user's IP address and the total entries would have to be counted - if the total is more than the allowed number, no more images.  Still not completely effective as IP addresses tend to be dynamically assigned.  Using cookies is even easier to spoof - delete the cookie and continue viewing images.

I think an easier way would be to only allow unregistered visitors access to an album with a limited number of images.  View as many times as you like, but they can only see the sample images.
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

goingon

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Allow guests to see only a few images, then they have to login
« Reply #2 on: August 24, 2005, 10:15:27 pm »

That's a good idea, I will go ahead and implement that.

Thanks.
Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 20 queries.