The Toolset Community Forum is closed, for technical support questions, please head on to our Toolset Professional Support (for paid clients), with any pre-sale or admin question please contact us here.
Access is a WordPress plugin that lets you add custom roles and control their privileges.
Access User Guides include detailed documentation for controlling what actions different roles and users can do on content and what WordPress admin screens users can access.
When you ask for help or report issues, make sure to tell us the versions of the Toolset plugins that you have installed and activated.
Viewing 15 topics - 1,141 through 1,155 (of 1,161 total)
Problem:
What are the options for displaying different content to different users on the front-end?
Solution:
To display different content on the front-end according to some criteria you essentially have two options.
If the thing being tested relates to the person doing the looking (the user browsing the website is registered and has a certain role because they have paid for a particular membership, for example) then you can use Access to restrict the visibility of whole pages, or to selectively show certain content on a page (as described here: https://toolset.com/documentation/user-guides/access-control-texts-inside-page-content/).
If the thing being tested relates to the thing being looked at then you would need to add custom fields to the content being viewed and then use the wpv-conditional shortcodes to test the content of those custom fields and selectively display what is wrapped in the shortcode, as described here: https://toolset.com/documentation/user-guides/conditional-html-output-in-views/
Problem: When the Give plugin is active, I am unable to use the Access plugin effectively.
Solution: Extract the patched Helper.php file into the directory wp-content/plugins/types-access/includes/. The next version of Access will include a permanent fix for this problem.
Problem: A dropdown component on my User profile page does not function correctly. I have Kleo theme active.
Solution: Kleo loads Bootstrap 4, and Toolset attempts to load Bootstrap 3. This results in a conflict. Go to Toolset > Settings > General tab and select "The theme or another plugin is already loading Bootstrap 3" in the Bootstrap Loading configurations.
Problem:
The issue here is that the user wanted to create separate folders for logged in users, so they can upload their files to that folder.
Solution:
I was thinking we can create a CPT to old the uploaded files. This way we can keep track of them and who uploaded them. Then you can create a taxonomy that will essentially separate the files into categories.
So this has an additional benefit in that you can display to the user all the files he/she has uploaded as well as you can display groupings of files based on a category.
Problem: I would like to manage Access settings for the Yoast SEO plugin.
Solution: Go to Change Permissions and click Other capabilities. You will find these options in the "Other capabilities" section, near the bottom. There is no section specific for Yoast permissions.
Problem: I would like to add a registration form that allows people to claim ownership of a post. Once an admin approves their ownership, the registrant becomes author of that post.
Solution:
If I were trying to do something like this, I would follow this process:
- Create a new CPT called Pending Approvals
- Add custom fields to the Pending Approval CPT - user ID, university ID, college ID, and school ID
- Use cred_save_data to create a Pending Approval post whenever someone submits the User Registration form while trying to claim ownership of a University, College or School.
- Save the new User's ID and the appropriate University, College or School ID in the Pending Approval post
- Create a View of Pending Approval posts. In the Loop of results, include a "Delete Post" link that can be used to decline the ownership request. Also include an Edit CRED form that edits the University, College, or School. Hide or remove all the visible inputs from this form except the submit button, and give it a name like "Approve Ownership"
- Use the cred_save_data hook to update the University, College, or School post author when this form is submitted, and trash the Pending Approval post.
- Insert the View of Pending Approval posts in a page that is restricted to site administrators.
Problem: I would like to restrict edit access to some posts using categories.
Solution: Access can restrict User access based on User role and post group, but not post category (or categories). Post Groups and custom User roles might work but you can only assign one Group to any Post, and only one Role to any User. If you have multiple combinations of post permissions this might not be an option. If your Users are only editing posts with CRED, then you can use conditional HTML or CRED conditionals to show or hide specific content depending on some criteria of the current User, like a custom field value. Store some value in the User's custom field and check that value to determine whether or not to show them a specific CRED form.