Forum Replies Created
-
In reply to: Adding XProfile Fields to Registration Form
any profile fields you add to the first field group get added to the registration form.
In reply to: Get the Last Active databp_get_user_last_activity( $user_id ), though its for last activity item added and not an indicator of site access.
In reply to: buddypress changing permalinks to capsCan you go to the page if you change the permalink to something else?
Try bp_init instead of loaded, but define’s usually need to be added before bp is loaded and then bp_displayed_user_id isn’t ready.
If you can’t get it to work then you might try a redirect http://hookr.io/functions/bp_core_redirect/
You can update a field with this function
xprofile_set_field_data( $field, $user_id, $value, $is_required = false ) $fields = field id $user_id = current login user id $value = inserted value $is_required = booleanHook your function to
do_action( 'bp_core_activated_user', $user_id, $key, $user )BuddyPress users are the same as WordPress so you can create a user using https://codex.wordpress.org/Function_Reference/wp_create_user
To set profile fields data:
xprofile_set_field_data( $field, $user_id, $value, $is_required = false ) $fields = field id $user_id = current login user id $value = inserted value $is_required = booleanIn reply to: Search profile by UserIdBuddyPress searches username and profile fields to find a member. You would need to develop a custom solution for this. Is this requirement for site admins? If so, you can find members by id in the admin -> Users menu item.
In reply to: Add Buddypress Profile fields to RegistrationAny profile fields you create in the admin that are in the first section are automatically added to the registration form.
In reply to: Change profile button on hoverNot too hard, add a button near avatar image and use css to place it over image. Hide the button until you hover.
Read here on how to customize bp templates https://codex.buddypress.org/themes/theme-compatibility-1-7/a-quick-look-at-1-7-theme-compatibility/
In reply to: How does the search function?BuddyPress search is not 100% accurate. Member search searches usernames and profile fields. Think of it more like a filter than search.
In reply to: Using Profile information in other areasSearch for bp_get_profile_field_data()
This is the function to get profile data
In reply to: How to set up notification counter in WordPress menuIt will require high development knowledge as you will need to filter WP menu items. I suggest you learn that first.
You use JavaScript and hook into Ajax
This is not tested but should get you on right path
$(document).ajaxComplete( function( event, xhr, settings ) { if ( settings.action === "avatar ajax action" ) { // reload page code } });In reply to: MembersUnfortunately, VC is a third party plugin and this forum is for support of BuddyPress
In reply to: TRANSLATION ISSUESunfortunately this forum is for support with BuddyPress itself, when there are added plugins it can make it impossible for someone to test.
Did you read through translation docs? https://codex.buddypress.org/getting-started/customizing/buddypress-in-your-language/
In reply to: How To Add New Tab in Group Nev-menu?Read here https://buddypress.org/support/topic/creating-a-page-with-nav-tab-subnav-for-buddypress-profiles/
Also Google and search forums it’s been asked many times
In reply to: activity stream: dynamic orderIt’s a bit outdated but might work https://wordpress.org/plugins/buddypress-activity-stream-bump-to-top/
Try this plugin https://github.com/boonebgorges/bp-tinymce
Read through this https://codex.buddypress.org/getting-started/installing-group-and-sitewide-forums/
You need to decide on a forum site or using BuddyPress and using group forums. Running both can be confusing for users
In reply to: Displaying Field-Groups In Public ProfileFields don’t show if they are empty. Click edit and see if the fields are there
In reply to: Comment and Reply on Activity PageMake sure to test plugins and themes by deactivating them and switching theme
Use login redirect https://codex.wordpress.org/Plugin_API/Filter_Reference/login_redirect
In reply to: Confirmation emailIn reply to: Add Category field to Buddypress ActivityYou only need two functions now, there was some fixes added recently to make this easier.
function my_custom_activity_meta_stuff( $content, $user_id, $activity_id ) { bp_activity_update_meta( $activity_id, 'bpcat', $_POST['bpcat'] ); } add_action( 'bp_activity_posted_update', 'my_custom_activity_meta_stuff', 10, 3 ); function add_bpcat_form_func(){ $output =' <div id="bpcat"> <select name="bpcat" id="bpcat"> <option value="" disabled selected>Choose a Category</option> <option value="update">Update</option> <option value="news">News</option> <option value="video">Video</option> <option value="image">Photo</option> <option value="advertisement">Advertisement</option> </select> </div> '; echo $output; } add_action('bp_activity_post_form_options', 'add_bpcat_form_func');In reply to: Auto Generate Username During RegistrationMake the field hidden. It won’t matter as you can intercept the $_POST and override anything they add.
This is a quick example.
function bp_auto_generate_username(){ $my_post = $_POST; $my_post['signup_username'] = 12345; } add_action( 'bp_signup_pre_validate', 'bp_auto_generate_username' );