Forum Replies Created
-
AuthorPosts
-
Vladimir
KeymasterThis is a default behavior of User Role Editor: user with editing posts/pages restrictions sees only those media library items, which he uploaded himself.
Vladimir
KeymasterThanks for the additional information. There is no such feature currently. But I’m interested to realize it: 1st, as a PHP code. Then add it to the User Role Editor Pro.
Can you send me (support [at-sign] role-editor.com the installation package of “Gravity Forms User Registration” add-on? I will use it for the investigation/testing purpose and at my localhost only.
Vladimir
KeymasterManual URE plugin update scenario without losing any data:
1) Deactivate plugin
2) Delete old files under plugin folder using FTP
3) Copy new files into plugin folder
4) Activate plugin backIn case your site missed URE license key somehow, starting from version 4.18.5 I removed the feature, when URE license key was deleted automatically in case of site domain, absolute path or database name change. Additionally you may specify URE license key at wp-config.php as the PHP constant. Look at version 4.18.5 changelog.
Vladimir
KeymasterHi,
Thanks. For the additional information and provided code.
Richard from WP Engine was almost right when wrote: “does look like a plugin conflict between it and the Divi theme made by Elegant Themes.”. It is a conflict between WordPress and the Divi theme. As if you get update error for any other plugin you will get the similar error message replacement from Divi theme.
I found a reason, why instead of the URE plugin update error we see the error message from the Divi theme in this case.
There is this function (I have an older version possibly) at the themes/Divi/epanel/custom_functions.php file:add_filter( 'gettext', 'et_admin_update_theme_message', 20, 3 ); function et_admin_update_theme_message( $default_translated_text, $original_text, $domain ) { global $themename; $theme_page_message = 'There is a new version of %1$s available. <a href="%2$s" class="thickbox" title="%1$s">View version %3$s details</a>. <em>Automatic update is unavailable for this theme.</em>'; $updates_page_message = 'Update package not available.'; if ( is_admin() && $original_text === $theme_page_message ) { return __( 'There is a new version of %1$s available. <a href="%2$s" class="thickbox" title="%1$s">View version %3$s details</a>. <em>Before you can update your Elegant Themes, you must first install the <a href="https://www.elegantthemes.com/members-area/documentation.html#updater" target="_blank">Elegant Updater Plugin</a> to authenticate your subscription.</em>', $themename ); } if ( is_admin() && $original_text === $updates_page_message ){ return __( 'Before you can update your Elegant Themes, you must first install the <a href="https://www.elegantthemes.com/members-area/documentation.html#updater" target="_blank">Elegant Updater Plugin</a> to authenticate your subscription.', $themename ); } return $default_translated_text; }
This function does not check a $domain value. I’m sure it should. If we add
if ($domain!='Divi') { return $default_translated_text; }
to the begin of the function above, we will see the correct error message:
An error occurred while updating User Role Editor Pro: Update package not available.
which in other cases is replaced by the message from the Divi theme code, as this function makes replacement not for the ‘Divi’ text domain only, but and for the default one too.
Contact Elegant Themes support to fix this issue.Vladimir
KeymasterHi,
Yes, Content View Restriction is applied to to the feeds. If a post is allowed for the role, visitor without that role will not see such post as at the ordinal posts list and at the feed.
Upcoming version of URE Pro includes ‘No role for this site’ option at the roles list for the “Content View Restriction” section. It will be useful for your purpose to show separate posts list for the not logged-in users.
Development version is available for download after login from the same
download page:
https://www.role-editor.com/download-plugin/They should see the complete RSS-feed. Even when they are not logged in…
I’m afraid that it’s difficult to differentiate who from not logged in visitors have permission to see a post, and who does not have such permission. User should login to your site to get needed content.
Vladimir
KeymasterDid you check the URE’s license key at ‘Settings->URE->General’ tab? May be URE’s update error took place but WordPress got the wrong error message…
Is it possible to get a copy of ‘Elegant themes’ plugin to try the update of URE with ET activated (even without API key)? Send installation package to the support [at-sign] role-editor.com then.
Vladimir
KeymasterTry version 4.18.5. You may add
define('URE_LICENSE_KEY', 'your-license-key-here');
with it.
Vladimir
KeymasterThank you.
I fixed the issue without version change. So you may download 4.18.5 again and replace class-ure-lib-pro.php file with the latest one.There is no syntax error apparently at the line 36. But it is raised at PHP versions 5.4 and older. My fault that I did not test the update with earlier PHP versions.
Function is_license_key_editable() is used to show URE’s Settings page.
Vladimir
KeymasterHi,
I need your help to understand, reproduce and fix the issue.
Send to support [at-sign] role-editor.com the installation package of the “Events Manager Pro”. I will use at my localhost for the investigations purpose only.
Send/show a screenshot of a page where the restricted item is available in the list.Vladimir
KeymasterThanks, Tom.
It’s quite right decision when you can not input changes into the plugin source code – plugin author does not agree to apply suggested changes, for example.
As you take decisions yourself, you may take into account another model – use your own custom user capabilities to protect ‘Job Manager’ plugin menu items. For example, some times site owner may wish to give to the user access to the “Job Manager->Settings”, but he does not wish to give him access to the full “WordPress->Settings” menu. When plugins uses “manage_options” site owner should use URE Pro “Admin menu access” add-on or an alternative decision. If you use your own user capability, e.g. ‘job_man_manage_options’ it will simplifies the things. This way site owner will may manage access to this menu item directly via add/remove capability to the role.
You need to add your own custom capabilities automatically to the “Administrator” role during plugin activation of course.
Vladimir
KeymasterThanks for the information.
Currently license key is stored with all other URE’s options together at wp_options DB table.I will add an alternative option to define license key at wp-config.php to the next update.
Vladimir
KeymasterIs it possible to look on your site admin on-line? If ‘Yes’, send login credentials to support [at-sign] role-editor.com.
Vladimir
KeymasterYes, it is safe to delete free version at ‘user-role-editor’ folder after installing and activating of Pro version at ‘user-role-edito-pro’ folder, but only directly, via FTP. If you delete free version via WordPress you will lose the settings you made for URE. Both versions use the same storage for plugin settings.
Vladimir
KeymasterHi,
Do other buttons work? Check browser JavaScript console for the error messages. Show a screenshot with them if you find any.
Vladimir
Keymaster1) There is now way to manage this by custom post type ID. You should input the ID of the posts of those types which you wish to restrict access to. You may see the post ID at the browser address line when you open that post for the editing.
To restrict access to other post types use:
a) is post type uses its own capabilities set like ‘edit_events’, exclude ‘create_events’ capability from a user role;
b) if post type uses the same ‘edit_posts’ capability use ‘admin access blocking’ add-on: https://www.role-editor.com/block-admin-menu-items2) Currently only the list of posts, pages ID is supported. I think about to add automatic support for the child pages as it is not the 1st feature request. But it is not realized yet.
-
AuthorPosts