Replies
- Brajesh Singh on October 24, 2016 at 10:14 pm in reply to: Blog Categories for groups – feature request – more blogs displayed #6117
Hi George,
There have been many updates to BuddyPress and the code of this plugin(mostly on github) since we started the discussion.I have almost lost the track of it all. If it is not too much, Can you please start a new topic and list me the features that you wanted in BCG. If it is not there yet, I will implement this week.
Thank you
Brajesh - Brajesh Singh on October 24, 2016 at 10:12 pm in reply to: Displaying media pictures in Lightbox from all members' galleries page. #6116
Hi Owen,
Thank you for using MediaPress.I am sorry but the lightbox is not enabled for shortcodes. I will add support of lightbox and push an update in next 2 days.
Thank you
Brajesh - Brajesh Singh on October 24, 2016 at 10:09 pm in reply to: Page galleries showing up as squashed together on mobile #6115
Hi Owen,
Welcome to BuddyDev forums.
Which theme are you using? Can you please post me a screenshot?Thank you
Brajesh Hi Aaron,
Please put the following code in your bp-custom.php
/** * Add class 'no-profile-photo' to body if the user has not yet uploaded an vatar * * Works with BuddyPress Force Profile Photo Plugin * * @param $classes * * @return array */ function buddydev_custom_add_profile_photo_class_to_body( $classes ) { if ( ! is_user_logged_in() || ! class_exists( 'BD_Force_User_Avatar_Helper' ) ) { return $classes; } if ( ! is_super_admin() && ! BD_Force_User_Avatar_Helper::get_instance()->has_uploaded_avatar( bp_loggedin_user_id() ) ) { $classes[] = 'no-profile-photo';//the user has no profile photo } return $classes; } add_filter( 'bp_get_the_body_class', 'buddydev_custom_add_profile_photo_class_to_body' );It will add the appropriate class. You can use the css then.
Hope that helps.
- Brajesh Singh on October 24, 2016 at 9:13 pm in reply to: [Resolved] Auto Activate Auto Login Support Custom Redirect #6113
Hi deco,
Let us try it other way.Please open plugin/bp-auto-activate-auto-login/bp-auto-activate-auto-login.php and go to line number 69.
You will see a code like this
bp_core_redirect( apply_filters( 'bpdev_autoactivate_redirect_url', bp_core_get_user_domain( $user->ID ), $user->ID ) );This is what is used to redirect in the auto activation plugin. Please comment it and then try to register and let me know what happens.
Thank you
Brajesh - Brajesh Singh on October 24, 2016 at 12:48 am in reply to: [Resolved] Auto Activate Auto Login Support Custom Redirect #6108
Hi Deco,
I have looked at the bp-custom.php. It is perfect. If you have it in your wp-content/plugins/bp-custom.php then it should work.If it is not working , another plugin/code might be causing that. Please try by disabling suspect plugins.
Do you have any plugin active for login redirect/activation redirect?
Thank you
Brajesh Hi Leigh,
I am sorry but I am not in a position to do much. Can you please test it with a gmail or any other hosted email account?- Brajesh Singh on October 22, 2016 at 8:17 pm in reply to: [Resolved] Buddypress Ajax Registress Delete Tittle "Account Details" #6099
Please put this in your theme’s css
.bpajax-register-window h4 { display:none; }That should do it.
- Brajesh Singh on October 22, 2016 at 7:58 pm in reply to: [Resolved] Auto Activate Auto Login Support Custom Redirect #6098
Hi Deco,
Can you please your complete bp-cstom.php on pastebin? It does not seem to be loaded by buddypess on your site as the filter is not working. I tested by registering there. Hi Aaron,
Welcome to BuddyDev forums.It is a good question and I believe we may go for this kind of thing. Here is what can be done.
1. Add a class to body if the user has not uploaded a photo say we add ‘no-profile-photo’
2. Then we can use css like this to hide all profile navigation linksbody.no-profile-photo .item-list-tabs { display:none; }There is no harm in hiding as the user is redirected to the change profile photo page.
Hope that helps.
Regards
Brajesh