Forum Replies Created
-
AuthorPosts
-
09/09/2016 at 17:56 in reply to: Restrict access/view of admin notifications for custom user role #2718VladimirKeymaster
Hi,
I have a recipe how to make it as an additional option to the role. It’s possible to convert the functional part to the must-use plugin for any subsite of your network.
VladimirKeymasterHi,
Check the browser JavaScript console for the error messages.
05/09/2016 at 06:35 in reply to: How to disable the Text Editor? – just Visuell Editor should be displayed #2711VladimirKeymasterIf you wish to have more control it’s possible to integrate this code snippet with User Role Editor as the additional options for role:
add_filter('ure_role_additional_options', 'add_visual_editor_only_option', 10, 1); function add_visual_editor_only_option() { $item = URE_Role_Additional_Options::create_item('visual_editor_only', esc_html__('Visual Editor Only', 'user-role-editor'), 'admin_init', 'ure_remove_text_editor'); $items[$item->id] = $item; return $items; } function ure_remove_text_editor() { add_filter('wp_editor_settings', 'ure_editor_settings'); add_filter( 'wp_default_editor', create_function('', 'return "tinymce";') ); } function ure_editor_settings($settings) { if (!current_user_can('administrator')) { $settings['quicktags'] = false; } return $settings; }
05/09/2016 at 06:19 in reply to: How to disable the Text Editor? – just Visuell Editor should be displayed #2710VladimirKeymasterYou made all correctly except one thing: add as a 1st separate line to the file editor.php the tag
<?php
It will show to PHP interpretator where a PHP code starts.
05/09/2016 at 05:00 in reply to: How to disable the Text Editor? – just Visuell Editor should be displayed #2708VladimirKeymasterHi Karl,
Add this code to your active theme functions.php file or setup it as must use plugin:
function my_editor_settings($settings) { if (!current_user_can('administrator')) { $settings['quicktags'] = false; } return $settings; } add_filter('wp_editor_settings', 'my_editor_settings'); add_filter('wp_default_editor', create_function('', 'return "tinymce";'));
VladimirKeymasterHi Wolfgang,
Look at the “Settings->User Role Editor->Additional Modules” tab. If this option “Activate “Create” capability for posts/pages/custom post types” is turned ON, role should have ‘create_events’ capability to have permission to add new events.
03/09/2016 at 16:29 in reply to: 4.26.1 breaks "Select a category" with Download Monitor plugin #2703VladimirKeymasterGood. Thanks again.
03/09/2016 at 16:00 in reply to: 4.26.1 breaks "Select a category" with Download Monitor plugin #2701VladimirKeymasterThanks. Classic situation when fixing one bug I introduced another one :). It was fixed with the development version 4.28.2.b5
Could you try it?VladimirKeymasterHi Thorsten,
This issue was resolved with upcoming version 4.28.2.
Development version 4.28.2.b3. is available for testing from the same Download page (after login).VladimirKeymasterExcellent. I plan to publish this update next week.
01/09/2016 at 03:26 in reply to: Need both Admins and Editors to have access to "unfiltered_html" capabilities… #2695VladimirKeymasterTested: It works at my development environment.
With active ‘Enable “unfiltered_html” capability’ option in mind open “Users->User Role Editor”, select “Editor” role and select “Deprecated” group of capabilities and check if “unfiltered_html” capability is really included into the “editor” role.
VladimirKeymasterWordPress allocated additional memory for the user with ‘manage_options’ capability automatically at admin.php:
if ( current_user_can( 'manage_options' ) ) { wp_raise_memory_limit( 'admin' ); }
That’s why you don’t meet a memory problem for admin user but you do for other users. Try to deactivate unused plugins or increase memory limit for PHP.
VladimirKeymasterI found that a reason of this problem is a”Nginx Helper” plugin. Fix was included into the development version 4.28.2.b3. Please test. It’s available after login from the same download page.
VladimirKeymasterProblem is related to the plugin which created this user capability:
‘Nginx Helper | Configga.error’. Do you know to what plugin it belongs?
User Role Editor user capabilities ID as JavaScript identifires. URE replaced spaces with special place holder as you can see at ‘Nginx_URE-SR_Helper_URE-SR_|_URE-SR_Configga.error’. But I can even imagine that some_one will include into capability ‘|’ character.
I will include a fix for this symbol to the development version update ASAP.VladimirKeymasterIf such filter ends with high server load, another workaround is to use an additional role for no-community users instead of work with every user meta data. If you allow that no-community role with access to unexisted post, like ID 99999999, users with that role will see an empty posts list.
From my side I will look if I may add to URE own custom filter to change a default behaviour of edit restrictions add-on. So if you set such filter then all users without restrictions will see nothing.
-
AuthorPosts