Replies
- Brajesh Singh on October 24, 2017 at 10:37 pm in reply to: [Resolved] How to approve photos before be published in user's profile? #11305
Thank you Margarita. Glad we have finally resolved it 🙂
- Brajesh Singh on October 21, 2017 at 11:47 am in reply to: [Resolved] blog categories for groups | an issue of showing posts in activity stream #11279
The reason is your activity type for the generated activity is not “new_blog_post” . We filter on this type to set the groups component
Thank you for the email and I have seen that you are using a different type. I will send you some guideline tonight or tomorrow to how to get it working with your custom code.
Thank you
Brajesh - Brajesh Singh on October 20, 2017 at 5:36 pm in reply to: [Resolved] blog categories for groups | an issue of showing posts in activity stream #11276
Hi Mohamed,
I have marked your reply as private since it contained the email address. Also, have sent you the plugin.Regards
Brajesh - Brajesh Singh on October 20, 2017 at 2:51 pm in reply to: [Resolved] blog categories for groups | an issue of showing posts in activity stream #11273
There was an issue and i have managed to get it work. Before going for release, I want to cleanup a few more things.
If you need it urgently, please let me know and I will send a copy via email. Also, I haven’t tested it with the CPT but post(They should be same), so your feedback will help.
Thank you
Brajesh Thank you.
- Brajesh Singh on October 20, 2017 at 12:36 pm in reply to: is possible convert our BP Gallery content to MediaPress ? #11270
Hi,
We do have a converter for the older version of MediaPress.I will ask one of our teammate to try and check if it works. Its festive holidays here(I am working but my team is on leave), so please remind me next week and we can assist you with it.
PS:- Any idea how many media files are there?
Thank you
Brajesh Hi Thomas,
Thank you for posting.I am glad the first bug was fixed. What is the /strong function. Please help me understand and I will assist you.
Thank you
BrajeshHi Joseph,
I am sorry but I am not able to produce it. Which version of BuddyBlog are you using? It should not redirect to your own page.Please let me know your version and I may have a better idea.
- Brajesh Singh on October 20, 2017 at 12:22 pm in reply to: Display Member Type Label in Directory #11267
Hi Darrin,
Please remove the old code and use this. It shows for both the displayed user as well as the directory item./** * Get an array of member type labels based on member types. * * @param array $member_types member types. * * @return array */ function buddydev_get_member_type_labels( $member_types ) { $labels = array(); if ( ! $member_types ) { return $labels; } foreach ( $member_types as $member_type ) { $mtype_object = bp_get_member_type_object( $member_type ); if ( ! $mtype_object ) { continue; } $labels[] = $mtype_object->labels['singular_name']; } return $labels; } /** * Print the list of member types of the user in member directory. */ function buddydev_show_member_type_labels() { $user_id = bp_get_member_user_id(); if ( ! $user_id ) { return;// It should never happen but in case someone put the ac } $labels = buddydev_get_member_type_labels( bp_get_member_type( $user_id, false ) ); echo join( ', ', $labels ); } add_action( 'bp_directory_members_item', 'buddydev_show_member_type_labels' ); function buddydev_show_member_type_for_displayed_user() { if ( ! bp_is_user() ) { return; // just a safeguard, it should never happen. } $user_id = bp_displayed_user_id(); $labels = buddydev_get_member_type_labels( bp_get_member_type( $user_id, false ) ); echo join( ', ', $labels ); } add_action( 'bp_member_header_actions', 'buddydev_show_member_type_for_displayed_user' );Hope that helps.
Brajesh Hi Aldo,
I am concerned on one thing and your suggestion may help here.
Should we create a main tab for each of the post type? That seems more clean to me. What do you suggest?