Replies
- Brajesh Singh on October 25, 2016 at 7:24 pm in reply to: [Resolved] Help needed with a PHP Snippet "BuddyPress Xprofile field length control" #6132
Thank you.
That makes sense.Let me check and I will update again.Regards
Brajesh - Brajesh Singh on October 25, 2016 at 7:02 pm in reply to: [Resolved] Help needed with a PHP Snippet "BuddyPress Xprofile field length control" #6130
Hi Romanzy,
I am sorry but I do not understand. Where did you see BuddyPress limiting the field length. Is it happening for ll field types? I tried with text box and I don’t see any limit imposed by BuddyPress.If you can explain me what are you trying to accomplish in a little more detail, I will be able to help.
Thank you
Brajesh - Brajesh Singh on October 25, 2016 at 6:48 pm in reply to: [Resolved] Help needed with a PHP Snippet "BuddyPress Xprofile field length control" #6127
Hi Romanzy,
I am sorry but I could not understand much.Here is a simple solution. You can put this code in members loop and change the field parameter.
echo substr( bp_get_member_profile_data( 'field=About' ), 0 , 300 );Hope that helps.
Regards
Brajesh Hi George,
Please take a look at all the options here
https://github.com/sbrajesh/bp-activity-shortcode/blob/master/bp-activity-as-shortcode.php#L53
The action filters are variable and depends on your installation. A New type can be added by any plugin. So, There is no fixed type. If you are loooking for the builtin activity type support by BuddyPess core, Please take a look at the dropdown or you may run this query in phpmyadmin
SELECT DISTINCT type FROM <code>wp_bp_activity</code> ;That will give you all the filters used on your current site.
Hope that helps.
- Brajesh Singh on October 24, 2016 at 10:15 pm in reply to: delete "name (required)" of the profile fields and buddypress ajax registration? #6118
Hi David,
I am sorry but BuddyPess will not allow registration without the name. Can you please tell me if you are trying to use the username as name?Thank you
Brajesh - 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