Community Support Forums — WordPress® ( Users Helping Users ) — 2011-03-19T02:44:26-05:00 http://www.primothemes.com/forums/feed.php?f=36&t=2719 2011-03-19T02:44:26-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2719&p=8017#p8017 <![CDATA[Re: change secured directory files]]> Thanks for the excellent question.

If you'd like to move your protected files:

Create this directory and file:
/wp-content/mu-plugins/s2-hacks.php

Inside the file, do this with PHP code.
Code:
<?php
add_filter
("ws_plugin__s2member_files_dir", "my_files_dir");
function my_files_dir(){ return "/usr/home/path/to/files"; }
?>
* Change "/usr/home/path/to/files" to the full server path leading to the location of your protected files.


For a custom logs directory, the process is the same:
Code:
<?php
add_filter
("ws_plugin__s2member_files_dir", "my_files_dir");
function my_files_dir(){ return "/usr/home/path/to/files"; }

add_filter("ws_plugin__s2member_logs_dir", "my_logs_dir");
function my_logs_dir(){ return "/usr/home/path/to/logs"; }
?>

Statistics: Posted by Jason Caldwell — March 19th, 2011, 2:44 am


]]>
2011-03-17T16:05:24-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2719&p=7955#p7955 <![CDATA[change secured directory files]]>
WP Version 3.1
S2Member version 3.5.4

I've read the part that says

s2Member's directory locations for /s2member-files/ and /s2member-logs/ are now nested into a sub-directory of /app_data/ ONLY on Windows® servers. This way all files in these directories will be secured from public access in a Windows® environment. On a Windows® server, the /app_data/ directory name is special. Files within a directory with this special name are automatically protected from public access, without needing to create an .htaccess workaround, or use a web.config file. In addition, s2Member now makes two WordPress® Filters available ( ws_plugin__s2member_files_dir and ws_plugin__s2member_logs_dir ) giving developers the ability to move their protected files and/or logs to a custom directory of their choosing; if/when this is needed in special cases.

just exactly how do you do it? can you please give me a step by step tutorial?

Thank You!

Statistics: Posted by pcykcul — March 17th, 2011, 4:05 pm


]]>