PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

Prevent Image Download for Non-Members

s2Member Plugin. A Membership plugin for WordPress®.

Prevent Image Download for Non-Members

Postby Abbe666 » September 10th, 2011, 4:49 am

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
User avatar
Abbe666
Registered User
Registered User
 
Posts: 9
Joined: July 24, 2011

Re: Prevent Image Download for Non-Members

Postby Harty » September 10th, 2011, 5:39 am

My guess would be that pics will need to be saved in s2m's protected download folder.
User avatar
Harty
Registered User
Registered User
 
Posts: 104
Joined: April 27, 2011
Location: New Zealand

Re: Prevent Image Download for Non-Members

Postby Eduan » September 10th, 2011, 8:56 am

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/
Now officially accepting Professional s2Member installations along with Bruce C (a.k.a. Ace).

If you're interested in a Professional s2Member Installation, or a Custom Coding Job, you can send your request here.
User avatar
Eduan
Experienced User
Experienced User
 
Posts: 1154
Joined: August 27, 2011
Location: Taxco de Alarcón, Guerrero, México.

Re: Prevent Image Download for Non-Members

Postby Abbe666 » September 10th, 2011, 10:24 am

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.
User avatar
Abbe666
Registered User
Registered User
 
Posts: 9
Joined: July 24, 2011

Re: Prevent Image Download for Non-Members

Postby Eduan » September 10th, 2011, 10:31 am

You mean add it to a page instead of a gallery?
Now officially accepting Professional s2Member installations along with Bruce C (a.k.a. Ace).

If you're interested in a Professional s2Member Installation, or a Custom Coding Job, you can send your request here.
User avatar
Eduan
Experienced User
Experienced User
 
Posts: 1154
Joined: August 27, 2011
Location: Taxco de Alarcón, Guerrero, México.

Re: Prevent Image Download for Non-Members

Postby Abbe666 » September 10th, 2011, 11:06 am

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
User avatar
Abbe666
Registered User
Registered User
 
Posts: 9
Joined: July 24, 2011

Re: Prevent Image Download for Non-Members

Postby Eduan » September 10th, 2011, 11:12 am

Hm... I understand your problem...
I wouldn't know about that, maybe Cristián or Jason can answer that question.
Now officially accepting Professional s2Member installations along with Bruce C (a.k.a. Ace).

If you're interested in a Professional s2Member Installation, or a Custom Coding Job, you can send your request here.
User avatar
Eduan
Experienced User
Experienced User
 
Posts: 1154
Joined: August 27, 2011
Location: Taxco de Alarcón, Guerrero, México.

Re: Prevent Image Download for Non-Members

Postby Harty » September 10th, 2011, 2:47 pm

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/
User avatar
Harty
Registered User
Registered User
 
Posts: 104
Joined: April 27, 2011
Location: New Zealand

Re: Prevent Image Download for Non-Members

Postby Cristián Lávaque » September 13th, 2011, 3:03 am

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.
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010


Return to s2Member Plugin

Who is online

Users browsing this forum: Bing [Bot], Exabot [Bot], Google [Bot] and 2 guests

cron