| 
			
			
		 | 
	
	
		
			
				YESSSS 
In wp-config.php i removed  
define('DISALLOW_FILE_EDIT', true ); 
is it right ? 
			 
		 | 
	
								
	
		| 
			
			
		 | 
	
	
		
			
				I have try with “Twenty Eleven” and “Twenty Twelve” 
After activation i can see this message : “Quick Cache reset automatically to avoid conflicts :-)” 
but still the same error. 
Now i remove the plugin, clean wp-options table, and re-install the plugin. I Hope :-) 
Still the same. :-( 
			 
		 | 
	
								
	
		| 
			
			
		 | 
	
	
		
			
				Nothing particular in the data base concerning cache. I have  deactivated one by one all plugins and no change. 
			 
		 | 
	
								
	
		| 
			
			
		 | 
	
	
		
			
				Ok, i will investigate in database 
			 
		 | 
	
								
	
		| 
			
			
		 | 
	
	
		
			
				I’ve just send a message with login infos. 
Thanks for your help 
			 
		 | 
	
								
	
		| 
			
			
		 | 
	
	
		
			
				I have all rights. 
I’ve just test it with Enhanced Capability Manager 
			 
		 | 
	
								
	
		| 
			
			
		 | 
	
	
		| 
			
		 | 
	
								
	
		| 
			
			
		 | 
	
	
		
			
				Hello Jason 
After some new tests it works. 
THANK YOU 
			 
		 | 
	
								
	
		| 
			
			
		 | 
	
	
		
			
				Wel I’ve made new tests ond it’s ok i receive an email with a link to register but i have a new message :  
User registration is currently not allowed.  
So i’ve modify in General Options -> Open Registration on YES 
But now when i register on my account by clic on the link emailed to me, i’m a free subscriber. 
			 
		 | 
	
								
	
		| 
			
			
		 | 
	
	
		
			
				Hello Jason 
I send it again 
Thanks for your help 
			 
		 | 
	
								
	
		| 
			
			
		 | 
	
	
		
			
				Hello Jason 
Have you received my private message ? 
Thank you for your help 
			 
		 | 
	
								
	
		| 
			
			
		 | 
	
	
		
			
				Thank you 
I will test it right now 
			 
		 | 
	
								
	
		| 
			
			
		 | 
	
	
		
			
				Thanks for your help but it’s still don’t work. 
I will try an another directory inside root. 
Thank you 
			 
		 | 
	
								
	
		| 
			
			
		 | 
	
	
		
			
				Hello Bruce 
well i try again but it don’t work. Sorry 
I think i will try with a classic folder into the root. 
Can you read my code, may be a mistake that i can’t see ;-) 
<?php
add_filter('ws_plugin__s2member_files_dir', 'my_files_directory');
function my_files_directory() {
return ABSPATH.'/var/www/vhosts/mydomain.com/myfolder/'.((stripos(PHP_OS, "win") === 0 && stripos($_SERVER["SERVER_SOFTWARE"], "apache") === false) ? "/app_data" : "");
}
?> 
			 
		 | 
	
								
	
		| 
			
			
		 | 
	
	
		
			
				Can you try adding the following line to the end of your new directory?
  
I don’t undestand what you mean by new directory ? 
Can you explain a little more ;-)  
Thank you 
			 
		 | 
	
								
	
		| 
			
			
		 | 
	
	
		
			
				Always the same message… 
This is directory info : 
user www-data 
group www-data 
chmod 775 
My server run whith plesk 
			 
		 | 
	
								
	
		| 
			
			
		 | 
	
	
		
			
				Sorry always the same message : The security-enabled files directory (/var/www/vhosts/mydomain.com/mysecuritydirectory) does not exist. 
			 
		 | 
	
								
	
		| 
			
			
		 | 
	
	
		
			
				Hi, 
It’s not a document outside wordpress that I wish to protect. 
I just want to modify the location of the security-enabled directory, and this location is outside the web root. 
			 
		 | 
	
								
	
		| 
			
			
		 | 
	
	
		
			
				Thanks but i can’t fix my trouble so i’ve decide to re-install on single domain. 
To complex for me ;-(  
			 
		 | 
	
								
	
		| 
			
			
		 | 
	
	
		
			
				Sorry but don’t work. 
I need to use the protected zip file. I must use a mix between 
My Conditions if zip file exist and if member or no. 
My function to make my zip file, like this id_model_full.zip, for example marilyn_full.zip, this file is in my protected folder. 
I must use something like this 
<?php
if (in_array('zipfull', get_field('fichiers_zip')) and current_user_can("access_s2member_level3"))
	echo '<a title="Right clic to download this file" href="s2member_file_download_url(array("file_download" => "' . the_field('id_model') . '_full.zip")">Zip Full</a><br/>';
else if (in_array('zipfull', get_field('fichiers_zip')))
	echo '<a title="Right clic to download this file" href="/join">Zip Full (Between 3M and 6M pixels</a><br/>';
else 						
	echo '';
?> 
Of course my code is wrong :-) 
			 
		 | 
	
								
	
		| 
			
			
		 | 
	
	
		
			
				get_field or the_field are functions defined in my custom functions.  
But my main problem si how can i integrate the URL of zip fil in my if-elseif-else condition. 
echo '<a title="Right clic to download this file" href="#">Zip Full (..... 
at the place of href 
			 
		 | 
	
								
	
		| 
			
			
		 | 
	
	
		| 
			
		 | 
	
								
	
		| 
			
			
		 | 
	
	
		
			
				It works; like this :  
if (in_array('ziplevel2', get_field('zipfiles')) && current_user_is("s2member_level2")) {
	$memberlink = '<a title="Member only" href="#">Zip Level 2</a><br/>';
	echo "$memberlink";
} else {
	$freelink = '<a title="Freelink" href="/join">Zip Level 2</a><br/>';
	echo "$freelink";
} 
Thank you 
			 
		 | 
	
								
	
		| 
			
			
		 | 
	
	
		
			
				Sorry but it don’t work :-( 
And how to show the value $freelink if the member has no required levels ? How to add and else condition ? 
if(in_array('ziplevel2', get_field('zipfiles')) && current_user_is("s2member_level2"))
	{
	$freelink = '<a title="Freelink" href="/join">Zip Level 2</a><br/>';
	$memberlink = '<a title="Member only" href="#">Zip Level 2</a><br/>';
	echo "$memberlink";
	} 
			 
		 | 
	
								
	
		| 
			
			
		 | 
	
	
		
			
				Thanks, I test that tomorrow, now I am going to sleep. 
;=/ 
			 
		 |