Search Results for 'wordpress'
-
AuthorSearch Results
-
August 13, 2024 at 9:51 pm #334904
In reply to: Buddypress’s rich text editor has security issues
locker17
ParticipantNevertheless using this old editor isn’t a good approach even they are no current security issues. Better would be, let admins easy use any other editor they want.
To make tinymce 7 work cost me days and sleepless nights. Meanwhile I also found a solution to remove the rich text option and avoid core mods. But I still had to modify kses to prevent WordPress/BP from stripping off my br and p tags afterwards on Tiny 7.
August 13, 2024 at 3:00 pm #334902In reply to: Buddypress’s rich text editor has security issues
Renato Alves
ModeratorAlso, the “security issues” as far as the ticket indicates, are not applicable to the version WordPress uses. Meaning that WordPress is updating to the versions without those issues.
August 12, 2024 at 7:20 pm #334886In reply to: Sort the members by user first_name or last_name
Renato Alves
ModeratorWe already have a ticket for this: https://buddypress.trac.wordpress.org/ticket/9044
August 12, 2024 at 5:08 pm #334880Topic: BuddyPress not sending out emails
in forum How-to & Troubleshootingjohngtur
ParticipantI’m running PHP 8.2, have deactivated all plugins other than BuddyPress, have switched to a default WordPress theme (2023), and have tried BuddyPress 12.2 and 14.0 – and BuddyPress will not send out emails to new members at all.
This includes when they self-register, when admin sends them reminder emails manually, and when registration moderation is used and admin sends them an approval email.
The BuddyPress plug-in itself says that emails are successfully sent, but they do not arrive and (when active) the WP Mail Catcher plugin does not record them as having been sent successfully or having failed: it does not acknowledge them at all.
All other emails from my site work fine when other plugins are active – including 2FA, forgotten passwords and Newsletters. Can anyone suggest what the issue might be, or what next steps I should take to troubleshoot BuddyPress? Thanks.
August 9, 2024 at 1:50 pm #334862Renato Alves
ModeratorThis was fixed and will be released as part of BuddyPress 14.1. https://buddypress.trac.wordpress.org/milestone/14.1.0
August 4, 2024 at 6:01 am #334829In reply to: Inconsistensy in error report
Venutius
ModeratorHi there, would you like to open a bug report in trac for this?
August 2, 2024 at 8:42 pm #334823In reply to: disable rss
Venutius
Moderator@mike8022 It’s certainly something something that I’ve done, because removing items from search can really hit large servers, it’s a known performance issue. So it’s better to not offer search to the bots, so that you can have a more nuanced approach to search for logged in users, and also for people visiting the site. A bot should not ne using search at all, in fact this is a primary part of a DOS attack, to het WordPress constantly searching for none existent pages. So what I’m thinking for my plugin, is to exclude bots from all searches, to give logged in users full search, and to have controls on what site visitors are able to search for. Included in this is the need to have control over the xml sitemap, and to enable hard rules for exactly what site visitors are allow to search for. Include in this a strategy of honeypots and other traps for those with prying eyes.
bbPress tags seem be a bit of a target, as a lot of the security solutions out there do not cover them. it pretty simple to turn those off for not logged in users, and also to choose to turn them off just for bots I reckon, but it shows a comprehensive approach is needed I reckon, and this DOS attack I’m looking at currently is helping my ideas gel into that comprehensive approach. As I see it, ideally, next time I get an attack, I’ll have a single page allowing me to lock down the entire site if I need to.
July 31, 2024 at 7:45 pm #334803In reply to: Blurry Avatar and Cover Images
Why Not Advertising, LLC
Participant@emaralive @vapvarun thank you for the information, I can try editing and looking into other solutions when I get a chance but this one seems like a warranted challenge for the BuddyPress Programming team.
@thinlizzie it might be a waste of time at this point until the code is revised to take into account other CONSTANTS and the issue with high resolution avatars, cover photos and group profile photos getting discarded after upload. On one hand, that is nice to save server resources, but on the other hand, it’s frustrating because the images look lousy. It cheapens the look of BuddyPress to be honest.The BuddyPress also needs more design customization options especially the social feed, it’s convenient to have it generate the “Social Feed” page automatically but that is causing me trouble. I’d love to be able to put that Social Feed as a WordPress Widget or in a shortcode to embed on any page template I want. This way, I can customize the background, add a custom title or whatever else I want. BuddyPress has a lot of Widgets available but I want the Social Feed as well with customization options.
July 31, 2024 at 4:15 pm #334801In reply to: Installation of the plug in the new site.
Robeen
ParticipantHello @patlife
To access your account and website on WordPress.com, take the following steps:
Visit the WordPress.com homepage.
Click “Log In” in the upper right corner.
In the box provided, enter your account’s email address or username. More in-depth details are here: https://wordpress.com/support/log-in-to-wordpress-com/If the above details are unable to fulfill your asking, share more details on what exactly you are looking for.
July 30, 2024 at 8:52 pm #334794In reply to: Blurry Avatar and Cover Images
Why Not Advertising, LLC
Participant@thinlizzie No, I didn’t want to include that in the scripting because you can use the regenerate thumbnails plugin for that. Here’s one: https://wordpress.org/plugins/force-regenerate-thumbnails/ You can try that plugin on a few images from the media library first and then run it for your whole site if you find it to be successful. Just use caution.
July 30, 2024 at 7:32 pm #334790Renato Alves
ModeratorWe have a fix in progress: https://buddypress.trac.wordpress.org/ticket/9221
July 30, 2024 at 6:00 pm #334788In reply to: Blurry Avatar and Cover Images
Why Not Advertising, LLC
ParticipantThis is what I came up with and I think it worked to fix the Avatar quality, however, it won’t impact the Profile images for Groups and Group cover photos. Can you point me in the correct direction for the Constants that work with those two?
Here’s my code:
// Set the BP_AVATAR_ORIGINAL_MAX_WIDTH to a higher value if ( ! defined( 'BP_AVATAR_ORIGINAL_MAX_WIDTH' ) ) { define( 'BP_AVATAR_ORIGINAL_MAX_WIDTH', 1024 ); // Set to match your largest expected upload size } // Adjust the quality of the avatar resizing process function custom_bp_avatar_quality( $args ) { $args['quality'] = 100; // Set to the highest quality return $args; } add_filter( 'bp_core_avatar_resize_args', 'custom_bp_avatar_quality' ); add_filter( 'bp_core_avatar_thumb_resize_args', 'custom_bp_avatar_quality' ); add_filter( 'bp_core_group_avatar_resize_args', 'custom_bp_avatar_quality' ); add_filter( 'bp_core_group_avatar_thumb_resize_args', 'custom_bp_avatar_quality' ); // Adjust JPEG quality for all images in WordPress add_filter( 'jpeg_quality', function() { return 100; // Set to the highest quality }); // Ensure high-resolution images are used in the HTML output function custom_bp_use_full_size_avatar( $html, $params ) { if ( isset( $params['object'] ) && in_array( $params['object'], array( 'user', 'group' ) ) ) { // Get the full-size avatar URL $full_avatar_url = bp_core_fetch_avatar( array( 'item_id' => $params['item_id'], 'object' => $params['object'], 'type' => 'full', 'html' => false, )); // Construct the new img tag with the full-size avatar URL $html = sprintf( '<img src="%s" class="%s" alt="%s" width="%d" height="%d"/>', esc_url( $full_avatar_url ), esc_attr( $params['class'] ), esc_attr( $params['alt'] ), (int) $params['width'], (int) $params['height'] ); } return $html; } add_filter( 'bp_core_fetch_avatar', 'custom_bp_use_full_size_avatar', 10, 2 ); // Add custom CSS to scale down the avatars function custom_bp_add_avatar_css() { $custom_css = " .avatar, .group-avatar img { width: 150px; height: 150px; object-fit: cover; /* Ensures the image covers the element's entire area */ } "; wp_add_inline_style( 'bp-parent-css', $custom_css ); // Adjust 'bp-parent-css' to match your theme's main stylesheet handle if necessary } add_action( 'wp_enqueue_scripts', 'custom_bp_add_avatar_css' );July 30, 2024 at 4:28 pm #334787In reply to: Blurry Avatar and Cover Images
emaralive
ModeratorCurrently, there isn’t any updated documentation regarding Avatar’s. There is some outdated info/documentation which is missing some information and is inaccurate with other information. A goal of the BuddyPress Team (BP) is to make documentation available that is current and accurate. That stated this will be on my TODO list to release documentation regarding Avatars, although what I’m covering here would be considered a “developer” handbook chapter.
In the meantime, there are a number of CONSTANTS that define the size (Width x Height) of various aspects of an Avatar, some of which you already know. There are other parameters that specify the “quality” during a resize and/or cropping process and these processes utilize WordPress to accomplish these tasks.
For example the CONSTANT – BP_AVATAR_ORIGINAL_MAX_WIDTH – default set to 450 – triggers a resize of an uploaded image that exceeds the size defined by this CONSTANT at a “quality” level of 90 (default). In your case, the 610 x 610 image is resized to 450 x 450 at a “quality” level of 90. Assuming defaults for thumb (50) and full (150) the image (450 x 450 @ 90) is cropped based on the cropping boundary box to the sizes for thumb and full at a “quality” level of 82 (default). In this example, your 610 x 610 image has undergone 2 processes that has reduced the “quality” twice.
To mitigate the degradation process, you could set BP_AVATAR_ORIGINAL_MAX_WIDTH equal to or greater than 610. The point being this would be the max width size before triggering a resize. This now leaves the cropping process at a “quality” level of 82, of which, you could mitigate by setting the JPEG “quality” level to something greater than 82 (max would be 100), assuming that you are uploading a jpg/jpeg image. This is defined at the following URL:
I’ll assume you know how to create a filter with a callback to return the desired “quality” level. Whether what I’ve outlined will satisfy your requirements for not being “horribly blurry” is yet to be determined because there may be another reason for “horribly blurry” and this just represents another “process of elimination” step/stage.
July 29, 2024 at 5:19 pm #334782In reply to: Blurry Avatar and Cover Images
Why Not Advertising, LLC
ParticipantWhat I mean is, I’m uploading a perfectly crisp image that is 610×610 pixels in size and BuddyPress optimizes it and/or scales it down to fit the predefined image size, which is fine, however, in the process makes it look bad/blurry. I want the profile images to look better. Plain and simple.
I don’t want the images to be 610×610 because they are profile images but at the same time I don’t want them looking low res. I think if BuddyPress is setting them as ‘thumbnail’ size then it’s using WordPress built-in optimized image which those are typically horribly blurry.
July 29, 2024 at 4:49 pm #334781In reply to: @mentions only work sporadically
Robeen
ParticipantHello @thesupercargo
By the nature of the scenario, there is a chance it’s an isolated scenario that is present in your environment. To get the root, if possible check by yourself by mentioning those mention who are not getting the link. As you mentioned there doesn’t seem to be a pattern, I believe you have done that already and you made sure that there aren’t any spaces, and such a scenario.
Now, you can check theme/plugin conflicts. Although there is a very low chance that there would be conflicts still. To do that, you can try this plugin: https://wordpress.org/plugins/health-check/ Also please consider checking WP-Admin->Settings-> Discussion to see where there is any moderation for those users.
If the above are all good, consider checking whether there is any location or any other restrictions from the server side. I haven’t faced such a scenario as well, that’s why, I am curious as well to know what exactly is root cause.
July 28, 2024 at 8:07 am #334765In reply to: Private Content in Search Exceprts
lmstearn
ParticipantSounds good, thanks.
Guessing it requires detection of the status of current logged in user, which requires a function like current_user_can, so a fair bit of code-foo required.July 25, 2024 at 10:29 pm #334732In reply to: disable rss
Why Not Advertising, LLC
ParticipantPerhaps I need to create a new post for this or find the relevant one, but the Avatar and Cover images are showing blurry. I tried adding this 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. How do I tell BuddyPress to use the full image 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 ); } @whynotadv CommentJuly 25, 2024 at 10:25 pm #334731In reply to: disable rss
Why Not Advertising, LLC
ParticipantThanks Venutius, I spent some time using your code along with ChatGPT and this seems to have worked for me, all the feeds are gone….maybe this will help someone else!
function disable_all_rss_feeds() { // Disable all WordPress feeds function disable_all_feeds() { wp_die(__('No feed available, please visit the <a href="'. get_bloginfo('url') .'">homepage</a>!')); } add_action('do_feed', 'disable_all_feeds', 1); add_action('do_feed_rdf', 'disable_all_feeds', 1); add_action('do_feed_rss', 'disable_all_feeds', 1); add_action('do_feed_rss2', 'disable_all_feeds', 1); add_action('do_feed_atom', 'disable_all_feeds', 1); add_action('do_feed_rss2_comments', 'disable_all_feeds', 1); add_action('do_feed_atom_comments', 'disable_all_feeds', 1); // Remove RSS feed links from the header remove_action('wp_head', 'feed_links', 2); remove_action('wp_head', 'feed_links_extra', 3); // Disable BuddyPress feeds remove_action('bp_activity_feed', 'bp_activity_action_sitewide_feed'); remove_action('bp_activity_sitewide_feed', 'bp_activity_action_sitewide_feed'); remove_action('bp_member_activity_feed', 'bp_activity_action_sitewide_feed'); remove_action('bp_group_activity_feed', 'bp_activity_action_sitewide_feed'); remove_action('bp_member_feed', 'bp_dtheme_activity_feed'); remove_action('bp_group_feed', 'bp_dtheme_group_activity_feed'); // BuddyPress Nouveau template pack feed removals remove_action('bp_nouveau_group_header_meta', 'bp_nouveau_group_meta', 50); remove_action('bp_nouveau_group_header_meta', 'bp_nouveau_group_meta', 50); remove_action('bp_nouveau_action_activity_content', 'bp_nouveau_activity_feed', 5); // Disable BuddyPress members feeds remove_action('bp_members_directory_members_feed', 'bp_members_feed'); // Disable BuddyPress groups feeds remove_action('bp_groups_directory_groups_feed', 'bp_groups_feed'); remove_action('bp_group_activity_feed', 'bp_group_activity_custom_feed'); // Disable BuddyPress blogs feeds remove_action('bp_blogs_directory_blogs_feed', 'bp_blogs_feed'); remove_action('bp_blog_comments_feed', 'bp_blog_comments_custom_feed'); // Disable BuddyPress forums feeds remove_action('bp_forums_directory_topics_feed', 'bp_forums_feed'); remove_action('bp_forums_topic_feed', 'bp_forum_topic_custom_feed'); } add_action('bp_init', 'disable_all_rss_feeds', 1); // Disable BuddyPress Nouveau feeds function disable_buddypress_nouveau_feeds() { remove_action('bp_nouveau_activity_feed', 'bp_nouveau_activity_feed'); remove_action('bp_nouveau_group_feed', 'bp_nouveau_group_feed'); } add_action('bp_init', 'disable_buddypress_nouveau_feeds', 1); // Disable pingbacks and trackbacks for privacy add_filter('xmlrpc_methods', function($methods) { unset($methods['pingback.ping']); return $methods; }); add_filter('wp_headers', function($headers) { unset($headers['X-Pingback']); return $headers; }); add_filter('pings_open', '__return_false', 10, 2); // Remove RSS feed div by ID and class using jQuery function remove_rss_feed_div() { if (is_buddypress()) { ?> <script type="text/javascript"> jQuery(document).ready(function($) { $('#activity-rss-feed.feed').remove(); }); </script> <?php } } add_action('wp_footer', 'remove_rss_feed_div'); add_filter( 'bp_rest_api_is_available', '__return_false' );July 25, 2024 at 1:49 pm #334719ckchaudhary
Participant@briebree I’ve been developing a plugin which you may want to check. It doesn’t give option to choose different avatars, but it does allow members to join groups anonymously.
It is not in the wordpress.org plugin repository yet, thanks to a huge list of plugins awaiting review.
July 25, 2024 at 5:03 am #334705In reply to: disable rss
Venutius
Moderatorok, the quick fix is to install – https://wordpress.org/plugins/disable-feeds-wp/
So long as this is set to redirect to the homepage (in settings>>Reading), then is will redirect all feed requests to the referring page.
However, those feeds are still being produced, and I have found a filter to disable them completely.
‘bp_is_action_variable’
I’ll see if I can come up with some code for this later.
July 21, 2024 at 5:45 am #334672In reply to: registration doesn’t work
jimbrown11
ParticipantHi,
For the activation email issue, check your BuddyPress and WordPress settings to ensure emails are configured correctly. Also, look for plugin conflicts that might be affecting it.
For the profile redirection problem, verify that your website URL settings in WordPress and BuddyPress are correct. Double-check the URL configurations to ensure they point to your site.
If you need more help, contacting support might be a good next step.
July 14, 2024 at 10:04 am #334617In reply to: BuddyPress 14.0.0
ghinamt
ParticipantThank you, but after updating the plugin to the lattes version, 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.)
—————————————-
even the WPML and BuddyPres are already active and working
July 14, 2024 at 1:56 am #334615In reply to: BuddyPress 14.0.0
Mathieu Viet
ModeratorHi @oumz99
Thanks for this information. There’s no competition to me. BuddyPress is free & open source. Nobody gets any money in the BP Team. We contribute to BuddyPress and are doing our best to build great quality software because we love the community and we value the global interest over personal profit.
I think users should see this declining rate the other way around. This won’t happen but imagine the freedom they would lose if this BuddyPress fork was the only way to build communities in WordPress.
We are very lucky to have a completely free way to meet online inside WordPress sites: let’s protect this freedom and care for it 😍.
July 12, 2024 at 9:32 pm #334612reza
ParticipantHello
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…
🙁🙁🙁July 12, 2024 at 11:30 am #334606In reply to: Toolbar submenu items not clickable
Venutius
ModeratorThat’s interesting, I don’t have this issue myself as far as I can see. Certainly, using the Android “app” that I use, it’s fine. My theme does not touch the WordPress top=bar menu, as far as I can see. I use Graphene.
-
AuthorSearch Results