Allow guests to see only a few images, then they have to login Allow guests to see only a few images, then they have to login
 

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

Allow guests to see only a few images, then they have to login

Started by goingon, August 23, 2005, 07:53:44 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

goingon

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.

kegobeer

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.
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

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

Thanks.