As soon as I activated BuddyPress in WordPress.com, my blog followers started receiving a bunch of notification emails about new posts on random topics such as [account] [members] [register] [login] etc.
I had to deactivate BuddyPress as it started spamming my blog email followers. Any idea why this happened and what caused it?
If you’re using BuddyPress Group Email Subscriptions, posting updates can take a long time because the plugin has to do a bunch of work to create the email notifications for all the group members. The devs are working to resolve the issue, but my crystal ball says that’s what you problem is, lacking more information.
Also, telling me to get a registration profile plugin won’t help because I have to have the buddypress integration with Geodirectory which doesn’t translate profile fields with third party registration plugins.
so I prematurely celebrated. So this does work however it also redirects the customer when the go to any pages like messages, buddydrive, ect;
I need to only block access to profile page but still allow them to visit the message or otheread tabs. I don’t use the standard buddypress design I just have custom links in the header alwso
members/username/messages
members/username/buddydrive
they are also redirected to homepage but I just need when they visit
members/username
Thanks again!
Occasionally, the “post update” button will hang and won’t display the post content below when it successfully posts – instead nothing happens, and users are clicking the button again, resulting in posts coming through 2 or 3 times.
Has anyone else experienced this?
Buddypress – are there hooks, or a way via JS like a callback to take some sort of action when that button is pressed(display a message, hide the button etc). Leaving the button there without any state change or indication that the button was clicked or some process has been initiated is a bit clumsy and it’s becoming frustrating for my client’s users. Any thoughts or feedback are appreciated.
“bp_loaded” will also get the job done. You just need to find a hook that’s appropriate. A function needs to be defined before you call it so it’s always worth keeping track of the load order in both WordPress and BuddyPress.
Feel free to edit the documentation if you find an error. BuddyPress welcomes contributions
Hi there,
I would like to know if there is a way to display the primary email field in the BuddyPress frontend profile, also if the user clicks on edit, they will edit the email field.
This code display the email field but it not editable.
function DisplayedUserEmail() {
global $bp;
echo "Email Address: "."". $bp->displayed_user->userdata->user_email ."";
}
add_action( 'bp_after_profile_field_content', 'DisplayedUserEmail' );
Also is there a way or plugin that allows me to add a value to the radio buttons? currently is possible to edit only one value.
I would appreciate your help.
Thanks in advance
Hello
[17-Feb-2018 11:37:41 UTC] PHP Warning: Illegal offset type in /home…./wp-content/plugins/buddypress/bp-activity/bp-activity-functions.php on line 734
I found where the error came from:
add_filter( 'bp_after_has_activities_parse_args', 'activites_affiche_infos' );
function activites_affiche_infos( $retval ) {
$retval['action'] = array(
'activity_comment',
'activity_update',
'created_group',
'friendship_created', //nouv relation entre membre
'joined_group',
'last_activity',
'new_avatar',
'new_blog_comment',
'new_blog_post',
//'new_member',
'updated_profile',
'rtmedia_update' // ajout important sinon on perd l'affichage des médiaq
);
return $retval;
}
IF you can tell me the mistake !?
For the other, it’s the mailster plugin
[24-Feb-2018 00:59:35 UTC] PHP Warning: mysqli_query(): Error reading result set's header in /home/../wp-includes/wp-db.php on line 1924
[24-Feb-2018 01:56:20 UTC] PHP Warning: mysqli_query(): MySQL server has gone away in /home/../wp-includes/wp-db.php on line 1924
I have since purchased Buddypress Member Type Pro. Now looking through it and trying to implement it, it seems that the member type drives the s2member level. Not the other way around. Did I get that right? Is there a way to use the s2member shortcodes with the Buddypress Member shortcodes?
thanks for the advice.
I am still confused why the “official” buddypress codex advises to hook plugins to bp_include if this is too early.
I changed my code to `
add_action( ‘bp_loaded’, ‘my_plugin_init’ );`
This solved the fatal error, yet I don’t see any changes in group behaviour…but I’ll look into that.
BuddyPress does not come with this as a feature, so BP would not have the code to check for required fields and enforce them in the group. How did you create the fields?
how can i insert the function search of buddypress in the sidebar?
delete the menu and insert the logo upside in the left.
Hi!
Firstly, some info:
WP: 4.9.4 Theme: Eonet (child theme)
Buddypress: 2.9.3
Domov
I have a problem when saving xprofile data on the frontend. I have created a group and in it a bunch of required fields.
When I try to save the fields on the frontend (Eonet theme) it doesn’t throw any errors. If I fill out all the required fields, the message appears saying the changes have been saved and sure enough, the database holds the correct values.
I tried switching to a default Twenty Seventeen theme and deactivated all the plugins, but the problem still persists, with one crucial difference: the fields that are required and are empty, actually get saved as empty – which is not the correct behaviour.
Can you confirm that required fields are actually required to be filled?
Thank you for your help,
Best regards,
Domen
Sounds like its located in plugins/buddypress/bp-templates/bp-legacy/buddypress/members/single/profile.
This is not a file you can edit directly as it would be over-written with any plugin updates.
Instead you will need to perform a template overload:
https://codex.buddypress.org/themes/theme-compatibility-1-7/a-quick-look-at-1-7-theme-compatibility/
Hi, I’m trying to contain make my register form a little more visually compact by grouping questions into accordion. I’ve found an article specifying the use of /profile/profile-loop.php however I don’t see this file in my buddypress path/s.
Is this now located somewhere else or is there a better means to achieve the desired result?
Try wrapping your call to bp_is_active() in a function hooked to something like wp.
For example:
add_action( 'wp', function() {
// Call bp_is_active() here
} );
You need to do this because it’s likely your plugin is loaded before BuddyPress, hence the bp_is_active() function isn’t defined at that point.
I can replicate your issue, yet I use the same line in my own plugins without error. The only difference is that I look for bp from within a function and I’m thinking this may be the issue, basically wp thinks bp is not active when you are in the plugins page.
Try wrapping your query in a function tied into your buddypress task.
Update: I split this into two files: the plugin header, the function my_plugin_init() and the add_action into an initthisplugin.php, and the rest into myPlugin.php
Now myPlugin.php gets loaded, since buddypress is active, but stills throws an Fatal error: Call to undefined function bp_is_active().
@pandraka
I can’t personally answer that as it’s obviously down to the Buddypress development team(!) but as mentioned above, the fix which can be found here – https://buddypress.trac.wordpress.org/attachment/ticket/7674/7674.01.patch works perfectly well in the meantime…
Hi there-
There’s a known issue with outlook/hotmail emails being rejected:
https://buddypress.trac.wordpress.org/ticket/7697#comment:7
A fix is forthcoming (but there’s no timetable for that update).
Ha, that’s because there was an extra semi-colon. Try this:
add_action( 'wp', function() {
if ( bp_is_profile() ) {
$user_meta = get_userdata( bp_displayed_user_id() );
if ( in_array( 'subscriber', $user_meta->roles ) ) {
wp_redirect( home_url() );
exit;
}
}
}, 1 );
What I was saying about roles is that WordPress handles roles. BuddyPress doesn’t create or really use them that much.
BuddyPress does not implement a minimum age, would this be a feature of your theme?
wordpress version 4.9.4, buddypress Version 2.1
Home
theme: sweetdate
hello how to change the age limit for a user to register
Hi,
I followed the Developer Resources → Group Extension API Example trying to create a custom group tab.
Unfortunately, I get a Fatal error: Call to undefined function bp_is_active() when trying to activate my plugin. (WordPress 4.9.4 buddypress Version 2.9.3)
What am I missing? I placed the myPlugin.php in a folder …/plugins/myPlugin
<?php
/*
Plugin Name: myPlugin
Description: lalala.
Tags: buddypress
Version: 0.1
Author: Caro Zett
License: GPL2
*/
// Exit if accessed directly.
defined( 'ABSPATH' ) || exit;
?>
<?php
/* Copyright 2018 Caro Z
This program is free software; ...
*/
?>
<?php
/* Only load code that needs BuddyPress to run once BP is loaded and initialized. */
function my_plugin_init() {
require( dirname( __FILE__ ) . '/myPlugin.php' );
}
add_action( 'bp_include', 'my_plugin_init' );
/**
* The bp_is_active( 'groups' ) check is recommended, to prevent problems
* during upgrade or when the Groups component is disabled
*/
if ( bp_is_active( 'groups' ) ) :
...
Please feel free to advise on “obvious” stuff as well, this is my first plugin 🙂
Thanks
Thank you very much for your feedback!
Based on the info you shared we definately will try out BuddyPress!