Search Results for 'wordpress'
-
Search Results
-
I’m creating a plugin that records wordpress comments as a bp_activity post. I’ve been successful at recording the activity, but there’s just one thing that I want to add… a new possible value! Here’s the plugin in a nutshell:
function kd_record_activity($comment_id, $approval) { if($approval == 1) { $comment = get_comment($comment_id); $userlink = bp_core_get_userlink($comment->user_id); $postlink = '<a href="' . get_permalink($comment->comment_post_ID) . '">' . get_the_title($comment->comment_post_ID) . '</a>'; bp_activity_add(array( 'action' => sprintf( __( '%1$s commented on: %2$s', 'buddypress' ), $userlink, $postlink), 'content' => $comment->comment_content, 'component' => 'groups', 'user_id' => $comment->user_id, 'type' => 'new_blog_comment', 'new_row' => '123' //THIS is the new row I want to record )); } } //triggered just after a comment is saved in the database. add_action('comment_post', 'kd_record_activity', 10, 2); // We want activity entries of blog comments to be shown as mini-entries function kd_minify_activity($array) { $array[] = 'new_blog_comment'; return $array; } add_filter('bp_activity_mini_activity_types', 'kd_minify_activity');I understand that by default, the bp_activity_add hook only allows for certain variables. I expected that I could just add another variable to the array in bp-activity-functions.php and everything would work as expected, but apparently not! Please find
//MY NEW ROW!in the following code: https://pastebin.com/3nVE4fyaWhat else am I missing? P.S – the row exists in the database, it’s just that it does not record any data that I set.
Thank you!
Hello when I try to enter to profile/edit I get the error “Page Not Found 404”, I already deactivated all the plugin and installed the Twenty Twenty theme of wordpress but I still have this error.
Topic: Search Using BBPress
Our website is made with bbPress and Buddypress plugins in wordpress. This old plugin “BuddyPress Global Search” used to work well on our site. But this plugin stopped updating and working from 2019; We are looking for a search plugin that also allows sorting of search results.
I have tried plugins like Relevanssi, Ajax, and GD Power Search, but for some reason, nothing shows up on the site, once I disabled Global Search, the search only yields a Google style list with no sorting options.
Thank you for any feedback!BBPress 2.6.5
BuddyPress 6.3.0
Wordpress 5.5.1Some of my users encounter this statement “”There has been a critical error on your site.”, when they create groups. Although when they refresh it and click on their profile the group is created. This is the error found.
[11-Sep-2020 07:12:01 UTC] PHP Fatal error: Uncaught Error: Class ‘PHPMailer’ not found in /srv/htdocs/wp-content/plugins/buddypress/bp-core/classes/class-bp-phpmailer.php:91
Stack trace:
#0 /srv/htdocs/wp-content/plugins/buddypress/bp-core/bp-core-functions.php(3233): BP_PHPMailer->bp_email(Object(BP_Email))
#1 /srv/htdocs/wp-content/plugins/buddypress/bp-groups/bp-groups-notifications.php(365): bp_send_email(‘groups-invitati…’, 102044344, Array)
#2 /srv/htdocs/wp-content/plugins/buddypress/bp-groups/classes/class-bp-groups-invitation-manager.php(55): groups_notification_group_invites(Object(BP_Groups_Group), 102044344, 102044348)
#3 /srv/htdocs/wp-content/plugins/buddypress/bp-core/classes/class-bp-invitation-manager.php(197): BP_Groups_Invitation_Manager->run_send_action(Object(BP_Invitation))
#4 /srv/htdocs/wp-content/plugins/buddypress/bp-groups/bp-groups-functions.php(1718): BP_Invitation_Manager->send_invitation_by_id(1178)
#5 /srv/htdocs/wp-content/plugins/buddypress/bp-groups/actions/create.php(139): groups_send_invites(Array)
#6 /wordpress/core/5.5.1/wp-includes/class-wp-hook.php(287): groups_action_create_group(”)
#7 /wordpress/core/5.5.1/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array)
#8 /wordpress/core/5.5.1/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
#9 /srv/htdocs/wp-content/plugins/buddypress/bp-core/bp-core-dependency.php(353): do_action(‘bp_actions’)
#10 /wordpress/core/5.5.1/wp-includes/class-wp-hook.php(287): bp_actions(”)
#11 /wordpress/core/5.5.1/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array)
#12 /wordpress/core/5.5.1/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
#13 /srv/htdocs/wp-content/plugins/buddypress/bp-core/bp-core-dependency.php(430): do_action(‘bp_template_red…’)
#14 /wordpress/core/5.5.1/wp-includes/class-wp-hook.php(287): bp_template_redirect(”)
#15 /wordpress/core/5.5.1/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array)
#16 /wordpress/core/5.5.1/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
#17 /wordpress/core/5.5.1/wp-includes/template-loader.php(13): do_action(‘template_redire…’)
#18 /wordpress/core/5.5.1/wp-blog-header.php(19): require_once(‘/wordpress/core…’)
#19 /wordpress/core/5.5.1/index.php(17): require(‘/wordpress/core…’)
#20 {main}
thrown in /srv/htdocs/wp-content/plugins/buddypress/bp-core/classes/class-bp-phpmailer.php on line 91I hope someone can help me with this. This is a link to my site https://getaprofessor.com/
A new member joined in a Group. I replied to this welcoming her. She attempted to reply and received an error message.
The message appears below the Post button and simply states: There was an error posting your reply. Please try again.
She has tried multiple times and receives the same message. I have tried to recreate the error and cannot. She did send me a screenshot if it is needed.
Any ideas what is causing the problem?
BuddyPress Version 6.2.0
WordPress Version 5.5.1Hello
I’m using 2.6.0 BuddyPress and 5.5.1 WordPress
I CAN NOT upload profile photos – extended profile.
The EDIT PROFILE PHOTO link will not open.Code looks like this:
<
a href=”#TB_inline?width=800pxpx&inlineId=bp-members-avatar-editor&width=641&height=526″>Edit Profile Photo<
/a>Urgent assistance appreciated.
JudyTopic: Avatar badges/labels
Latest versions:
WordPress
BuddyPress
Twenty Seventeen themeIs there a way of adding a label or badge to users avatars according to their member types so when avatars are in a list you can see form their badge what member tyoe they are. Like the image below…

Hi there,
I have 8 private groups, each with their own private forum. Is there any way I can display forum activities like replies and created topics in the group activity stream? I would like to use ‘BuddyPress Group Email Subscription’ plugin to notify group members on forum activity relevant to their group.
WordPress version: 5.5.1
BuddyPress version: 6.2.0
bbPress version: 2.6.5Thanks!
Hello!
Could someone perhaps help me adapt this code? Currently it shows a copy of all blog comments in the activity feed. I want it to rather show copies of learndash lesson comments to their associated course group. There is a plugin that does this, but it’s glorified with many other features, and the feature that I would like for doesn’t work as it should anyways.
/* Post Comments in Buddypress Activity */ function bca_record_activity($comment_id, $approval) { if($approval == 1) { $comment = get_comment($comment_id); $userlink = bp_core_get_userlink($comment->user_id); $postlink = '<a href="' . get_permalink($comment->comment_post_ID) . '">' . get_the_title($comment->comment_post_ID) . '</a>'; bp_activity_add(array( 'action' => sprintf( __( '%1$s commented on the lesson: %2$s', 'buddypress' ), $userlink, $postlink), 'content' => $comment->comment_content, 'component' => 'bp_plugin', 'user_id' => $comment->user_id, 'type' => 'new_blog_comment', )); } } //comment_post is triggered "just after a comment is saved in the database". add_action('comment_post', 'bca_record_activity', 10, 2); // We want activity entries of blog comments to be shown as "mini"-entries function bca_minify_activity($array) { $array[] = 'new_blog_comment'; return $array; } add_filter('bp_activity_mini_activity_types', 'bca_minify_activity'); // Disables comments on this type of activity entry function bca_remove_commenting($can_comment) { if($can_comment == true) { $can_comment = ! ('new_blog_comment' == bp_get_activity_action_name()); } return $can_comment; } add_filter('bp_activity_can_comment', 'bca_remove_commenting');Plugin I reference: https://wordpress.org/plugins/buddypress-learndash/
Your time and support is greatly appreciated!