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™

Moving Protected Files To A Custom Location

Common Questions/Problems/Tips. Posted by Administrators & Support Reps.

Moving Protected Files To A Custom Location

Postby Jason Caldwell » March 19th, 2011, 2:46 am

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: Select all
<?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: Select all
<?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"; }
?>
~ 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 Common Questions/Problems/Tips

Who is online

Users browsing this forum: No registered users and 2 guests

cron