Replies
- Brajesh Singh on August 16, 2019 at 10:03 am in reply to: [Resolved] Using Member Type Generator with BP core widgets #24680This reply has been marked as private.
- Brajesh Singh on August 16, 2019 at 10:01 am in reply to: [Resolved] Features from demo not working on my site #24679
Hi Jeremy,
Thank you for giving it another try.
The youtube videos are embedded using oembed. It is same way the videos are embedded in normal posts.
Can you please check if you add the same video to your post content, does it work?
Please let me know and I will assist.
Regards
Brajesh - Brajesh Singh on August 15, 2019 at 1:11 pm in reply to: [Resolved] Using Member Type Generator with BP core widgets #24672
Hi Carsten,
Here is what you are doing. You are using 2 xprofile fields for gender. This method is inefficient for filtering the member list.
here is an example on how to do that
I suggested the member type code and route as that is more efficient way.
Now, coming back to your other question. Profile fields and member types are different things and are associated differently. you can not exchange them in fetching list. You can put conditions for individual user’s display though.
Regards
Brajesh - Brajesh Singh on August 15, 2019 at 1:07 pm in reply to: BuddyPress Custom Xprofile Fields About #24671
Thank you. Have replied.
- Brajesh Singh on August 15, 2019 at 1:04 pm in reply to: [Resolved] Home Tab to Members to Logged in User Profile #24670
Hi,
Thank you for sharing.I do agree that showing the front/home does not make sense on other user’s profile.
here is the code that you can put in your bp-custom.php to make it work as you are expecting
function buddydev_set_default_component () { if ( bp_is_my_profile() ) { define ( 'BP_DEFAULT_COMPONENT', 'front' ); } else { define ( 'BP_DEFAULT_COMPONENT', 'profile' ); } } add_action( 'bp_core_setup_globals', 'buddydev_set_default_component' );This code is based on my blog post from here
https://buddydev.com/changing-default-component-for-buddypress-user-profile-based-on-context/Hope that helps.
Regards
Brajesh - Brajesh Singh on August 14, 2019 at 10:33 pm in reply to: [Resolved] Using Member Type Generator with BP core widgets #24666
Hi Carsten,
I am sorry but the screenshots does not help.Making the profile fields and call them gender is not going to have any effect on our code.
If you want to utilize the above code you will need to create Genders as member type and then assign gender to users on registration(or in any other way). These genders must be ‘member type’.
In your case, It seems gender is normal field which has no effect on listing.
Regards
Brajesh - Brajesh Singh on August 14, 2019 at 9:16 pm in reply to: Embedding images and links in activity posts doesn't work #24664
Hi Hugo,
I had a look now.All I see is an empty response from server when I post some content.
One of your plugins is causing the issue with activity update. Try disabling some of the plugins affecting activity posting and you should find the culprit.
Regards
Brajesh - Brajesh Singh on August 14, 2019 at 9:05 pm in reply to: [Resolved] Using Member Type Generator with BP core widgets #24663
Hi Carsten,
I am not sure what are the gender option on your registration page or how you have implemented genders.The above code works by following assumption:-
1. Your site have some genders
2. A gender is defined as a member type
3. It assumes that you are able to assign user a gender member type. If no gender member type is assigned, no filtering will be done.Now, if you are somehow assigning multiple gender to a user or no gender to a user(member type), The above code may not work as expected.
PS:- The code only deals with user listing with member type and has no understanding of how you add the gender member type to user. It does not/can not affect registration process.
Regards
Brajesh - Brajesh Singh on August 14, 2019 at 2:36 pm in reply to: Embedding images and links in activity posts doesn't work #24659This reply has been marked as private.
- Brajesh Singh on August 14, 2019 at 2:22 pm in reply to: Embedding images and links in activity posts doesn't work #24657This reply has been marked as private.