Forum Replies Created
-
AuthorPosts
-
VladimirKeymaster
Thanks for the information. Good that this issue was resolved finally.
05/07/2016 at 13:34 in reply to: Private topic option in forums, on this website is not working #2502VladimirKeymasterHi,
Thanks for your help. I added a “Logout” link to the “Account” page.
Forums are managed by bbPress here. “Private” means that topic is not available for not logged-in users and, that is, for the search engines. Any logged-in user may read such topic of course.
I tested – site returns 404 error for the private topic if you did not login.
VladimirKeymasterHi,
In short, WooCommerce redirects to front-end any user without edit_posts capability.
This post will give more details on the problem and workaround for it:VladimirKeymasterHi Jawad,
It’s a bug of that plugin, which shows its empty menu to any user without ‘manage_options’ capability. Until it’s not fixed by developer you may remove this menu item for all users without ‘manage_options’ capability by adding this code into the active theme functions.php file or setup it as a must use plugin:
add_action('admin_menu', 'yit_menu_fix', 100); function yit_menu_fix() { if (!current_user_can('manage_options')) { remove_menu_page('yit_plugin_panel'); } }
VladimirKeymasterYes. I work on it.
VladimirKeymasterHi Jawad,
‘Yith Plugins’ menu is protected by ‘manage_options’ capability. This menu is not shown in ‘Admin menu’ dialog in case a role does not have ‘manage_options’ capability.
VladimirKeymasterYes, you are right. I supposed that you have active WPML plugin, when found a ‘lang’ parameter in URL.
VladimirKeymasterOK. You missed to call it. Let’s make a step forward, replace line
$this->main_blog_id = $this->blog_ids[0][0];
at the __construct() function with this one:
$this->main_blog_id = $this->get_main_site();
VladimirKeymasterProblem is that $this->main_blog_id property is empty for some reason, but it should contain 1 (main site ID) to work correctly.
Let’s return to the includes/classes/base-lib.php and check if you edited it as I asked at reply #2460
VladimirKeymasterThanks for the video. I see that a link from ‘Add New’ (page) button has additional parameter ‘lang’: post-new.php?post_type=page&lang=de
I have to block any link different from not selected at menu items list – some link to the same page just with different parameters may lead to another menu item. That’s why such problem appears from time to time.
I will add exclusion for the ‘lang’ parameter used at post_new.php page.VladimirKeymasterI got theme copy. Thanks.
I still can not repeat the 2nd issue with ‘add page’. I recorded a short video to demonstrate my experience.
Do you see any difference from your settings?VladimirKeymasterI can not repeat the 2nd issue. I deselected for editor the ‘Add Term’ menu item from ‘Encyclopedia’ plugin (post-new.php?post_type=encyclopedia’ and added new page after that successfully.
Can you send me (support [at-sign] role-editor.com) “Stockholm” theme copy for testing?
VladimirKeymasterHi,
“Admin menu” shows menu items according to the capabilities included into the role. In order to see the “Settings” menu at “Admin Menu” add ‘manage_options” to the role. Then block unneeded menu items under the ‘Settings’ menu for this role.
VladimirKeymasterThere is no way to upload a picture directly to this forum. Just insert a link to the external resource.
Thanks for the detailed description.
I repeated the admin menu add-on issue with access to the pages views, like ‘Published’, ‘Draft’, ‘Pending’, ‘Trash’. I fixed it at dev version 4.26.b5. I will make it available as I resolve the 2nd issue with ‘Add New’ page.VladimirKeymasterYou have to add a line
global $current_site;
inside init_options() functions before check property value of this object. This variable is unavailable in other case.
-
AuthorPosts