social_twitter; if ( $bb_twitter ) { return $bb_twitter; } else { return ""; } } function get_flickr($user_id) { $user = bb_get_user( $user_id ); $bb_flickr = $user->social_flickr; if ( $bb_flickr ) { return $bb_flickr; } else { return ""; } } function get_digg($user_id) { $user = bb_get_user( $user_id ); $bb_digg = $user->social_digg; if ( $bb_digg ) { return $bb_digg; } else { return ""; } } function get_delicious($user_id) { $user = bb_get_user( $user_id ); $bb_delicious = $user->social_delicious; if ( $bb_delicious ) { return $bb_delicious; } else { return ""; } } function get_pownce($user_id) { $user = bb_get_user( $user_id ); $bb_pownce = $user->social_pownce; if ( $bb_pownce ) { return $bb_pownce; } else { return ""; } } function get_technorati($user_id) { $user = bb_get_user( $user_id ); $bb_technorati = $user->social_technorati; if ( $bb_technorati ) { return $bb_technorati; } else { return ""; } } /* function get_mybloglog($user_id) { $user = bb_get_user( $user_id ); $bb_mybloglog = $user->social_mybloglog; if ( $bb_mybloglog ) { return $bb_mybloglog; } else { return ""; } } */ /* function get_facebook($user_id) { $user = bb_get_user( $user_id ); $bb_facebook = $user->social_facebook; if ( $bb_facebook ) { return $bb_facebook; } else { return ""; } } */ /* function get_myspace($user_id) { $user = bb_get_user( $user_id ); $bb_myspace = $user->social_myspace; if ( $bb_myspace ) { return $bb_myspace; } else { return ""; } } */ // Now, let's add input fields to our profile-edit page function add_socialize_to_profile_edit() { global $user_id, $bb_current_user, $bb_socialize; if (bb_current_user_can($bb_socialize['minimum_user_level']) && bb_is_user_logged_in() ) : $bb_twitter = get_twitter($user_id); $bb_flickr = get_flickr($user_id); $bb_digg = get_digg($user_id); $bb_delicious = get_delicious($user_id); $bb_pownce = get_pownce($user_id); $bb_technorati = get_technorati($user_id); /* $bb_mybloglog = get_mybloglog($user_id); */ /* $bb_facebook = get_facebook($user_id); */ echo '
'. __('Social Media Profiles') .'

Set your Social Media Profiles below.

