Community Support Forums — WordPress® ( Users Helping Users ) — 2011-03-19T02:46:15-05:00 http://www.primothemes.com/forums/feed.php?f=36&t=2729 2011-03-19T02:46:15-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2729&p=8018#p8018 <![CDATA[Moving Protected Files To A Custom Location]]> 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:46 am


]]>