Viewing 7 replies - 1 through 7 (of 7 total)
  • You have to use the restrictions managed by S2member (role, custom capacities…).

    Plugin Author Potsky

    (@potsky)

    Sorry anchoradmin, I have never seen your message…

    You can group users with s2member custom capacities. There is no password protection available.

    Is there a guide or video on how to set this all up? I tried using roles/custom capabilities but whenever I display files, I always see all of the directories in my tree, not just the ones I want to limit to that particular user

    Plugin Author Potsky

    (@potsky)

    Hi cmsamo,

    there is no video tutorial, sorry. But it is straightforward. There is an embedded documentation in your dashboard at the following address : https://XXX/wp-admin/admin.php?page=psk_s2msfb_manager_docshortcode

    If you take a look on the displayall shortcode parameter, you can see that setting this parameter to 1 will only display allowed directories for current authenticated user.

    Be careful, if you have a huge count of directories, it can really slow down the page response.

    Thanks for the reply. I guess I don’t have things set up correctly. I’ve applied some CCAP to some of my pages, and everything is working correctly in that when I log in with different users, I see the different pages that I should see, based on restricting access via CCAP.

    However, my file browser always shows all files and directories from the root, so I am missing a step in restricting users…

    The short-code I am using is below:

    [s2member_secure_files_browser collapseeasing="swing" collapsespeed="500" cutdirnames="0" cutfilenames="0" dirbase="%2F" dirfirst="1" displayall="0" displaybirthdate="1" displaycomment="1" displaydownloaded="0" displaysize="1" displaymodificationdate="0" dirzip="0" expandeasing="swing" expandspeed="500" folderevent="click" hidden="0" multifolder="1" openrecursive="0" s2alertbox="0" search="1" searchgroup="0" searchdisplay="0" sortby="3" /]

    Do I need to add some additional logic into the page?

    Plugin Author Potsky

    (@potsky)

    Just set displayall to 1 instead of 0 in your short code and it will work !

    Yes – I’d done that, I just posted the wrong shortcode when I replied 🙂

    It did not work at first. I ended up deleting all of the created files and folders from /s2MemberFiles/ and recreating them. In addition I recreated all the CCAP tags on my users. I rebuilt my page with the shortcode and now the file browser works, and it shows all directories, and redirects users to log in when they click on files they don’t have access to. Thanks for the follow up 🙂

    The next step is to prevent the plugin from allowing users to see files they don’t have access to. I’ll go and read the shortcode docs again 🙂

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Restrict to Specific Users’ is closed to new replies.