• Brandee

    (@brandeenortonstreetbiz)


    I’ve searched the documentation, and I can’t seem to find whether you can show or hide files in a table according to a list of user IDs. Also, is it possible to show or hide files based on whether someone belongs to a specific BuddyPress group?

    https://wordpress.org/plugins/file-away/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author thomstark

    (@thomstark)

    Using fa-usermeta() or fa-userid you can point to a directory just for someone by a specific userid or belonging to a group defined in the usermeta. It’s in the Dynamic Paths tutorials.

    Thread Starter Brandee

    (@brandeenortonstreetbiz)

    I’m new to this plugin’s shortcodes and not particularly familiar with user meta. I am trying to generate a list or table of files for each BuddyPress group. Users would be able to see the list and access the files if they belong to the group. I was unable to see any files display when trying the following shortcode on a page:

    [fileaway sub=”fa-usermeta(bp-groups&gid=1)”]

    Am I on the right track here?

    Thanks so much for your help!

    Plugin Author thomstark

    (@thomstark)

    No. If your buddypress doesn’t have the ability to add custom WP capabilities to members of a given group (assuming some users are members of more than one group) you’re out of luck. File Away doesn’t integrate with buddypress groups natively.

    If you can find a plugin that will add a custom capability to all members of a given buddy press group, e.g.,

    Members of Group 1 receive group_one_user capability,
    Members of Group 2 receive group_two_user capability,
    etc.

    then you can do your fileaway tables like this:

    [fileaway sub=”group_one_files” showto=”group_one_user”]
    [fileaway sub=”group_two_files” showto=”group_two_user”]

    But I know that buddypress doesn’t natively integrate with WP roles and capabilities.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Can you show files by user ID or BuddyPress group?’ is closed to new replies.