Forum Replies Created
-
AuthorPosts
-
VladimirKeymaster
Thanks for the additional information. I paid attention on that after read of your 1st message, but thought that text is shown by WordPress/bbPress that way. Please check the double quotes used at the shortcode. Instead of
[user_role_editor roles=”caclient”]
ordinal HTML complied double quote symbol should be there:
[user_role_editor roles="caclient"]
The same problem should be fixed here:
[user_role_editor roles=”affiliate"]
VladimirKeymasterThank you for the screencast. Shortcode works at my test multisite WordPress installation. So it should not be an issue.
Could you please send your test post content as a .txt file attachment to support [at-sign] role-editor.com?
VladimirKeymasterTry other user with ‘caclient’ role. Will it change something? If ‘Yes’, assign to the former user other role and then assign ‘caclient’ back.
I tested shortcode feature today (to be sure) and this is the record of my test.
VladimirKeymasterThanks you for the suggestion. I will add interface for it with high probability. At this moment use this code (it is for the ‘Editor’ role):
add_action('add_meta_boxes', 'remove_post_metaboxes', 11); function remove_post_metaboxes() { if (!current_user_can('editor')) { return; } $side_metaboxes = array('formatdiv', 'categorydiv', 'tagsdiv-post_tag', 'postimagediv'); $normal_metaboxes = array('revisionsdiv', 'postexcerpt', 'trackbacksdiv', 'postcustom', 'commentstatusdiv', 'commentsdiv', 'slugdiv', 'authordiv'); foreach($side_metaboxes as $metabox) { remove_meta_box($metabox, 'post', 'side'); } foreach($normal_metaboxes as $metabox) { remove_meta_box($metabox, 'post', 'normal'); } } add_action('add_meta_boxes', 'remove_page_metaboxes', 11); function remove_page_metaboxes() { if (!current_user_can('editor')) { return; } $side_metaboxes = array('pageparentdiv', 'postimagediv'); $normal_metaboxes = array('postcustom', 'commentstatusdiv', 'commentsdiv', 'slugdiv', 'authordiv'); foreach($side_metaboxes as $metabox) { remove_meta_box($metabox, 'page', 'side'); } foreach($normal_metaboxes as $metabox) { remove_meta_box($metabox, 'page', 'normal'); } }
You may put it into functions.php file of your active theme or as the separate php file at wp-content/mu-plugins directory. Do not forget to start php file from <?php line.
VladimirKeymasterMore information about installation package download problem:
https://www.role-editor.com/temporary-problems-plugin-download-automatic-updates/VladimirKeymasterSure, that was a temporary server or network problem. Please try again.
VladimirKeymasterIt is probably CSS conflict with some other plugin or theme. Element ID or class may be the same as some other CSS file defined. Try to check via browser console what real CSS was applied to this element and by what file. Define the source of a problem by that CSS file path: in Google Chrome use F12, Elements…
VladimirKeymasterHi,
It is one time operation. So create wp-content/mu-plugins folder, create there remove_built_in_roles.php file ant copy/paste code below to that file:
<?php add_action('admin_menu', 'remove_built_in_roles'); function remove_built_in_roles() { global $wp_roles; $roles_to_remove = array('subscriber', 'contributor', 'author', 'editor'); foreach ($roles_to_remove as $role) { if (isset($wp_roles->roles[$role])) { $wp_roles->remove_role($role); } } }
It will remove all built-in roles except ‘administrator’ from your WordPress.
After you will see that roles were removed you may delete this file from mu-plugins folder.
VladimirKeymasterHello Anthony,
Could you please show the screenshot?
VladimirKeymasterHi,
I do not publish URE at Github. It is not the official copy.
I published Pro version 4.18 today. It contains updated .pot file at the lang directory. Rename it to the ure-de_De.po and translate using poedit software.
VladimirKeymasterOr wait 1-2 days. I plan to publish Pro version 4.18. And you will get it through automatic update service.
VladimirKeymasterProbably you use Pro version 4.17, when standard version is 4.18. Try to Pro version 4.18 beta. You may take it from the same download page.
Version 4.18 adds capabilities for registered custom post types automatically.
VladimirKeymasterIt depends from what do you wish to achieve.
If you have no plugins or theme installed which added its own roles or user capabilities you may just use “Reset” button of User Role Editor. It will re-create roles from the scratch executing WordPress core code which WordPress uses itself during its installation.
Be careful with ‘Reset’ button and read this post before try this function:
https://www.role-editor.com/how-to-restore-deleted-wordpress-user-roles/
This post contains other ways you may go to restore needed state of site roles.You may to remove your changes manually. For example, if you created some role, assign to users with that role some of WordPress built-in roles, then you may delete your own role using User Role Editor. The same is correct for new capabilities you added using URE.
VladimirKeymasterThanks for suggestion. I will check “User access manager” plugin and think on extending URE Pro’s functionality in this direction.
VladimirKeymasterHi Tony,
All changes, which you made with a help of URE Pro, were made in place – at WordPress user roles and capabilities storage (database). Those changes are permanent. They not will be rollbacked with URE’s uninstall.
-
AuthorPosts