Search Results for 'wordpress'
-
Search Results
-
i am using wordpress 4.3, the latest version of wordpress and i have a social community website wherein the users can have access to both forums and social networking , but the problem is the activity streams do not refresh automatically , i have to hit the refresh button on my browser.
can anybody suggest some plugins for the same. I am a newbie to the buddypress and wordpress communityHi all,
This may be an easy question to answer (I’m hopeful), but I’ve been unable to find a solution to my problem so far. I’m currently using WordPress 4.3 with BuddyPress 2.3.2.1 installed on my server. I have Extended Profiles enabled, and am using the plugin BuddyPress xProfiles ACL to manage custom extended profile groups assigned by user role.
I have two roles that I am working with primarily – ‘students’ and ‘institutions’. Each of these roles have their own unique group of profile fields, some of which have the same name (e.g., each role has an ‘Address’ extended profile field). Within the bp_members loop, I am usually able to obtain a given user’s extended profile data by using the following function:
$value = xprofile_get_field_data($field, $user_id);where $field is the name of the field I want to retrieve a value from in all lowercase letters (e.g., ‘Address’ would be ‘address’). I have run into an issue when trying to get field data from a profile field that has the same name for two separate user role groups. Using the same field name for both user roles will only return results for one of the roles (the role where that profile field was first created). I’m assuming the extended profile field for one of the user roles is being stored in the database with a slightly modified name, but I am unsure of how to retrieve this name.
Is there a way to request all xprofile field names for a given group of users (or even an individual user)? If I can obtain a list of the xprofile field names – or more specifically, a list of strings I could pass to the xprofile_get_field_data function – I should be able to get all the data I am looking for.
If you could please help me solve this problem, it would be greatly appreciated.
Thanks a lot,
CamHi,
I have two menu areas on my website: main and top. I would like to add user profile link to top menu only.
I found this example, which was were useful: https://codex.bbpress.org/layout-and-functionality-examples-you-can-use/#8-add-edit-profile-to-a-wordpress-menu But it adds link to both menus, top and main. I would like to add user profile link only to top menu, without adding it to main menu.
Can you help me please?
I have existing site with 500 plus users and already have WP profile fields created a while ago with simple fields like address, city, state and Zip and custom fields like year joined and speciality.
I am planning on deploying Buddypress to add functionality to the site. How can sync all these fields with XProfiles fields
I know https://wordpress.org/plugins/buddypress-xprofile-custom-fields-type/ help you create Xprofile fields and https://wordpress.org/plugins/bp-xprofile-wp-user-sync/ help you sync first and last name.
How about all other fields. I need members to be able to message each other, create events, map each other by location and events by location and finally create groups. Do I need BuddyPress or alternate that work with WP Profiles will work.Thanks/Shaunik
Hi everyone,
I’am currently try to add custom notification from a non BuddyPress component. I’m using this hooks:
bp_notifications_get_registered_components
bp_notifications_get_notifications_for_user
and this function:
bp_notifications_add_notificationEverything works well except the hook
bp_notifications_get_notifications_for_user. My problem is in my installation there is the bbPress plugin. It is also using this hooks. So this hooks is call twice, and the$actionargument is empty or contain the rendered notification content. So I’m not allowed to do the right things on the second call.I must add this to this file in bbPress plugin :
/wp-content/plugins/bbpress/includes/extend/buddypress/notifications.phpon line 78 (at the end of the functionreturn $action):/** * Format the BuddyBar/Toolbar notifications * * @since bbPress (r5155) * * @package bbPress * * @param string $action The kind of notification being rendered * @param int $item_id The primary item id * @param int $secondary_item_id The secondary item id * @param int $total_items The total number of messaging-related notifications waiting for the user * @param string $format 'string' for BuddyBar-compatible notifications; 'array' for WP Toolbar */ function bbp_format_buddypress_notifications( $action, $item_id, $secondary_item_id, $total_items, $format = 'string' ) { // New reply notifications if ( 'bbp_new_reply' === $action ) { $topic_id = bbp_get_reply_topic_id( $item_id ); $topic_title = bbp_get_topic_title( $topic_id ); $topic_link = wp_nonce_url( add_query_arg( array( 'action' => 'bbp_mark_read', 'topic_id' => $topic_id ), bbp_get_reply_url( $item_id ) ), 'bbp_mark_topic_' . $topic_id ); $title_attr = __( 'Topic Replies', 'bbpress' ); if ( (int) $total_items > 1 ) { $text = sprintf( __( 'You have %d new replies', 'bbpress' ), (int) $total_items ); $filter = 'bbp_multiple_new_subscription_notification'; } else { if ( !empty( $secondary_item_id ) ) { $text = sprintf( __( 'You have %d new reply to %2$s from %3$s', 'bbpress' ), (int) $total_items, $topic_title, bp_core_get_user_displayname( $secondary_item_id ) ); } else { $text = sprintf( __( 'You have %d new reply to %s', 'bbpress' ), (int) $total_items, $topic_title ); } $filter = 'bbp_single_new_subscription_notification'; } // WordPress Toolbar if ( 'string' === $format ) { $return = apply_filters( $filter, '<a href="' . esc_url( $topic_link ) . '" title="' . esc_attr( $title_attr ) . '">' . esc_html( $text ) . '</a>', (int) $total_items, $text, $topic_link ); // Deprecated BuddyBar } else { $return = apply_filters( $filter, array( 'text' => $text, 'link' => $topic_link ), $topic_link, (int) $total_items, $text, $topic_title ); } do_action( 'bbp_format_buddypress_notifications', $action, $item_id, $secondary_item_id, $total_items ); return $return; } return $action; } add_filter( 'bp_notifications_get_notifications_for_user', 'bbp_format_buddypress_notifications', 10, 5 );And i have to do the same thing for my custom notification rendering.
So my question is quite simple: Is this a bug? A bug from bbPress? A bug from BuddyPress? Or I am not using the hook properly?
Please advice me, and I create a ticket if it is necessary.
Thanks in advance.
Hey. Is there a way to output permanent steam links in profiles using WordPress Social Login?
It can output a permanent ID in “provider user identifier” field of WSL which can be linked to any custom buddypress field, but how do I convert it to something like this: steamcommunity.com/profiles/<provider_id> ?