Community Support Forums — WordPress® ( Users Helping Users ) — 2010-09-07T20:06:36-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=659 2010-09-07T20:06:36-05:00 http://www.primothemes.com/forums/viewtopic.php?t=659&p=3002#p3002 <![CDATA[Re: File Download Not Redirecting]]> Hi there. If you would like to dynamically modify the root
location of s2Member files, here are a couple of ideas/options available.

1. In the functions.php file for your WordPress® theme, add this code snippet:
Code:
add_action("ws_plugin__s2member_before_file_download_access", "my_custom_files_dir");
function my_custom_files_dir(){
    // Set this to the full server path ( no trailing slash )
    $GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["files_dir"] = "/usr/home/path/to/files";
}
 

2. Create a symbolic link somewhere inside the /s2member-files/ directory.
http://en.wikipedia.org/wiki/Symbolic_link

Statistics: Posted by Jason Caldwell — September 7th, 2010, 8:06 pm


]]>
2010-09-04T02:08:19-05:00 http://www.primothemes.com/forums/viewtopic.php?t=659&p=2905#p2905 <![CDATA[Re: File Download Not Redirecting]]>
Hello, We want you to change the upload path and give an example in another server file uploading and are subject to another server what should I upload thanks

/wp-content/plugins/s2member-files

to

domain.com/s2member-files

-------------------------------
Thanks are waiting for your response
:?: :)

Statistics: Posted by sadeght — September 4th, 2010, 2:08 am


]]>
2010-09-02T14:08:05-05:00 http://www.primothemes.com/forums/viewtopic.php?t=659&p=2878#p2878 <![CDATA[Re: File Download Not Redirecting]]> Hi there. Thanks for reporting this.

I get: "404: Sorry, file not found. Please contact Support for assistance." I know that the s2member plugin knows where the file is, because it the download prompt pops up when I am logged in as a user. So....

The "prompt" is not an indication that the file was found, as this is handled via JavaScript. So my guess is that your Download Link is incorrectly formatted, or the protected file is not being found in the anticipated location.

Possible solution:

Please check to make sure that you uploaded your protected file to:
/plugins/s2member-files/some-file.zip

Your Download Link should look like this:
Code:
http://yoursite.com/?s2member_file_download=some-file.zip

Also, before testing; please make sure that you've configured s2Member's Basic Download Restrictions.
See: s2Member -> Download Options -> Basic Download Restrictions
100 files every 30 days ( or something like that )

There are additional advanced methods for dealing with downloads as well.
I've done a video tutorial here: http://www.s2member.com/file-download-options-video/

Statistics: Posted by Jason Caldwell — September 2nd, 2010, 2:08 pm


]]>
2010-09-02T08:51:16-05:00 http://www.primothemes.com/forums/viewtopic.php?t=659&p=2868#p2868 <![CDATA[Re: File Download Not Redirecting]]> Statistics: Posted by instructor — September 2nd, 2010, 8:51 am


]]>
2010-09-02T08:43:41-05:00 http://www.primothemes.com/forums/viewtopic.php?t=659&p=2867#p2867 <![CDATA[Re: File Download Not Redirecting]]> Statistics: Posted by Guest — September 2nd, 2010, 8:43 am


]]>
2010-09-02T08:41:52-05:00 http://www.primothemes.com/forums/viewtopic.php?t=659&p=2866#p2866 <![CDATA[File Download Not Redirecting]]>
What am I doing wrong? Is there an additional setting for non-logged in users?

I am NOT running BuddyPress.

Thanks
Instructor

Statistics: Posted by Guest — September 2nd, 2010, 8:41 am


]]>