Search Results for 'buddypress'
-
Search Results
-
Hi there, i have the latest version buddypress, bbpress and learndash installed with the Elumine theme. The buddypress notification counter does not count/alert when there is a new message/post. Can someone help, where to find that setting?
after install buddypress,
when i click “Add new” button on group page (https://mysite/wp-admin/network/admin.php?page=bp-groups),
it opens a broken link(http://mysite/그룹/create/) and show an error message of internal wordpress 404.
my wp version is 5.6-korean, buddypress version is 7.0.0Topic: BuddyPress site warning:
I suppose this is a long shot, but here goes.
So I have BuddyPress and the Vantage theme installed on this random website (On a development server that’s only for internal users so no link available). On any of the BuddyPress Groups pages on this site, I get the following warning:
( ! ) Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘bp_group_new_topic_button’ not found or invalid function name in /var/www/html/INSTALLFOLDER/wp-includes/class-wp-hook.php on line 287
Googling hasn’t really provided me with any solutions, so perhaps someone here may know the answer.
-Tried testing with TwentyTwenty theme and still get the warning.
-Tried changing Template Packs from Legacy to Nouveau and vice versa.
-Tried adding some code into functions.php to no avail.
-I disabled the bp-template-pack, but while that fixes the warning, it affects the Vantage theme design.Using WordPress 5.5.3, BuddyPress 6.4.0, Vantage theme 1.15.5 as well as the bp-template-pack at version 1.2.1
Thanks!
I’m a huge fan (in general) of Stack Overflow (the web’s best developer QnA site). I am also a huge fan of BuddyPress too. This is why it is sad to me that BuddyPress is an off-topic tag in the WordPress Development SE QnA site.
I am happy to propose a dedicated BuddyPress QnA on stack exchange but only if some other people are willing to say that they would up for using it.Topic: Slow Queries
My site has a good 15,000+ users, of which about 100+ online in BP area at any given moment (so no caching etc)
Constantly tweaking things for performance. Finally checked out the MySQL slow query log and it’s a lot of stuff. But a solid 80% of it area queries like this
# Query_time: 3.036380 Lock_time: 0.000062 Rows_sent: 0 Rows_examined: 772130 SET timestamp=1607682328; SELECT DISTINCT a.id FROM wp_bp_activity a WHERE ( ( a.content LIKE '%@bobtho<%' AND a.hide_sitewide = 0 ) ) AND a.is_spam = 0 AND a.type NOT IN ('last_activity') ORDER BY a.date_recorded DESC, a.id DESC LIMIT 0, 21;Query time is 3.2 seconds, some are upwards of 5+
I think it’s coming from here https://github.com/buddypress/BuddyPress/blob/d2223de16c4b525906aaa89597a6ccc30515f58d/src/bp-activity/classes/class-bp-activity-activity.php#L380 and particularly when a user presses their “My Mentions” tab, thus its loading all of their activities that include their “@ username” text
My CPU load is *always* high, I’ve upgraded my server earlier in the year:3.4 GHz 4 vCores and 16 GB RAM so it’s not bad
Basically, I’m wondering if anything can be done about this? Since my slow-query log is filled with these types of queries (specifically it seems to be this “@ username” search) – can any optimizations be done, either in BP or something I can hack onto it?
Hi, i feel like im doing this properly but i never get the right result. i have a custom meta called “featured” in activity meta. For testing purposes the meta values are 1,2,3,4 my goal is to have an activity loop order activities by the meta value. i’ve checked the documentation and i came up with this.
<?php get_header(); ?> <?php get_template_part('page-parts/general-title-section'); ?> <?php get_template_part('page-parts/general-before-wrap'); $atts = array( 'title' => 'Latest Activity',// title of the section. 'pagination' => 1,// show or not. 'load_more' => 0, 'display_comments' => 'threaded', 'include' => false, // pass an activity_id or string of IDs comma-separated 'exclude' => false, // pass an activity_id or string of IDs comma-separated 'in' => false, // comma-separated list or array of activity IDs among which to search 'sort' => 'DESC', // sort DESC or ASC 'page' => 1, // which page to load 'per_page' => 5, // how many per page. 'max' => false, // max number to return. 'count_total' => true, // Scope - pre-built activity filters for a user (friends/groups/favorites/mentions). 'scope' => false, // Filtering 'user_id' => false, // user_id to filter on 'object' => false, // object to filter on e.g. groups, profile, status, friends 'action' => false, // action to filter on e.g. activity_update, new_forum_post, profile_updated 'primary_id' => false, // object ID to filter on e.g. a group_id or forum_id or blog_id etc. 'secondary_id' => false, // secondary object ID to filter on e.g. a post_id. // Searching 'search_terms' => false, // specify terms to search on. 'use_compat' => bp_use_theme_compat_with_current_theme(), 'allow_posting' => false, // experimental, some of the themes may not support it. 'container_class' => 'activity',// default container, 'hide_on_activity' => 1,// hide on user and group activity pages. 'for' => '', // 'logged','displayed','author'. 'role' => '', // use one or more role here(e.g administrator,editor etc). 'for_group' => '',// group slug. ); $atts['meta_query']= array( array( 'key' => 'featured', 'value' => '0', 'type' => 'numeric', 'compare' => '!=', ), 'meta_type' => 'numeric', 'orderby' => 'meta_value_num', 'meta_key' => 'featured', 'order' => 'DESC' ); ?> <div id="buddypress"> <?php do_action( 'bp_before_activity_loop' ); if ( bp_has_activities( $atts ) ) : ?> <div class="<?php echo esc_attr( $atts['container_class'] ); ?> <?php if ( ! $atts['display_comments'] ) : ?> hide-activity-comments<?php endif; ?>"> <ul id="activity-stream" class="activity-list item-list"> <?php while ( bp_activities() ) : bp_the_activity(); ?> <?php bp_get_template_part( 'buddypress/activity/entry' ); ?> <?php endwhile; ?> <?php if ( $atts['load_more'] && bp_activity_has_more_items() ) : ?> <li class="load-more"> <a href="<?php bp_activity_load_more_link() ?>"><?php _e( 'Load More', 'buddypress' ); ?></a> </li> <?php endif; ?> </ul> <?php if ( $atts['pagination'] && ! $atts['load_more'] ) : ?> <div class="pagination"> <div class="pag-count"><?php bp_activity_pagination_count(); ?></div> <div class="pagination-links"><?php bp_activity_pagination_links(); ?></div> </div> <?php endif; ?> </div> <?php else : ?> <div id="message" class="info"> <p><?php _e( 'Sorry, there was no activity found. Please try a different filter.', 'buddypress' ); ?></p> </div> <?php endif; ?> ?> </div> <?php do_action( 'bp_after_activity_loop' ); ?> <?php get_template_part('page-parts/general-after-wrap'); ?> <?php get_footer(); ?>everything here works except for the order. for some reason it always orders by activity ID. am i missing something here? Thanks in advance im going crazy with this.
Topic: BuddyPress 7.0.0 “Filippi”