Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'wordpress'

Viewing 25 results - 376 through 400 (of 22,644 total)
  • Author
    Search Results
  • #332972
    Varun Dubey
    Participant

    @eluyawi

    You can use the following code snippet to create a new tab to display at BuddyPress Profile.

    // Function to add a custom tab for Membership Details in the BuddyPress profile
    function wbcom_rcp_buddypress_add_membership_tab() {
        global $bp;
    
        // Define a new navigation item for the BuddyPress profile menu
        bp_core_new_nav_item(array(
            'name' => __('Membership', 'textdomain'), // The name of the tab
            'slug' => 'membership', // The slug for the tab, used in the URL
            'screen_function' => 'wbcom_rcp_buddypress_membership_screen', // The function that will load when the tab is clicked
            'position' => 50, // Position of the tab in the profile navigation
            'parent_url' => bp_loggedin_user_domain() . '/membership/', // The parent URL for this sub-navigation
            'parent_slug' => $bp->profile->slug, // The slug of the parent navigation item
            'default_subnav_slug' => 'membership' // Default sub-navigation slug
        ));
    }
    
    // Function to handle the display of the Membership Details tab content
    function wbcom_rcp_buddypress_membership_screen() {
        // Add the title and content to the Membership tab using actions
        add_action('bp_template_title', 'wbcom_rcp_buddypress_membership_screen_title');
        add_action('bp_template_content', 'wbcom_rcp_buddypress_membership_screen_content');
        // Load the BuddyPress plugin template for displaying the tab content
        bp_core_load_template(apply_filters('bp_core_template_plugin', 'members/single/plugins'));
    }
    
    // Function to set the title of the Membership Details tab
    function wbcom_rcp_buddypress_membership_screen_title() {
        echo 'Membership Details'; // Title displayed on the Membership tab
    }
    
    // Function to display the content of the Membership Details tab
    function wbcom_rcp_buddypress_membership_screen_content() {
        // Use the shortcode [subscription_details] to display membership information
        echo do_shortcode('[subscription_details]');
    }
    
    // Hook the function to add the Membership tab into the BuddyPress setup navigation action
    add_action('bp_setup_nav', 'wbcom_rcp_buddypress_add_membership_tab');
    

    You can use a plugin to add code snippets to your WordPress website using a plugin like “Code Snippets.” This plugin allows you to add custom PHP code snippets to your site without editing your theme’s functions.php file.

    #332971

    In reply to: Profile picture issue

    Varun Dubey
    Participant

    @fourbfb you can try to debug with the following steps.

    1- Temporarily deactivate other plugins to rule out conflicts, as another plugin might interfere with BuddyPress’s upload functionality.
    2- Switch to a default WordPress theme like Twenty Twenty to check if the issue is theme-related.
    3- Verify PHP settings such as upload_max_filesize and post_max_size are adequate in your php.ini file.
    4- Use the browser’s developer console (F12) to check for JavaScript errors that might block the upload process.
    5- Ensure that the profile photo and group icon uploads are enabled in BuddyPress settings.

    #332955
    eluyawi
    Participant

    Hi there,
    I have installed BuddyPress and have been testing it, and I have an error.

    When I edit my Name and save the changes. At the moment the changes do not appear, but I have checked in the Users section of WordPress that they have been saved.

    How can I make the changes appear once you hit the save button? can you help me?

    Thans

    #332948
    martenw
    Participant

    Warning in BP 12.2.0

    [25-Jan-2024 02:32:13 UTC] PHP Warning: Attempt to read property “activity” on null in /var/www/eufort-sokolniki/wordpress/current/wp-content/plugins/buddypress/bp-activity/bp-activity-template.php on line 643
    [25-Jan-2024 02:32:13 UTC] PHP Warning: Attempt to read property “id” on null in /var/www/eufort-sokolniki/wordpress/current/wp-content/plugins/buddypress/bp-activity/bp-activity-template.php on line 643

    #332919
    John Simpson
    Participant

    Wordpress v6.4.2
    Buddypress v12.1.1
    BP Classic v1.2.0

    Page Builder by SiteOrigin
    Theme SiteOrigin Corp

    #332917
    teslavolt
    Participant

    Hi @imath,

    I have a similar / related issue. I’m using Restrict Content Pro’s registration page with the latest Buddypress version (12.1.1) on a staging site and my registration page broke. It told me “Member registration is currently not allowed”, even if I disable the buddypress plugin.

    I tried the gist you posted https://gist.github.com/imath/c5c34feb5d3c9b3070f7a11bc339f103 in my child theme’s functions.php but the registration page still does not work. Any ideas?

    *Update* – I read through the earlier post and found the first workaround – going to Buddypress Settings -> URLs, but did not see any option to change the register slug. I had to briefly turn on wordpress general settings “Anyone can register” so that more options would appear in “URLs”. I was able to set the slug to something else like ‘sign-in’ and that seemed to allow my RCP registration to function again.

    Just to check, I disabled “Anyone can register”. Seems like the BP slug change stuck and my RCP registration is operational.

    #332904
    hossin0241
    Participant

    @imath
    Thanks for your help
    That note was very helpful.

    According to the image below, the Date Selector field is related to choosing the date of birth and…

    1

    Screenshot 2024 01 22 221904

    This is the part I was looking for, which is apparently not compatible with WordPress’ core historiography system and cannot be used with Shamsi date in Persian language (after using the Shamsi-Jalali plugin).

    #332900
    Varun Dubey
    Participant

    @puresaian To mention all group members simultaneously, you must implement a custom solution. This could be a special shortcode or command that automatically translates into individual mentions for all group members when used by the admin.

    
    /**
     * Handles the custom mention "@everyone" within BuddyPress groups.
     * When @everyone is used in a group's post or comment, it replaces it with mentions of all group members.
     */
    function wbcom_custom_everyone_mention_handler( $content ) {
        // Check if BuddyPress is loaded and @everyone is used in the content
        if ( function_exists( 'groups_get_current_group' ) && strpos( $content, '@everyone' ) !== false ) {
            // Get the current group details
            $group = groups_get_current_group();
    
            // Proceed only if we are in a group context
            if ( $group ) {
                // Fetch all members of the group
                $group_members = groups_get_group_members( array( 'group_id' => $group->id ) );
                $mentions = array();
    
                // Loop through each member to build the mentions array
                foreach ( $group_members['members'] as $member ) {
                    $mentions[] = '@' . $member->user_nicename; // Prepares the mention syntax for each member
                }
    
                // Replace @everyone in the content with the individual member mentions
                $content = str_replace('@everyone', implode(' ', $mentions), $content);
            }
        }
    
        // Return the modified (or unmodified, if no changes were made) content
        return $content;
    }
    
    // Add filters to apply the custom mention handler in different BuddyPress content types
    add_filter( 'the_content', 'wbcom_custom_everyone_mention_handler' ); // For regular WordPress content
    add_filter( 'bp_activity_new_update_content', 'wbcom_custom_everyone_mention_handler' ); // For new BuddyPress activity updates
    add_filter( 'bp_activity_comment_content', 'wbcom_custom_everyone_mention_handler' ); // For comments on BuddyPress activities
    
    

    It’s not a tested code; it’s just giving implementation directions.

    #332899
    Varun Dubey
    Participant

    @investbuddy123 Based on your description of issues with BuddyPress on your WordPress site, you’re encountering problems with group updates and public messaging functionalities.

    Here is a step-by-step guide to debug the issue:

    Check for Plugin Conflicts: Deactivate all plugins except BuddyPress and BP Classic. If the issue is resolved, reactivate each plugin individually to identify the conflicting plugin.

    Theme Compatibility: You’ve tried switching to the Twenty-Three theme with no success, which is good. It rules out theme-specific issues.

    Inspect JavaScript Errors: Use the browser’s Developer Tools (usually accessible by pressing F12) to check for JavaScript errors in the Console tab. JavaScript issues often cause features like loading updates or activating functions to fail.

    Server and PHP Error Logs: Check your server and PHP error logs for any relevant errors. Your hosting provider can assist you in accessing these if you’re unsure how.

    Test on a Staging Site: If possible, clone your site to a staging environment. This allows you to test without affecting your live site.

    Cache and Optimization Plugins: If you use caching or optimization plugins, clear the cache and temporarily disable them to see if they are causing the issue.

    Check for Custom Code: If you have any custom code (like snippets in your theme’s functions.php file or a custom plugin), comment to see if it is causing the issue.

    #332896
    Mathieu Viet
    Moderator

    Hi @hossin0241

    Thanks a lot for sharing your expectations. We actually built a bridge between our xProfile component and regular WP user fields in version 8.0. Here’s a developer note we wrote about it, I believe it can help you reach your need.

    #332884
    hossin0241
    Participant

    Thank you for creating this topic

    I think, if possible, that the system of historiography
    Change BuddyPress to the default WordPress system, it’s better
    (Things like choosing the date of birth and…)

    So that users who use other history systems can also benefit from it

    #332864
    Mathieu Viet
    Moderator

    Hi @portalciencia

    Some plugins might not be ready with BuddyPress 12.0 or up. For this case we’ve built a Backwards compatibility Add-on. You can try to download and activate it to see it it’s fixing your issue:

    BP Classic

    #332862
    Mathieu Viet
    Moderator

    Hi @priyam1234

    Thanks for your feedback 😍. My company has nothing to do with WordPress actually, I don’t make a living with code. I’m a hobbyist and contribute freely to BuddyPress, just like the other members of the team.

    For everyone reading this topic:
    Quick update about the 12.1.1 issue reported by @manni65929 when first installing BuddyPress with this version:
    We’re actively working on it, I’ve tested the fix we built with various scenarios to make sure we don’t generate side effects. The ticket we use to track this issue contains a 12.2.0-beta version with this fix, we still need to run some tests but I’m confident we’ll be able to package the next 12.2.0 minor release very soon (I believe early next week).

    #332859

    In reply to: BuddyPress 12.0.0

    Mathieu Viet
    Moderator

    Hi @priyam1234

    I’m aware of the issue, see: https://buddypress.org/support/topic/buddypress-12-1-1-maintenance-security-release/

    I’m currently working on it from https://buddypress.trac.wordpress.org/ticket/9075. I need to make sure the fix is taking care of all possible cases, which means a lot of tests.

    As soon as I have something solid I’ll package a new minor release. It will happen faster than 12.1.1 (which took a month). I hope I’ll make it happen early next week.


    @ayayron
    sorry to read about it: please do participate to our beta testing period. We extended 12.0.0 to 5 months without receiving any issues from you or other Themeforest developers. It’s better to anticipate imho.


    @roberthemsing
    I’m not sure, my guess is we’re not strict enough about the rewrite rule so I’ll need to review this asap.

    I’m going to close this topic, please carry on giving us your feedbacks and issues from this topic:

    BuddyPress 12.1.1 Maintenance & Security Release

    #332855
    Varun Dubey
    Participant

    You can add new profile fields from the backend settings for user profiles like age, location, and bio https://codex.buddypress.org/administrator-guide/extended-profiles/

    For media support, you can use https://wordpress.org/plugins/bp-attachments/ plugin.

    #332852
    Varun Dubey
    Participant

    The user Switching plugin needs an update to be compatible with the latest BP v12+. You can install the BP Classic plugin for now to add support for that plugin that is still using old codes. https://wordpress.org/plugins/bp-classic/

    #332832
    Mathieu Viet
    Moderator

    NB: if this is your first BP install, could you check what happens when youplease define the BP_LOAD_DEPRECATED constant to true to load 12.0.0 deprecated functions. We missed this case and will fix this issue asap.

    #332831
    Mathieu Viet
    Moderator

    Hi,

    1) bbPress is not ready for BuddyPress 12 or up, you need to install and activate BP Classic backwards compatibility add-on

    BP Classic

    2) it looks like you’re skipping deprecated code from being loaded, please make sure you don’t have the BP_IGNORE_DEPRECATED constant set to true.

    If 1 & 2 doesn’t change anything, please describe your configuration in details :
    Multisite ? How BP is activated (network or a specific site).

    #332826
    Raja G
    Participant

    Wordpress version : 6.4.2
    BuddyPress : 12.0.0
    Site url : https://cityscoop.us/sanleandroca/
    Buddypress page url : https://cityscoop.us/sanleandroca/members/

    #332758

    In reply to: Jalali date selector

    hossin0241
    Participant

    hello @imath
    I had a suggestion

    If possible, make the buddypress date section like the core of WordPress so that Persian speaking people can easily change the date to JAJALI with common plugins.

    Thank

    #332747
    Mathieu Viet
    Moderator

    Hi @dreamscape2

    If you recently updated BuddyPress to 12.0, as this plugin hasn’t been updated for years, I’d advise you to install and activate the BP Classic backwards compatibility Add-on we specifically built for these situations.

    BP Classic

    #332734

    In reply to: BuddyPress 12.0.0

    Mathieu Viet
    Moderator

    Hi @maciejatmyshca

    There was a ticket where I did some tests, imaged were showing when not logged in for me:
    https://buddypress.trac.wordpress.org/ticket/9066

    if it’s lazy loading I believe it’s mainly a WordPress thing as we do it in activity and for avatars only if I remember well.

    #332724
    Mathieu Viet
    Moderator

    Hello @ceraus

    BuddyPress is overriding WordPress registration URL by default so that it is displayed into your theme instead of the wp-login.php file. From previous support topics on the same subject I’ve read some users were deleting the registration page BuddyPress was created to force the use of the WordPress registration page. This was a workaround that is not doing the trick anymore in BuddyPress 12.0.0.

    Please see: https://buddypress.org/support/topic/buddypress-12-0-0/page/8/#post-332709 for a way to disable the BP Registration flow.

    #332723
    Mathieu Viet
    Moderator

    For readers information: a ticket to track the above was opened here https://buddypress.trac.wordpress.org/ticket/9066

    Using BuddyPress 12.0 on a regular config of WordPress is not blocking images, there’s probably a plugin/theme/custom code conflicting with BuddyPress on your specific config.

    Ceraus
    Participant

    Hello,

    Hmm, unsure how to diagnose this; but have an issue w/ buddypress not displaying the correct registration page. When disabled, it works (the default wordpress registration form), so it is either a plugin dependent on buddypress or buddypress itself. I tried setting the register page to none, and to the register page with a “Page to Link” plugin that sets it to the correct url ending in /wp-login.php?action=register but it still will not, any idea how I can fix this? It was fine before but not sure why it just stopped, I did migrate it from a local install and deployed it online

    Any help would be very much appreciated

Viewing 25 results - 376 through 400 (of 22,644 total)
Skip to toolbar