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™

custom download directory

s2Member Plugin. A Membership plugin for WordPress®.

custom download directory

Postby arthomas » September 21st, 2010, 3:28 pm

Hello
First, thanks for this awesome plugin, I just found it, and I am in awe of its robustness and wide array of options, there are not many plugins like that! it certainly is one the top wordpress plugins.
I have been offering a lot of files for free during the years, I want to start charging for them now, but I cant move them all to the default protected directory, because it will break a lot of links.
Isn't it possible to define a different protected directory (under the same domain), it seems that it isn't, but why? will it ever change? is there any workaround for that?
Thanks in advance
User avatar
arthomas
Registered User
Registered User
 
Posts: 19
Joined: September 21, 2010

Re: custom download directory

Postby arthomas » October 6th, 2010, 8:12 pm

BUMP
User avatar
arthomas
Registered User
Registered User
 
Posts: 19
Joined: September 21, 2010

Re: custom download directory

Postby Jason Caldwell » October 27th, 2010, 5:18 pm

Thanks for your patience.
I'm very sorry for the delayed response.


This directory MUST reside at:
/wp-content/plugins/s2member-files/

However, if you'd like to create a SYMLINK in this location, which points to another directory, possibly on a different drive or another area of your server, it is fine to do this.
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: custom download directory

Postby arthomas » October 27th, 2010, 5:22 pm

seems to complicated :(
why are you not providing this possibility? is it technically impossible? or a different another reason?
User avatar
arthomas
Registered User
Registered User
 
Posts: 19
Joined: September 21, 2010

Re: custom download directory

Postby Jason Caldwell » October 27th, 2010, 5:44 pm

arthomas wrote:seems to complicated :(
why are you not providing this possibility? is it technically impossible? or a different another reason?

I understand. Actually though, it's not a huge deal if you have SSH access to your web space.
You just log in via SSH and just type in something like this:

The syntax is: ln -s [directory] [shortcut]
Code: Select all
ln -s /full/path/to/your/protected/files/ /path/to/plugins/s2member-files/ 

See: http://help.hardhathosting.com/question.php/95

I will certainly consider adding an option to change the location of /s2member-files/ in a future release.
@TODO :: possible config option for /s2member-files/ custom location, other than with SYMLINK.
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: custom download directory

Postby smiles » October 27th, 2010, 6:39 pm

The problem is that most people do NOT have SSH access by default and many hosts aren't too keen on giving SSH access (at least not w/o extra fees). Plus, most people don't know how to use SSH even if they DO have access. I mean look at the OP above, to him creating a sym link seems too hard when in reality it is VERY simple when you know how.

Most people don't even know where to start at all. They don't know HOW to login using SSH even if they DO have access (some have SSH access and never even know it). So for those of you wondering, you can download the free Putty SSH client to access your server through SSH. I seem to also recall finding a built-in (undocumented) SSH client in Windows XP but I can't seem to recall the name now, so Putty will do.

Once installed, simply launch Putty, enter your HostName (usually the IP address of the server) and select to connect using SSH. Accept the key then enter your username and password (this is usually the SAME as your FTP login info). Now you are logged in and ready to use SSH on your hosting account.

Now simply use the Code that Jason gave you (obviously changing the paths to what you need them to be for YOUR setup) and you have created a Symbolic Link using SSH. Pretty simple, right? Believe it or not, once you learn how SSH is just as easy as FTP.

Good luck to all!

~smiles
User avatar
smiles
Experienced User
Experienced User
 
Posts: 1
Joined: October 27, 2010

Re: custom download directory

Postby arthomas » October 27th, 2010, 8:37 pm

Thanks Jason and smiles.

I will look into it, I never used SSH, although I don't consider myself a noob at all. I have been a web developer for 5 years, but I never used SSH.
User avatar
arthomas
Registered User
Registered User
 
Posts: 19
Joined: September 21, 2010

Re: custom download directory

Postby Jason Caldwell » October 27th, 2010, 9:57 pm

@smiles
Thanks for posting these helpful details.
~ Much appreciated!

smiles wrote:The problem is that most people do NOT have SSH access by default and many hosts aren't too keen on giving SSH access (at least not w/o extra fees). Plus, most people don't know how to use SSH even if they DO have access. I mean look at the OP above, to him creating a sym link seems too hard when in reality it is VERY simple when you know how.

Most people don't even know where to start at all. They don't know HOW to login using SSH even if they DO have access (some have SSH access and never even know it). So for those of you wondering, you can download the free Putty SSH client to access your server through SSH. I seem to also recall finding a built-in (undocumented) SSH client in Windows XP but I can't seem to recall the name now, so Putty will do.

Once installed, simply launch Putty, enter your HostName (usually the IP address of the server) and select to connect using SSH. Accept the key then enter your username and password (this is usually the SAME as your FTP login info). Now you are logged in and ready to use SSH on your hosting account.

Now simply use the Code that Jason gave you (obviously changing the paths to what you need them to be for YOUR setup) and you have created a Symbolic Link using SSH. Pretty simple, right? Believe it or not, once you learn how SSH is just as easy as FTP.
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA


Return to s2Member Plugin

Who is online

Users browsing this forum: Exabot [Bot], Google [Bot], Yahoo [Bot] and 1 guest

cron