Search Results for 'wordpress'
-
Search Results
-
Hello, Buddies.
I’ve got a weird issue here: I’m running a WP4.9.8 site running with BuddyPress 3.2.0. I’ve also setup a custom registration panel using “Membership Pro Ultimate WP”. This is correctly transferring the First and Last name from the registration screen into the WordPress default First Name and Last Name field.
As I am primarilly using custom extended profile fields, I have written this script to fill in the extended fields as well:function update_extended_fields( $user_id ) {
$user_info = get_userdata($user_id);
$first_name = $user_info->first_name;
$last_name = $user_info->last_name;
$current_first = bp_get_profile_field_data( array( ‘field’ => ‘First Name’, ‘user_id’ => $user_id ) );
$current_last = bp_get_profile_field_data( array( ‘field’ => ‘Last Name’, ‘user_id’ => $user_id ) );
if ($current_first==””) {
xprofile_set_field_data( “First Name”, $user_id, $first_name, $is_required = true );
}
if ($current_last==””) {
xprofile_set_field_data( “Last Name”, $user_id, $last_name, $is_required = true );
}
wp_update_user( array( ‘ID’ => $user_id, ‘last_name’ => $last_name ) );
//xprofile_set_field_data( “field_42”, $user_id, $company, $is_required = false );
}
add_action( ‘user_register’, ‘update_extended_fields’, 10, 1 );This is all working perfectly fine … until I edit the profile using buddypress on the frontend. After editing and saving it, the user’s WordPress Last Name gets lost. The extended field is still being displayed correctly.
Any idea why this is happening?
Thanks a lot!Hello,
We have the website in WordPress https://skirtclub.co.uk and we are using the BuddyPress plugin in that website for login, registration, and Verifications.
it’s working fine at all but sometimes login and user verification are not working in phones.
Especially, we have faced an issue in the ‘iPhone’, ‘MAC’ devices.Can you please let us know why this happening and How we can fix it.
Thanks
Topic: PHP fatal error in debug.log
Hi there
I came across a fatal PHP error in my debug.log. Hope you can fix this or help me fix it.
PHP Fatal error: Cannot redeclare bp_members_screen_display_profile() (previously declared in /.../buddypress/bp-members/screens/profile.php:22) in /.../buddypress/bp-members/screens/profile.php on line 32WordPress version: 4.9.8
BuddyPress version: 3.2.0
Site: https://vespa-ciao.nlBest regards,
AlrikBuddypress Version: 3.2.0
WordPress Version: 4.9.8
Theme: Child Theme of 2014
PHP Version: 7.2.11Error description:
User profile has no friends.. that’s not a problem.. lol..
Problem is where it shows the friends I get this error:
Warning: count(): Parameter must be an array or an object that implements Countable in /srv/disk6/2117321/www/staticcolonies.com/rural/homestead/wp-content/plugins/buddypress/bp-members/classes/class-bp-core-members-template.php on line 154
Warning: count(): Parameter must be an array or an object that implements Countable in /srv/disk6/2117321/www/staticcolonies.com/rural/homestead/wp-content/plugins/buddypress/bp-members/classes/class-bp-core-members-template.php on line 155
Sorry, no members were found.
Hello,
Is it possible to edit the permalink/url when a member visits their profile page?
It currently displays as
gnz.me/connect/membername (connect is the name of the member page)I’d like to update this to go directly to the profile page
gnz.me/membernameWordpress Version 4.9.8
BP Version 3.2.0
Website: gnz.meHi,
Would someone be kind enough to help me with changing a buddypress error message? (wordpress 4.9.8, buddypress 3.1.0)I am restricting private messaging to user’s friends/connections. Currently, the error message returned when sending a private message to someone not in your network is “Message not sent. Please try again.” which doesn’t make sense. I would like it to say something like, “Sorry, you can only send a private message to connections in your network.” How might I change this error message?
I have been using the following code in child functions to restrict private messaging:
// if not site admin, restrict PMs to friends function pp_check_message_recipients( $message_info ) { // site admins are not restricted if ( is_super_admin() ) return $message_info; $recipients = $message_info->recipients; $friend_ids = friends_get_friend_user_ids( bp_displayed_user_id() ); $nf = 0; foreach ( $recipients as $key => $recipient ) { if ( ! in_array( $recipient->user_id, $friend_ids ) ) $nf++; } // if any recipients are not friends, remove everyone from the recipient's list if ( $nf > 0 ) unset( $message_info->recipients ); return $message_info; } add_action( 'messages_message_before_save', 'pp_check_message_recipients' );Hi, Latest version of WordPress and BuddyPress, Customizr Theme. In the case of changing the BuddyPress CSS I use buddypress.css located in mychildtheme/BuddyPress/CSS and can thus still all BuddyPress items but how do I style the main wrapper CSS only when BuddyPress is active?
I have used .page.id before but I would prefer a action or …. that link it to BuddyPress and not to the page.
Many thanks
Marius
I am using the plugin Login with Ajax. I want, when the user has confirmed his/her registration, to be taken to the Ajax login screen when clicking the call-to-action button on the “you have been confirmed” page, instead of being taken to the default WordPress login.
I am using the latest version of both BuddyPress and WordPress.
I’m sure the solution is easier than I think, but I frankly do not have time to troubleshoot right now; your help is appreciated!
In advance, thank you!
Hi Team, Great plugin, and awesome goodies to add through other plugins. I am a novice and spend 4 days no reading about all the wonderful things one can do. So based on this article:
http://buddyuser.com/buddypress-customisation-tips which consolidate many peoples excellent work I started the process to make some changes to my Buddypress installation. The changes of CSS work great and I can style any item using Chrome Inspect followed by adding the changes into mychildtheme/CSS/buddypress 2.css. Great thanks to all the various articles and snippets!!!Where the problem comes in is when I want to change any of the xxx-loop.php. I know through Inspect that the files in mychildtheme/buddypress/members/members-loop.php are not used.
I am using the Legacy Templates latest versions of WordPress and BuddyPress.Please give guidance on: How to get WordPress and/or BuddyPress to use these files
Marius
Is it possible to change the ‘Edit Profile’ link that appears in the ‘Edit Member’ menu in the WordPress admin bar? screenshot
I want to change this to link to the user profile page in admin.
I would also like to remove ‘Edit Profile Photo’ and ‘User Capabilities’ menu items if that’s possible.
BP:3.2.0, WP:4.9.8
Thanks,
JohnI’m trying to find a way to have a confirmation/success message appear after a user changes their password in their settings. Right now it just refreshes the page once they click “save” and we’ve had users complain that they don’t know if their password change worked or not.
I’ve tried switching WordPress themes but none of them are making any sort of confirmation message appear, so I don’t think it’s built in. Any ideas on how to add one?