Forum Replies Created
-
In reply to: Using XProfile fields in Notification Mail
You can filter the email message. Did not test this code. It would add text to end of default message. Change field_name to exactly match name of profile field.
function custom_activation_email_body( $message, $user_id, $key ) { $field1 = xprofile_get_field_data( 'field_name1', $user_id ); $field2 = xprofile_get_field_data( 'field_name2', $user_id ); $field3 = xprofile_get_field_data( 'field_name3', $user_id ); $message .= sprintf( __( "Username: %s Email: %s Membership Type: %s", 'lang' ), $field1, $field2, $field3 ); return $message; } add_filter('bp_core_signup_send_validation_email_message', 'custom_activation_email_body', 10, 3);In reply to: [Resolved] Add activity metaBP 2.0 adds bp_activity_add_meta()
https://buddypress.trac.wordpress.org/browser/trunk/bp-activity/bp-activity-functions.php#L658
But I’m not sure you can have same key. There is $unique which seems to imply you may have multiple values.
// cc @boonebgorges
In reply to: Disable admin barget a plugin from wordpress.org instead theme functions.php should bd code for the theme only
In reply to: [Resolved] Add activity metafunction add_meta_to_activity( $content, $user_id, $activity_id ) { $value = array( 'key1' => 'val1', 'key2 => 'val2' ); bp_activity_update_meta( $activity_id, 'key', $value ); } add_action( ‘bp_activity_posted_update’, ‘add_meta_to_activity’, 10, 3 );In reply to: How does buddypress rewrite urls?rewrite rules are coming bp just splices the url
Did you read all comments? It tells how to make group show.
look through core files each component folder has a loader file that creates tabs. There yiu can find count function
function mb_profile_menu_tabs(){ global $bp; $bp->bp_nav['friends']['name'] = sprintf( 'Lovers <span>%d</span>', friends_get_total_friend_count() ) ; } add_action('bp_setup_nav', 'mb_profile_menu_tabs', 201);In reply to: Customize Profile TabsProfile tabs are dynamicly generated and will break if you try to place them as childen of other tabs.
You can remove or move tabs but placing them as children is not recommended.
In reply to: [Resolved] Display only members with pmpro levelGlad I could help
In reply to: [Resolved] Display only members with pmpro levelhttps://gist.github.com/sbrajesh/2142009
code example, loops in BP are filterable so you don’t need to edit the template files.
someone should turn that snip into an s2member plugin 😉
In reply to: BuddyPress: Two missing featuresIn reply to: Best Guide For BuddyPress Theme Dev?There is some information in codex, if you need more post a forum topic
In reply to: Best Guide For BuddyPress Theme Dev?BuddyPress replaces the_content of page.php with BP html. You can get a lot of style customization with simply adding extra CSS.
In reply to: is Twenty Fourteen the Default Theme for BP?Yes, there may be a few display issues with 2014 because it’s got a magazine style layout.
In reply to: Best Guide For BuddyPress Theme Dev?If you know WordPress theming the book gets you up to speed with the extra functionality BuddyPress brings to templates.
In reply to: is Twenty Fourteen the Default Theme for BP?No. The default them was deprecated. BuddyPress works with any well coded WordPress theme
In reply to: Clickable links not working with tablet/mobileYour theme needs to be burned in a fire. It is using image maps for links, eww. When the page scales down for responsiveness the image map link stays at same coordinate while image moves.
In reply to: 3rd Sized AvatarHenry, he wants a third size image.
In reply to: 3rd Sized Avatarjust use thumb and scale down
In reply to: members page filter, what is it?here is doc on filtering bp template parts
https://codex.buddypress.org/developer/function-examples/bp_get_template_part
In reply to: User can't edit profile pageIt might be an issue that there is a dash in the members slug
In reply to: remove all gravatar callsadd this to your bp-custom.php file
add_filter('bp_core_fetch_avatar_no_grav', '__return_true');In reply to: Organising/filtering plugins directory on BP.orgwordpress.org/plugins/buddyplug
In reply to: Update status with multiple text fieldsand add a input field in the post form. you can then call the activity meta in your activity loop.