Replies
- Brajesh Singh on February 20, 2017 at 7:15 pm in reply to: [Resolved] Buddypress Featured Members – WPML Compatibility #7385
Hi,
My apologies for the inconvenience.Can you please post me a screenshot showing how the widget translation is happening on wpml. we have made the title translatable using the po/mo. That should have worked.
If you can provide me any help, I will be very happy to add it quickly.
Thank you
Brajesh - Brajesh Singh on February 20, 2017 at 7:12 pm in reply to: Feature: Featured members in different categories #7384
Hi,
Thank you for posting.I am sorry but if I understand correctly, It is more like you want to create user lists. Since the plugin does not save details about a list name, It won’t be feasible to create multiple lists.
However it is possible to display multiple lists based on role/member types. If that works for you, Please do let me know, I can add a role selector in the widget.
Thank you
Brajesh - Brajesh Singh on February 20, 2017 at 7:03 pm in reply to: [Resolved] Mediapress gallery upload #7383
Hi Jay,
Can you please try removing space and see if that works. Something like this
jpg,jpeg,png,gif.I am sorry, but we forgot to trim the extensions. Can you please give it a try and let me know.
Thank you
Brajesh Hi there,
Thank you for posting.before I post the code, i want to clarify one thing, except the “Network administrator(SuperAdmin)” all other roles are specific to the site. So a user who is Editor on site 1 may not have the same role on site 2.
For the code part.
/** * Redirect users to main site home page if they are logged in and don't have the required role on the sub site */ function buddydev_check_redirect_roles_on_subsite() { if ( is_main_site() || ! is_user_logged_in() ) { return ;//no need to do anything on the main site or if the user is not logged in? } //this is incorrect way to do things, instead of role, please use the $roles = wp_get_current_user()->roles; $allowed_roles = array( 'administrator', 'editor' ); $found = array_intersect( $allowed_roles, $roles ); if ( empty( $found ) ) { wp_redirect( network_home_url('/') ); exit( 0 ); } } add_action( 'template_redirect', 'buddydev_check_redirect_roles_on_subsite', 0 );You can put it in your functions.php or if using BuddyPress, you can put it in your bp-custom.php
Hope that helps.
Regards
BrajeshHi Tom,
My apologies for the inconvenience.
Please allow me half an hour to check and get back to you.Thank you
Brajesh- Brajesh Singh on February 20, 2017 at 6:46 pm in reply to: Get drop downlist of “certain” pages #7380
Hi,
you can use the following code<?php wp_dropdown_pages( array('include'=> array( 2,3,4 ) ) );?>Please make sure to pass the correct page ids in the inclide array.
Hope that helps.
regards
Brajesh Thank you Graham.
This weekend, I looked at the theme a lot and I was not able to reproduce the cover image.
I am guessing the problem is happening due to caching there(The css is not generating). Since you seem to be on Site Ground, do you have a staging server where we can disable/clear cache and check again? I did not change it on the site as it is live.
Thank you
BrajeshHi Graham,
I am unable to edit/load this this file in theme editor there.
can you please check if the file lib/buddypress/cb-bp-cover.php is present and loaded?Thank you
BrajeshHi Graham,
I am sorry for the issue. Most probably you are using an older version of BP Ajax registration. The plugin did no clear new bp hash for activation, so BuddyPress is not listing the users(BuddyPress hides them). Please upgrade and deactivate/reactivate the Ajax registration plugin. It will fix the issue.I am going to look at the site now.
Thank you
BrajeshThank you. Please do promote me temporarily.
Somehow the generator for the css is not being called and is not generating the css at all(BuddyPress calls our callback to generate the inline css for the header part, any chance of css caching there?)
I will check and update.
Thank you
Brajesh