Page 1 of 1

Prevent Image Download for Non-Members

PostPosted: September 10th, 2011, 4:49 am
by Abbe666
Hi!

I am building a membership site using s2member. The site contains protected member pages with picture galleries. What I wonder is how can I prevent a Non-member to access pictures through a direct link to the pictures itself. If for example if a member shares the link to the picture on a forum, I don't want non-members to access it.

How can this be done? Is it something that s2member can help out with?


Regards

Re: Prevent Image Download for Non-Members

PostPosted: September 10th, 2011, 5:39 am
by Harty
My guess would be that pics will need to be saved in s2m's protected download folder.

Re: Prevent Image Download for Non-Members

PostPosted: September 10th, 2011, 8:56 am
by Eduan
I think you should put the images that you want to protect on the s2Member protected download folder, as to how to do that:
http://www.s2member.com/file-download-options-video/

Re: Prevent Image Download for Non-Members

PostPosted: September 10th, 2011, 10:24 am
by Abbe666
Thank you both very much. This was what I was wondering about.

My next question, which maybe should be a new topic is if it is possible to somehow add those images in that directory to a page in the same way as when I add regular images or galleries through WordPress for a more user-friendly experience.

Re: Prevent Image Download for Non-Members

PostPosted: September 10th, 2011, 10:31 am
by Eduan
You mean add it to a page instead of a gallery?

Re: Prevent Image Download for Non-Members

PostPosted: September 10th, 2011, 11:06 am
by Abbe666
Let's say I have downloaded 30 pics via FTP to the protected s2member folder. After that I want to add those pictures to a member page.

Usually I would use the Wordpress feature to insert either images or a gallery of images to a page or post. But when the pictures resides in the s2member directory, I can't insert them through usual Wordpress functionality. Currently I insert them by adding the url to the page.

I would like to have some more user friendly way to insert those pictures into a page instead of manually adding 30 urls.

Regards

Re: Prevent Image Download for Non-Members

PostPosted: September 10th, 2011, 11:12 am
by Eduan
Hm... I understand your problem...
I wouldn't know about that, maybe Cristián or Jason can answer that question.

Re: Prevent Image Download for Non-Members

PostPosted: September 10th, 2011, 2:47 pm
by Harty
Hi. To display your photos, that are stored in the protected folder,you will Need to hard code them into the pages using <img src="URL to photo.jpg" width="300px" height="200px"> but double check my coding as I am guessing here, but it is something like this.
You will have to get the size correct or your photo will look too long or too high - stretched.
So, to do what you want, you can't use the normal wp insert photo.
A quicker way, that may not be a solution for you is to insert photos in the normal manner, and if you look carefully during the photo select procedure, you will see an option to delete the link to the photo (none). Selecting none means that if someone double clicks the photo on your page, nothing will happen, but of course visitors can still drag the photo off the page. Consider watermarking them and replacing the link to the photo to a page showing a copyright statement.
You could also try nextgen photo gallery, not sure, but I think photos displayed with this plugin can't be copied or dragged off the page.
I had problems with the latest version of nxtgen and so had to use the older previous version.
http://wordpress.org/extend/plugins/nex ... /download/

Re: Prevent Image Download for Non-Members

PostPosted: September 13th, 2011, 3:03 am
by Cristián Lávaque
Hi Abbe.

They're right: if you want to protect the files, you need to have them in the special dir s2Member uses to protect downloads.

At the moment, s2Member's protected downloads dir doesn't work with WordPress' interface to insert images as with normal WP stored files. Sorry about that.

You can try copying the code generated by WP for a single image, then in the HTML editor copy that and paste it several times for all the images, and update the URL and size for each.