Save buddypress xprofile data to author meta

Use this action hook found in buddypress/bp-xprofile/classes/class-bp-xprofile-profiledata.php do_action_ref_array( ‘xprofile_data_after_save’, array( $this ) ); You’ll need to use the actual field_id for your xprofile description. This example assumes it is 25. You can get the field_idby going to wp-admin > Users > Profile Fields and clicking ‘Edit’ on that field. The field_id will appear in the … Read more

Fire curl command everytime new user is created

//This action hook allows you to access data for a new user immediately after they are added to the database. The user id is passed to hook as an argument. do_action( ‘user_register’, $user_id ); so you could: add_action(‘user_register’,’my_user_register_function’); function my_user_register_function($user_id) { $user = get_user_by( ‘ID’, $user_id ); //your CURL stuff }

BuddyPress: Conditionally filter directory based on Xprofile Field [closed]

Here is the solution that we discussed on http://buddypress.org/support/topic/filter-members-list-based-on-profile-field/ It is based on http://codex.buddypress.org/developer/bp_user_query/#code-examples class BP_Custom_User_Ids { private $custom_ids = array(); public function __construct() { $this->custom_ids = $this->get_custom_ids(); add_action( ‘bp_pre_user_query_construct’, array( $this, ‘custom_members_query’ ), 1, 1 ); add_filter( ‘bp_get_total_member_count’, array( $this, ‘custom_members_count’ ), 1, 1 ); } private function get_custom_ids() { global $wpdb; //figure out … Read more

New Post Notifications for Users – BUDDYPRESS

Like JItendra Rana already mentioned, you just send a notification to the author. If all users should get a notification, you must loop through all your users and add a notification to everyone. You get the users with get_users. Here is the modified code to realize it: function bp_post_published_notification( $post_id, $post ) { $author_id = … Read more

Capture Webcam Video within Buddypress (and BuddyPress Media) [closed]

I’m from the team that developes BuddyPress Media. Till now, capturing a video involved expensive (in various ways) setups. It depended on flash and silverlight which could reach the hardware (mic and webcam) . Html5 is the way to go, now. However, the support isn’t wide enough. This might help you: https://stackoverflow.com/questions/7386675/video-capture-in-html-5. If you do … Read more

Integration of Cubepoints/Achievements

I’m the author of the Achievements for BuddyPress plugin, and it’s lucky I saw your question. I don’t often read this site. I can’t talk for Cubepoints, but with Achievements, it is easy to extend support to other plugins. For developer documentation, see http://achievementsapp.com/developer/add-support-for-a-plugin-non-custom-post-type/. If either of those vote plugins are super popular and well-written, … Read more

Buddypress create custom tab on my profile and add on home page [closed]

Unless you’re willing to create new components, it’ll be easier and faster to inject content into members/single/plugins function jv_user_posts() { add_action( ‘bp_template_content’, ‘jv_user_posts_content’ ); bp_core_load_template( apply_filters( ‘bp_core_template_plugin’, ‘members/single/plugins’ ) ); } function jv_user_posts_content() { echo “put content here”; }

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)