WPFront
  • Home
  • Plugins
    • Notification Bar Plugin
      • Plugin Ideas
      • Plugin Settings
      • Plugin FAQ
    • Scroll Top Plugin
      • Plugin Settings
      • Plugin FAQ
    • User Role Editor Plugin
      • Plugin Documentation
      • Plugin Settings
      • Plugin FAQ
    • Paddle Gateway Plugin
  • Go Pro
  • Support
    • Documentation
    • FAQ
  • Affiliates
  • Contact
  • Login
  • Cart
  • Profile
  • Topics Started
  • Replies Created
  • Engagements
  • Favorites

Forum Replies Created

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • January 1, 2017 at 7:27 pm in reply to: Prevent creation of Docs #44225
    peter verbeek
    Participant
    This reply has been marked as private.
    December 28, 2016 at 9:21 pm in reply to: Prevent creation of Docs #44079
    peter verbeek
    Participant

    Syam,

    I got this answer from the Buddypress Docs plugin people.

    You can filter who can create docs by adding your own callback on the bp_docs_current_user_can_create_in_context hook.
    https://github.com/boonebgorges/buddypress-docs/blob/master/includes/functions.php#L326

    (You can also add a filter to WP’s capability system if that’s more familiar to you.)
    Then, you can make whatever rules you need. If the user can’t create a doc, the button will not appear, and the user will not be able to access the create docs page.

    Unfortunately I am not a programmer so the github link does not help me.

    Then they mention to add a filter to WP’s capability system!
    No idea how to do that. Isn’t that what your WPFRONT provides me?
    So now I know that what I want (hide the “create doc” button based on role) can be done but I still don’t know how.

    Can WPFRONT help me?
    Thanks
    Peter

    December 27, 2016 at 11:30 pm in reply to: Prevent creation of Docs #44037
    peter verbeek
    Participant

    The last screenshot I took because you asked for it. Normally my users only use the frontend DOCS function and they don’t see the backend admin bar.

    What I want to achieve is that depending on the capabilities setting for the role users can see the DOCS button on the frontend or not.

    To answer your question: yes I want to remove the DOCS menu button on the frontend for certain roles only.

    I did expect I could achieve that with the pro version of WPFRONT. Otherwise I wouldnot know what the DOCS group is doing in the role settings for the PRO version.

    Thanks,
    Peter

    December 25, 2016 at 6:51 pm in reply to: Prevent creation of Docs #43988
    peter verbeek
    Participant

    Hi Syam,
    Sorry for the misunderstanding.

    I have added useradmin.jpeg to the shared folder:
    https://www.icloud.com/sharedalbum/#B0rGWZuqDc6Pfl

    For this screenshot I UNchecked “deny wp-admin” and “disable toolbar” in de “Login Redirect” options.
    Normally I have these options checked.

    Thanks,
    Peter

    December 21, 2016 at 8:00 pm in reply to: Prevent creation of Docs #43808
    peter verbeek
    Participant

    Hi Syam,

    I have added the requested two screenshots to the following folder:
    https://www.icloud.com/sharedalbum/#B0rGWZuqDc6Pfl
    Thanks,
    Peter

    December 19, 2016 at 2:17 am in reply to: Prevent creation of Docs #43640
    peter verbeek
    Participant

    Hi Syam,

    The Buddypress Docs Plugin provide for members to create documents outsite of the activity stream.
    I want certain roles NOT to be able to create documents.
    The following link shows the role settings for the role I want to prevent creating docs : https://www.icloud.com/sharedalbum/#B0rGWZuqDc6Pfl
    It is very small print but you get the idea that none of the capabilities is checked.
    The DOCS section near the bottom of the screenshot has all capabilities unchecked. So this role should not be able to do anything with Docs.
    My problem is that the member with this specific role is still able to create docs.
    I would expect that unchecking all the capabilities for docs would prevent
    this member to create docs.
    Thanks,
    Peter

    December 15, 2016 at 7:59 pm in reply to: Prevent creation of Docs #43517
    peter verbeek
    Participant

    Hi Syam,

    I have unchecked “upload_files” in Media.
    It does not change anything. That role has now all capabilities unchecked but can still create New Documents as provided thru the Buddypress Docs Plugin.
    What I try to achieve is to have a Role which users canNOT make New Documents.
    In addition I want to have a Role which users can only make and edit own documents.
    Whatever I check or uncheck in the Roles Docs part it does not have any effect for the front end user.
    Can you confirm please that the Roles Docs settings are for the Buddypress Docs Plugin.
    Any suggestion on how to go forward?
    Thanks
    Peter

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)
Log In
Lost Password

Search Topics

Documentation

FAQ
Roles List Add Role Edit Role Delete Role Restore Role Add or Remove Capability Assign/Migrate Users Posts/Pages Extended Permissions Custom Post Type Permissions Navigation Menu Permissions Widget Permissions Admin Menu Editor Media/Attachment File Permissions User Level Permissions Content Restriction Shortcodes Login Redirect Export Roles Import Roles Bulk Edit Settings Multisite Roles List Multisite Add New Role Multisite Edit Role Multisite Delete Role Multisite Restore Role Multisite Sync Roles Multisite Settings WordPress Capabilities Actions and Filters Installation Instructions