Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'wordpress'

Viewing 25 results - 301 through 325 (of 32,678 total)
  • Author
    Search Results
  • #334782

    What 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.

    #334781
    Robeen
    Participant

    Hello @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.

    #334765
    lmstearn
    Participant

    Sounds 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.

    #334760
    locker17
    Participant

    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.

    #334735

    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 );
    }
    #334732

    In reply to: disable rss

    Perhaps 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
    Comment
    
    #334731

    In reply to: disable rss

    Thanks 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' );
    ckchaudhary
    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.

    BuyddyBoss & BuddyPress Anonymous members Plugin

    It is not in the wordpress.org plugin repository yet, thanks to a huge list of plugins awaiting review.

    #334705

    In reply to: disable rss

    Venutius
    Moderator

    ok, 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.

    #334695

    I want to access the site on wordpress.com

    #334672
    jimbrown11
    Participant

    Hi,

    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.

    unbelievable
    Participant

    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;
    }
    ghinamt
    Participant

    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.

    #334617

    In reply to: BuddyPress 14.0.0

    ghinamt
    Participant

    Thank 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

    #334615

    In reply to: BuddyPress 14.0.0

    Anonymous User
    Inactive

    Hi @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 😍.

    reza
    Participant

    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…
    🙁🙁🙁

    #334606
    Venutius
    Moderator

    That’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.

    #334571
    terryfrum
    Participant

    Wordpress Version 6.5.5
    BuddyPress 12.5.1

    Testing 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

    #334567

    In reply to: Hidden Pages

    Upen Singh
    Participant
    lunarca
    Participant

    This is one of those times when you spend X hours trying to solve a problem and 5 mins after posting it you find the solution 💥

    Just for the record, undet Types of fields there are “WordPress fields” and there you can choose Biography and URL.

    lunarca
    Participant

    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);
    
    #334532
    Anonymous User
    Inactive

    I also tested with Playground and it’s behaving as expected for me: clicking on the join button from the groups directory is adding the member to the group.

    Here’s the link to test:
    https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/buddypress/buddypress/master/tests/blueprints/14-0-0-RC1.json

    #334531
    Anonymous User
    Inactive

    Hi @koka777

    Thanks for your feedback. I just tested and wasn’t able to reproduce.

    Theme: Twenty Twenty-Four
    BP Template pack: Nouveau & Legacy (tested with both template packs)
    No other plugins than BuddyPress
    No custom code into wp-content/mu-plugins or wp-content/plugins/bp-custom.php

    I created a public group being logged as an Admin.
    I created a subscriber, logged in as this subscriber, went to the Groups directory, clicked on the join button.
    Result: the join button turned into a leave button and I was successfully added as a member of the group.
    I created a group being a subscriber, logged out then logged in as an Admin. I was also able to join a group from the Groups directory.

    Can you explain just like I did above, the steps you are doing to get the “Error joining this group.” message?

    Please make sure to deactivate any plugins, custom code, and activate a WordPress default theme like Twenty Twenty-Four.

    #334502
    Anonymous User
    Inactive

    Hi @wackao

    Not yet, this is something we plan to work on: https://buddypress.trac.wordpress.org/ticket/1058

    #334459

    In reply to: Fatal error

    serranospc
    Participant

    It doesn’t seem to occur anymore, so I’ll follow up. About preventing group user from having access to the wordpress user database, can we exchange this for invitations to external emails?

Viewing 25 results - 301 through 325 (of 32,678 total)
Skip to toolbar