Buddypress export Profile Fields [closed]

Since the asker really doesn’t want to post the answer … someone has to do it: SELECT wp_users.ID , wp_users.user_email FROM wp_users LEFT JOIN wp_bp_xprofile_data ON wp_bp_xprofile_data.user_id = wp_users.ID, WHERE wp_bp_xprofile_data.field_id = 8 AND wp_bp_xprofile_data.value=”yes” field_id = 8 being the Field you want to get (in my example, newsletter) wp_bp_xprofile_data.value=”yes”, being the value of the … Read more

How can I display the total number of favorites for any particular buddypress activity stream post? [closed]

Unfortunately, it’s not really feasible, based on the current implementation of activity favorites in BuddyPress. BP stores this data in a piece of usermeta called ‘bp_favorite_activities’, which is an array of activity ids. That makes it easy and fast to pull up a list of a given member’s favorite activity items; but it makes it … Read more

How to create a customized logout URL in BuddyPress

That’s the same as the regular WordPress logout URL. So you can use the same filter: ‘logout_url’. Sample code, not tested: add_filter( ‘logout_url’, ‘wpse_56866_logout_url’ ); function wpse_56866_logout_url() { // set your URL here return ‘http://example.com’; }

Add excerpt and post thumbnail to Buddypress blog directory page [closed]

I don’t have a complete answer for you. But I can point out that you should use the filter hook provided in the function bp_blog_latest_post() So something like: add_filter(‘bp_get_blog_latest_post’, ‘your_function’, 1); function your_function( ) { global $blogs_template; $str = // build your string to include excerpt and thumbnail return $str; } I don’t recall if … Read more

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