TCPartners
Forum Replies Created
-
Forum: Plugins
In reply to: [s2member Secure File Browser] Users File BrowseFirst of all, you should not use the name
access-s2member-ccap-
for folder given that it has a special meaning.access-s2member-ccap-toto
will be accessible by all users having a Custom Capability (you can set this in user profile page) namedtoto
.Then, in your case, I think everything is fine because by default, the plugin displays ALL files and folders. When a user clicks on a forbidden file, it will be engaged to buy an access, etc…
If you want to hide non-accessible files/folders, just add the following option
displayall
in the shortcode and set its value to0
:[s2member_secure_files_browser dirbase="..." displayall="0"/]
Forum: Plugins
In reply to: [s2member Secure File Browser] Users File BrowseHi sagedel,
I don’t understand what your are looking for. %USERNAME% is already a dynamic placeholder you can put in the shortcode to manager user folders for example.
Let’s take this example : you give users of your wordpress install the ability to download their invoice for example.
You can set this folder structure in your
plugin/s2member-files
folder :–
plugin/s2member-files/username1
–plugin/s2member-files/admin
–plugin/s2member-files/zorro
– …Then you just have to set this shortcode in a page for registered users :
[s2member_secure_files_browser dirbase="%2F%USERNAME%" /]
With this method :
–
username1
will access theplugin/s2member-files/username1
folder only
–zorro
will access theplugin/s2member-files/zorro
folder only
– …If you prefer set this with email address, you do this :
[s2member_secure_files_browser dirbase="%2F%USEREMAIL%" /]
With this method :
–
username1
will access theplugin/s2member-files/[email protected]
folder only
–zorro
will access theplugin/s2member-files/[email protected]
folder only
– …