Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 1,276 through 1,300 (of 73,985 total)
  • Author
    Search Results
  • #330648
    panda1337
    Participant
    <?php
    /**
     * Plugin Name: BuddyPress Reaction Sort 
     * Description: Sorts BuddyPress activities by reactions.
     * Version: 1.0
     * Author: Your Name
     */
    require_once( '/www/wwwroot/fsyz.club/wp-content/plugins/buddypress/bp-loader.php' );
    
    function bp_reaction_sort() {
    
      global $wpdb;
    
      $activities = bp_activity_get( array(
        'per_page' => 20    
      ) );
    
      // Debug
      echo "Query returned " . count($activities['activities']) . " activities <br>";
    
      $activity_reactions = array();
    
      foreach ( $activities['activities'] as $activity ) {
    
        $id = $activity->id;
    
        $count = $wpdb->get_var( "SELECT COUNT(*) FROM {$wpdb->prefix}iq_reaction_activity WHERE activity_id = $id" );
    
        $activity_reactions[(int)$id] = (int)$count;
    
      }
    
      arsort( $activity_reactions );
      var_dump( $activity_reactions  );
      return $activity_reactions;
    
    }
    add_filter( 'bp_has_activities', 'bp_replace_activities', 10, 2 );
    function bp_replace_activities( $has_activities, $activity_reactions ) {
    
      global $activity_reactions;
      $activity_reactions = bp_reaction_sort();
      $sorted_activities =  array_keys( $activity_reactions );
      
      $has_activities = false;
    
      buddypress()->activities->activities = $sorted_activities;
      var_dump($sorted_activities );
      $has_activities = true;
      return BP_Activity_Activity::get( array(
        'in' => $sorted_activities
      )); 
    
    }
    
    add_action( 'bp_before_directory_activity_list', 'bp_reaction_sort' );

    it output right order in $sorted_activities but the stream is in wrong order,with a warning:Creating default object from empty value anybody can help me ?

    #330638
    Mathieu Viet
    Moderator

    Hi @fawp

    This will be fixed in 12.0, here’s the ticket on our Trac environment: https://buddypress.trac.wordpress.org/ticket/8966

    #330637
    fawp
    Participant

    MY POST IN THE BP 12 THREAD SEEMS TO HAVE DISAPPEARED, REPOSTING HERE JUST IN CASE


    @imath
    Hi Mathieu, I just wanted to point out an error. I am getting it on version 9.2.0 but I see the code is the same in version 11.2.0 so I am assuming it’s still not fixed.

    Please see this thread

    Getting array offset error on value type Bool

    The error is Notice: Trying to access array offset on value of type bool in /var/www/<my website>/wp-content/plugins/buddypress/bp-core/bp-core-avatars.php on line 1625 for 9.2.0 and

    Notice: Trying to access array offset on value of type bool in /var/www/<my website>/wp-content/plugins/buddypress/bp-core/bp-core-avatars.php on line 1672 for version 11.2.0

    Line 1672 in latest version reads:
    $retval = $upload_dir[$key];

    Hope this is sufficient. Thanks!

    #330633
    fawp
    Participant

    Hi @rskangel and @webmark487

    Today I started experiencing the same error message. In my case the line number is different. My error is

    Notice: Trying to access array offset on value of type bool in /var/www/<my website>/wp-content/plugins/buddypress/bp-core/bp-core-avatars.php on line 1625

    Have you recently changed anything to do with permissions, by any chance?

    FrancescoCh
    Participant

    Hi all,
    I continue to have in error log of my site the following issue:


    WARNING: child XX said into stderr: “[01-Aug-2023 07:50:00 UTC] PHP Warning: Undefined array key “media” in /web/htdocs/<mydomain>/wp-content/plugins/buddypress/bp-core/classes/class-bp-core-bp-nav-backcompat.php on line 111″

    This log appears frequently every 5-10 minutes, always in line 111 of class-bp-core-bp-nav-backcompat.php

    How can i fix? I have 11.2.0 last release.

    #330591
    wmasat
    Participant

    I have a buddypress, I want to display activitys posts randomly on home page, I want posts to be displayed randomly, not in chronological order
    anyone knows any code or method for that

    Michael
    Participant

    Amazing that the BuddyPress developers totally messed this up, don’t you think?

    #330578
    vicctordiaaz
    Participant

    I have a problem when users register on my site when signing up for a membership. The payment is made with Stripe and when they go to finalize the purchase it gives a 404 redirection. Has it happened to anyone else?
    It is solved when I deactivate BuddyPress, but I need to have it activated.

    #330575

    In reply to: HTML SIze is too long

    VibeThemes
    Participant

    Buddypress is not installed in any of the sites. Using as back links.

    Reported.

    Michael
    Participant

    A while back, I reported a severe BuddyPress bug that left activities for blog posts without actions. The bug was fixed in a later version. However, now I just noticed that not only new activities were affected. Essentially all our old activities for blog posts are now without a link to the blog post.

    Updating the blog post creates the activity action. However, we have thousands of blog posts. So manually updating all blog posts is not an option. This is really a total mess.

    How can we fix this?

    #330570
    wmasat
    Participant

    I have a buddypress with a theme(youzify), I want to display activitys posts randomly on the wall, anyone knows any code, plugin or method for that

    #330558
    techlabpro20
    Participant

    We would like to inform you that, We are using BuddyPress and gamipress-buddypress-integration plugin, but recently the plugin author has closed the plugin for permanently – https://prnt.sc/S5RpNim2ciar

    Now, which one we can use instead of the “gamipress-buddypress-integration”? or How can we solve the problem?

    #330553
    kayart
    Participant
    #330543
    Clubcloud Tech Team
    Participant

    WordPress 6.2.2
    BuddyPress Version 11.2.0
    Theme is Ocean WP
    I have WP mail SMTP set up and working( I see test emails and get status emails from the site)
    there is an invite new users email template available but when I send invite emails via
    https://diceandmeeples.com/members/%5Busername}/invitations/ I see the invitation successful message but no Email arrives. I also have Email Log active however it does not register any emails.

    Any ideas?

    matterdesign
    Participant

    Hi there,

    We are using BuddyPress for online courses.

    In the past (pre May 23) when a user purchased a course they would only get added to the group associated to that specific course and so only see the specific course forum. E.g. Purchase Course X, get added to Group X and Forum X.

    Something happened recently whereby the function changed and now what is happening is that user purchase Course X, and gets added to Group X, Y, Z and Forum X, Y, Z

    I believe it might have something to do with this option “Auto-join Users To This Group” that doesn’t seem to be working as it should:

    https://sketchingnow.com/wp-content/uploads/2023/07/1690279927-1161-Screen-Shot-2023-07-25-at-11.10.59-am.png

    Or perhaps you can share more about this function?

    andrewjfox6
    Participant

    Hi everyone!

    I’m currently working on a website with BuddyPress and I’m facing a challenge with adding an interactive map to each user’s profile page. I’d greatly appreciate any guidance or suggestions you can offer.

    Here’s what I’ve done so far:

    Installed and activated the BuddyPress plugin for social networking features.

    Created a custom profile field called “Countries Visited,” where users can select the countries they have been to.

    Explored several map plugins, including “Interactive Geo Maps,” “Leaflet Maps Marker,” and “WP Google Maps,” but haven’t been able to successfully integrate any of them with the user profiles.

    Attempted to insert map shortcodes into various template files (e.g., member-header.php, member.php, profile.php) without success.

    Tried using the “Widget Shortcode” plugin to add the map shortcode to a widget area, but still didn’t see the desired result.

    I’m not a coder, so I’m struggling to find a straightforward solution for this issue. My goal is to have the interactive map on each user’s profile page, where it will dynamically update based on the countries they have selected in the “Countries Visited” profile field.

    If anyone has successfully implemented something similar on a BuddyPress site or has experience with any specific plugins that can achieve this functionality, I would greatly appreciate your guidance.

    Thanks in advance for your help!

    Best,
    Andrew

    danny0215
    Participant

    Hello, my question is the following: how can I add the assignment of mycred badges to the list of buddypress activities, that is, when a user earns a badge or the administrator gives it to him, it can be seen in the feed that that user obtained that badge and the other users can see it.

    #330516

    Topic: Profile page

    in group forum Installing BuddyPress
    mawie85
    Participant

    Hello,

    I’ve installed buddypress and would like to customize the profile page to my liking. The problem is that buddypress doesn’t generate this page.

    How can I create it, link it to buddypress and customize it to my liking?

    thank you

    #330515
    kaviyaayyappan
    Participant

    Hi,

    I am new to Buddypress. After installing Buddypress. In setting->Buddypress-> Component I selected User group. When I click add new group it takes me to our website membership subscription page. I don’t know how it is taken and fix this.

    Version:
    Buddypress: 11.2.0
    WordPress. 6.2.2

    usferanmir
    Participant

    Trouble connecting BuddyPress to WordPress and encountering an “Error 500” can be frustrating, but it’s a common issue with potential solutions. The “Error 500” is an Internal Server Error, indicating that something went wrong on the server-side. Here are some steps you can take to troubleshoot and resolve the problem:

    1. Check Server Logs:
    The first step is to check the server logs to identify the exact cause of the “Error 500.” You can access the error logs through your hosting control panel or by connecting to your server via FTP and looking for the error log files. The logs might provide specific error messages that can help pinpoint the issue.

    timvol
    Participant

    Running WordPress 6.2.2. I have been trying to use BuddyPress version 11.2.0.I have been attempting to use the BuddyX theme. No custom modifications

    timvol
    Participant

    Saving settings gives a “Sorry, you are not allowed to access this page” message.
    Trying to set to Nouveau won’t save. It just keeps going back to Legacy. Totally not working anymore.

    Troubleshooting attempts included shutting down other plugins, turning on registration of new users and sites, deleting table data in phpMvAdmin, etc. Tried deleting the subsite and recreating it. tried switching up themes. Tried clearing the cache. All work using Superadmin accounts.
    The rest of the multisite is working fine.

    No luck. Am I missing something that keeps it hopelessly broken, no matter how many times I try to wipe it and try again?

    Backstory: On a multisite. Past experiments with Buddypress on this multisite. Problems emerged during attempts to set up a new site in the multisite using Buddypress.

    Running WordPress 6.2.2. I have been trying to use BuddyPress version 11.2.0.I have been attempting to use the BuddyX theme. No custom modifications

    thetoilethelper
    Participant

    Hey everyone,

    I’ve been trying to set up BuddyPress on my WordPress site, but I keep encountering an Error 500 whenever I try to access the BuddyPress features. I’ve followed the installation instructions carefully and made sure all requirements are met, but the problem persists. Has anyone else experienced this issue, and if so, how did you resolve it? I’d appreciate any insights or troubleshooting tips to get BuddyPress up and running smoothly. Thanks in advance for your help!
    Regards
    The Toilet Helper

    #330484
    bachuss
    Participant

    Is it possible to remove Buddypress header on a specific page while using the BuddyX themes?

Viewing 25 results - 1,276 through 1,300 (of 73,985 total)
Skip to toolbar