McKrank
Forum Replies Created
-
Nope, the folder is inside
wp-content, not insidewp-content/plugins. At the same level ofuploadsandplugins.@kts915 yes, I have used the full URL, as I said, the protection works just fine when the images are in the
s2member-filesfolder but I get the 404 error if I try to dowload from thegalleryfolder.I have confirmed that the «change your protected folder via s2hack.php» code does not work for me.
This is the code I’m using:
<?php add_filter('ws_plugin__s2member_files_dir', 'ngg_gallery_directory'); function ngg_gallery_directory() { return ABSPATH.'/wp-content/gallery/'.((stripos(PHP_OS, "win") === 0 && stripos($_SERVER["SERVER_SOFTWARE"], "apache") === false) ? "/app_data" : ""); } ?>I also have tried
return 'http://mysite.com/wp-content/gallery/';I have uploaded an entire gallery to the
s2member-filesfolder and everything works, I got the JavaScript confirmation prompt and the file is downloaded to my computer. I have a large number of galleries in the NextGengalleryfolder, so, it is not viable to move them to the s2member-files folder.Please help!
The
s2member_file_downloadequals to the protected folder, by default it is s2member-files folder, located in wp-content/plugins, so this:
http://mysite.com/?s2member_file_download=/gallery01folder/gallery01image_01.jpg
becomes this:
http://mysite.com/wp-content/plugins/s2member-files/gallery01folder/gallery01image_01.jpgI want to protect the gallery folder located in wp-content, just that. As I said before it works well when the content is in the default folder.
Thanks for your help!
Forum: Plugins
In reply to: [Jigoshop] Jigoshop widgets on non jigoshop pagesHi Michael, yes, I can add widgets to the sidebar, the only widgets that doesn’t work are those two, also I can reproduce the issue with the twenty thirteen theme active.