'; if ( $bb_socialize['twitter'] == true ) { echo ''; } if ( $bb_socialize['flickr'] == true ) { echo ''; } if ( $bb_socialize['digg'] == true ) { echo ''; } if ( $bb_socialize['pownce'] == true ) { echo ''; } if ( $bb_socialize['delicious'] == true ) { echo ''; } if ( $bb_socialize['technorati'] == true ) { echo ''; } /* if ( $bb_socialize['mybloglog'] == true ) { echo ''; } */ /* if ( $bb_socialize['facebook'] == true ) { echo ''; } */ /* if ( $bb_socialize['myspace'] == true ) { echo ''; } */ echo '
Twitter
Flickr
Digg
Pownce
Delicious
Technorati
MyBlogLog
Facebook
MySpace
'; endif; } add_action('extra_profile_info', 'add_socialize_to_profile_edit'); // The following function can be used to display profiles on user-profile-page function get_socialize() { global $user_id, $bb_current_user, $bb_socialize; $user_id = bb_get_user( $user_id ); $bb_twitter = $user_id->social_twitter; $bb_pownce = $user_id->social_pownce; $bb_digg = $user_id->social_digg; $bb_delicious = $user_id->social_delicious; $bb_flickr = $user_id->social_flickr; $bb_technorati = $user_id->social_technorati; /* $bb_mybloglog = $user_id->social_mybloglog; */ /* $bb_facebook = $user_id->social_facebook; */ /* $bb_myspace = $user_id->social_myspace; */ echo '
'; if ( $bb_socialize['twitter'] == true ) { if ( !empty( $bb_twitter ) ) { echo '
'.$bb_twitter.'
'; } } if ( $bb_socialize['digg'] == true ) { if ( !empty( $bb_digg ) ) { echo '
'.$bb_digg.'
'; } } if ( $bb_socialize['pownce'] == true ) { if ( !empty( $bb_pownce ) ) { echo '
'.$bb_pownce.'
'; } } if ( $bb_socialize['delicious'] == true ) { if ( !empty( $bb_delicious ) ) { echo '
'.$bb_delicious.'
'; } } if ( $bb_socialize['flickr'] == true ) { if ( !empty( $bb_flickr ) ) { echo '
'.$bb_flickr.'
'; } } if ( $bb_socialize['technorati'] == true ) { if ( !empty( $bb_technorati) ) { echo '
'.$bb_technorati.'
'; } } /* if ( $bb_socialize['mybloglog'] == true ) { if ( !empty( $bb_mybloglog ) ) { echo '
'.$bb_mybloglog.'
'; } } */ /* if ( $bb_socialize['facebook'] == true ) { if ( !empty( $bb_facebook ) ) { echo '
'.$bb_facebook.'
'; } } */ /* if ( $bb_socialize['myspace'] == true ) { if ( !empty( $bb_myspace ) ) { echo '
'.$bb_myspace.'
'; } } */ echo '
'; } // The following function can be used in posts; just put get_socialize_post(get_post_author_id()); somewhere :) function get_socialize_post( $user_id ) { global $bb, $bb_socialize; $user_id = bb_get_user( $user_id ); $bb_twitter = $user_id->social_twitter; $bb_pownce = $user_id->social_pownce; $bb_digg = $user_id->social_digg; $bb_delicious = $user_id->social_delicious; $bb_flickr = $user_id->social_flickr; $bb_technorati = $user_id->social_technorati; /* $bb_mybloglog = $user_id->social_mybloglog; */ /* $bb_facebook = $user_id->social_facebook; */ /* $bb_myspace = $user_id->social_myspace; */ echo '
'; if ( $bb_socialize['twitter'] == true ) { if ( !empty( $bb_twitter ) ) { echo ''; } } if ( $bb_socialize['digg'] == true ) { if ( !empty( $bb_digg ) ) { echo ''; } } if ( $bb_socialize['pownce'] == true ) { if ( !empty( $bb_pownce ) ) { echo ''; } } if ( $bb_socialize['delicious'] == true ) { if ( !empty( $bb_delicious ) ) { echo ''; } } if ( $bb_socialize['flickr'] == true ) { if ( !empty( $bb_flickr ) ) { echo ''; } } if ( $bb_socialize['technorati'] == true ) { if ( !empty( $bb_technorati) ) { echo ''; } } /* if ( $bb_socialize['mybloglog'] == true ) { if ( !empty( $bb_mybloglog ) ) { echo ''; } } */ /* if ( $bb_socialize['facebook'] == true ) { if ( !empty( $bb_facebook ) ) { echo ''; } } */ /* if ( $bb_socialize['myspace'] == true ) { if ( !empty( $bb_myspace ) ) { echo ''; } } */ echo '
'; } function update_user_socialize() { global $user_id, $bb_socialize; $bb_twitter = $_POST['bb_twitter']; $bb_flickr = $_POST['bb_flickr']; $bb_digg = $_POST['bb_digg']; $bb_delicious = $_POST['bb_delicious']; $bb_pownce = $_POST['bb_pownce']; $bb_technorati = $_POST['bb_technorati']; /* $bb_mybloglog = $_POST['bb_mybloglog']; */ /* $bb_facebook = $_POST['bb_facebook']; */ /* $bb_myspace = $_POST['bb_myspace']; */ if ( $bb_twitter ) { $bb_twitter = bb_filter_kses( stripslashes( balanceTags( bb_code_trick( bb_encode_bad($bb_twitter) ), true) ) ); bb_update_usermeta($user_id, "social_twitter",$bb_twitter); } else {bb_delete_usermeta($user_id, "social_twitter");} if ( $bb_flickr ) { $bb_flickr = bb_filter_kses( stripslashes( balanceTags( bb_code_trick( bb_encode_bad($bb_flickr) ), true) ) ); bb_update_usermeta($user_id, "social_flickr",$bb_flickr); } else {bb_delete_usermeta($user_id, "social_flickr");} if ( $bb_digg ) { $bb_digg = bb_filter_kses( stripslashes( balanceTags( bb_code_trick( bb_encode_bad($bb_digg) ), true) ) ); bb_update_usermeta($user_id, "social_digg",$bb_digg); } else {bb_delete_usermeta($user_id, "social_digg");} if ( $bb_delicious ) { $bb_delicious = bb_filter_kses( stripslashes( balanceTags( bb_code_trick( bb_encode_bad($bb_delicious) ), true) ) ); bb_update_usermeta($user_id, "social_delicious",$bb_delicious); } else {bb_delete_usermeta($user_id, "social_delicious");} if ( $bb_pownce ) { $bb_pownce = bb_filter_kses( stripslashes( balanceTags( bb_code_trick( bb_encode_bad($bb_pownce) ), true) ) ); bb_update_usermeta($user_id, "social_pownce",$bb_pownce); } else {bb_delete_usermeta($user_id, "social_pownce");} if ( $bb_technorati ) { $bb_technorati = bb_filter_kses( stripslashes( balanceTags( bb_code_trick( bb_encode_bad($bb_technorati) ), true) ) ); bb_update_usermeta($user_id, "social_technorati",$bb_technorati); } else {bb_delete_usermeta($user_id, "social_technorati");} /* if ( $bb_mybloglog ) { $bb_mybloglog = bb_filter_kses( stripslashes( balanceTags( bb_code_trick( bb_encode_bad($bb_mybloglog) ), true) ) ); bb_update_usermeta($user_id, "social_mybloglog",$bb_mybloglog); } else {bb_delete_usermeta($user_id, "social_mybloglog");} */ /* if ( $bb_facebook ) { $bb_facebook = bb_filter_kses( stripslashes( balanceTags( bb_code_trick( bb_encode_bad($bb_facebook) ), true) ) ); bb_update_usermeta($user_id, "social_facebook",$bb_facebook); } else {bb_delete_usermeta($user_id, "social_facebook");} */ /* if ( $bb_myspace ) { $bb_myspace = bb_filter_kses( stripslashes( balanceTags( bb_code_trick( bb_encode_bad($bb_myspace) ), true) ) ); bb_update_usermeta($user_id, "social_myspace",$bb_myspace); } else {bb_delete_usermeta($user_id, "social_myspace");} */ } add_action('profile_edited', 'update_user_socialize'); function bb_socialize_admin_page() { global $bb_socialize; ?>

bbPress Social Profiles Management

OptionSetting
Please provide full url, but without final slash.
e.g. follow

Set social sites

Use the settings below to decide, which social media websites will be used on your forum. Set "yes" if you want to allow users to set their account for this specific website, or set "no" to hide the specific website. You can change these settings anytime you want.

Social Media SiteDisplay
> Yes     >No
> Yes     >No
> Yes     >No
> Yes     >No
> Yes     >No
> Yes     >No


If you like this plugin, please donate few bucks so I could keep developing it. Or at least follow me on Twitter :).

Type donation amount: $