Search Results for 'wordpress'
-
Search Results
-
I ask on the troubleshooting forum for a solution to update the old tinymce version with no answers.
TinyMce 4.9 which WordPress and Buddypress implements has security issues and probably won’t be updatet anymore. See this: https://core.trac.wordpress.org/ticket/47218
Would it be possible using the current tiny version from cloud which is 7 by now? This allows admins use the editor further without the danger of beeing hacked. Question to the developers.
At the moment you can’t because of conflicts when using both versions on the same textarea field.
The Avatar and Cover images are showing up blurry. I tried adding the below code to my functions file (via snippets plugin) and it did nothing. I need to change the quality of the images to 100% not be so blurry looking, they just look terrible (I changed nothing, just using default BuddyPress). How do I tell BuddyPress to use the full image size and just scale it down to fit the image size vs. using the thumbnail size, since typically in WordPress those images are horribly blurry.
Here’s the code I added which only alters the image sizes not QUALITY.
<?php // Define Buddypress Avatars Dimensions. if ( ! defined( 'BP_AVATAR_THUMB_WIDTH' ) ) { define( 'BP_AVATAR_THUMB_WIDTH', 50 ); } if ( ! defined( 'BP_AVATAR_THUMB_HEIGHT' ) ) { define( 'BP_AVATAR_THUMB_HEIGHT', 50 ); } if ( ! defined( 'BP_AVATAR_FULL_WIDTH' ) ) { define( 'BP_AVATAR_FULL_WIDTH', 150 ); } if ( ! defined( 'BP_AVATAR_FULL_HEIGHT' ) ) { define( 'BP_AVATAR_FULL_HEIGHT', 150 ); }I want to access the site on wordpress.com
So i made this code which successfully fetches wordpress avatar to display on buddypress it does sync the profile pictures but it dooesn’t change all the profile pictures on buddypress for example the avatar where it says “Whats new” still has mystery man
What am i missing to have it successfully sync on all places in buddypress including in friends section help please because parts are synced but not everything
// Add the custom avatar to BuddyPress user profiles add_filter('bp_core_fetch_avatar', 'custom_user_avatar', 10, 2); function custom_user_avatar($avatar, $params) { // Get the user ID from the parameters $user_id = isset($params['item_id']) ? $params['item_id'] : 0; // Specify the maximum size for the avatar (adjust as needed) $max_size = 170; // Determine the context where the avatar is being fetched $context = isset($params['object']) ? $params['object'] : ''; // Adjust avatar size based on the context switch ($context) { case 'activity': // For member activity avatars $avatar_size = 50; // Set the size you want for activity avatars break; case 'group': // For group avatars (if applicable) $avatar_size = 100; // Set the size you want for group avatars break; default: $avatar_size = $max_size; // Fallback to max size for other contexts break; } // Fetch the avatar HTML for the user with the specified size $avatar_html = get_avatar($user_id, $avatar_size); // Check if the avatar HTML is not empty if (!empty($avatar_html)) { // Extract the URL from the avatar HTML preg_match('/src="(.*?)"/', $avatar_html, $matches); if (isset($matches[1])) { // Return the custom avatar URL with specified width and height return '<img src="' . esc_url($matches[1]) . '" class="avatar" style="max-width: ' . $max_size . 'px; height: auto;" />'; } } else { // If no uploaded avatar is found, fall back to the default WordPress avatar with specified size $avatar_url = get_avatar_url($user_id, ['size' => $avatar_size]); return '<img src="' . esc_url($avatar_url) . '" class="avatar" style="max-width: ' . $max_size . 'px; height: auto;" />'; } // Return the original avatar if avatar HTML could not be processed return $avatar; }After updating the plugin to the lattes version (14.0.0), a notification message is stacked at the top of my WordPress admin dashbored as follows:
(For BuddyPress Multilingual to work you must enable WPML together with BuddyPress or BuddyBoss.)
—————————————-
and there is no close icon to close this notification, noting that the WPML and BuddyPres are already active and working since long time with no issues.
please advise how to get rid of this notification as it is annoying.
Hello
WordPress version 6.5.5 buddypress v. 14.0.0
Just gorup have a problem
Google webmaster:
Page availability
Page cannot be indexed: Redirect error
URL will be indexed only if certain conditions are met
Discovery
Not checked in live tests
Crawl
Time
Jul 13, 2024, 12:58:21 AM
Crawled as
Google Inspection Tool smartphone
Crawl allowed?
Yes
Page fetch
error
Failed: Redirect error
————————
SSL ok
I can’t see any redirect code…
I changed theme and test it…
🙁🙁🙁Wordpress Version 6.5.5
BuddyPress 12.5.1Testing registration and the attached email doesn’t have a Group Name. THe Group Name doesn’t populate. Can anyone tell me where this email comes from and how I fix this or stop this one from sending? Thanks.
_______. has invited you to join the group: “{{group.name}}”.
Go here to accept your invitation or visit the group to learn more
Hey there!
I have a quite simple dilemma but can’t quite get it right. I am trying to set up the extended profile for users but I’d like for some of the basic profile fields from a standard WordPress installation to show and be edited through it.
Especifically I’d like to have the first name, last name, url and user description, that are available trough the wp-admin/profile.php dashboard page, to be editable through the <site>/members/<user nicename>/profile/edit/group/1/ page.
How can I do that? Thanks a lot!
PS. I asked ChatGPT and got this answer that throws a Fatal error:
function sync_bp_wp_profile_fields($user_id) { if (!bp_is_active('xprofile')) { return; } // Get BuddyPress profile field IDs (replace with your actual field IDs) $bp_first_name_id = 1; // Example field ID for First Name $bp_last_name_id = 2; // Example field ID for Last Name $bp_url_id = 3; // Example field ID for URL $bp_description_id = 4;// Example field ID for Description // Fetch BuddyPress profile data $first_name = xprofile_get_field_data($bp_first_name_id, $user_id); $last_name = xprofile_get_field_data($bp_last_name_id, $user_id); $url = xprofile_get_field_data($bp_url_id, $user_id); $description = xprofile_get_field_data($bp_description_id, $user_id); // Update WordPress user data wp_update_user([ 'ID' => $user_id, 'first_name' => $first_name, 'last_name' => $last_name, 'user_url' => $url, 'description' => $description, ]); } // Hook to update WordPress user data when BuddyPress profile is updated add_action('xprofile_updated_profile', 'sync_bp_wp_profile_fields', 10, 1); function sync_wp_bp_profile_fields($user_id) { if (!bp_is_active('xprofile')) { return; } // Get BuddyPress profile field IDs (replace with your actual field IDs) $bp_first_name_id = 1; // Example field ID for First Name $bp_last_name_id = 2; // Example field ID for Last Name $bp_url_id = 3; // Example field ID for URL $bp_description_id = 4;// Example field ID for Description // Fetch WordPress user data $user_info = get_userdata($user_id); $first_name = $user_info->first_name; $last_name = $user_info->last_name; $url = $user_info->user_url; $description = $user_info->description; // Update BuddyPress profile data xprofile_set_field_data($bp_first_name_id, $user_id, $first_name); xprofile_set_field_data($bp_last_name_id, $user_id, $last_name); xprofile_set_field_data($bp_url_id, $user_id, $url); xprofile_set_field_data($bp_description_id, $user_id, $description); } // Hook to update BuddyPress profile data when WordPress user data is updated add_action('profile_update', 'sync_wp_bp_profile_fields', 10, 1); add_action('user_register', 'sync_wp_bp_profile_fields', 10, 1);