Good day
Iv created an html table in my functions.php file, in the table data cell, I have a buddypress shortcode that should return results from a field with multiple checkboxs. The shortcode goes like this “bp_get_profile_field_data( ‘field=School Subjects’)”, what happens next is on display it returns string “Array” instead on the selected checkboxes. Please help on have I should allow my shortcode accept an array.
Below is my table code:
echo “<table border=’1′ align=’center’ width=’20’>”;
echo “<tr>”;
echo “<td style=’font-weight: bold;’>School Subjects</td>”;
echo “<td style=’font-weight: bold;’>Extra Curricula Activities</td>”;
echo “</tr>”;
echo “<tr>”;
echo “<td>
“.do_shortcode(bp_get_profile_field_data( ‘field=School Subjects’)).”
</td>”;
echo “<td>”.bp_get_profile_field_data( ‘field=Number of Learners’).”</td>”;
echo “</tr>”;
echo “<tr>”;
echo “<td>Teachers:</td>”;
echo “<td>”.bp_get_profile_field_data( ‘field=Number of teachers in school’).”</td>”;
echo “</tr>”;
echo “</table>”;
Tried to follow the command in this link:
https://codex.buddypress.org/developer/user-submitted-guides/how-to-add-members-to-a-group-via-wp-users-screen
While I can see the drop-down option the admin page, and it prompts for the group ID when clicking apply, the user isn’t added to the group. Basically, nothing happens.
Thanks @dcavins for your advise, but that is not a option for us a we run a new public service so it is open for anyone to join and create.
However we have found a solution which is editing the admin.php and removing the code part that displays this option in the groups settings.
I will stop probably 99% of all users and left is only very advanced users that would craft such URL I guess?
On a sidenote:
I think it would be good if you guys that are part of the BuddyPress Team would consider adding an option in BP back-end setting to be able to enable/disable groups types eg. hidden groups and maybe private to give people more control? Well at least hidden groups.
Thanks!
Kind regards
AngryWarrior.
This plugin is awfully close to what you’re trying to do. You might try modifying it to show groups in a drop down instead of the options offered:
BuddyPress Registration Groups
I doubt that any plugin is going to support group creation at registration; group creation is a multi-step process, and is too much to ask a new user to do at the same time as registration.
I’d say if you’re worried about people creating groups (which is a reasonable thing to worry about), your safest bet is to uncheck the checkbox “Enable group creation for all users” (or something like that) at wp-admin > settings > buddypress , and restrict group creation to site admins only. Then, add a group request form or similar, and you can either create the group or not.
thanks but i’m not specialist in buddypress developement , it’s complicated for me
Hi
Well as the subject says. How can you completely disable hidden groups in Buddypress?
Considering that my site is public its dangerous feature that will attract all the worst of the internet has to offer. Criminals and alike. So i need to get this done somehow.
It somewhat surprises me that this isn´t a built in setting in BuddyPress core settings so you could just click to disable it min the first place.
Anyways: i would very much appreciate help with this.
Please advise.
Kind regards
AngryWarrior.
I guess I’m doing something wrong because I copied the content of https://codex.buddypress.org/developer/group-extension-api/ directly into my custom plugin and it doesn’t seem to do anything. Other components of my plugin that interact with actions like group_join_group work perfectly, but this does not. I want to add the ability to assign a current group as a parent to another (similar to the way Groups Heriarchy plugin worked before). But it doesn’t appear on the Groups –> Edit Group option or even the Add New wizard. What am I doing wrong?
I tried copying that example into bp-custom.php but it complain about not understanding bp_is_active. Please help.
Thanks.
First of all, a big thank you to all contributors for this useful and traight out mindblowing software! And for free! Wow! :
In general I am not much of a coder, but I can understand some, and I have two questions:
QUESTION 1.
About buddypress bubble notification (not email) when there is a bbpress answer to a topic you either started or are subscribed to:
– This does not work on my new site – should it? As buddypress and bbpress are so welded together, it would surprise me if this “bubble notification on forum replies” is not thought about before, but if it isn’t – what would I want to do, to notify users via the bubble when someone replies to a topic they either started or subscribed to?
– I have enabled the notification addon in buddypress, and I reveive emails, it just doesn’t notify via the bubble.
QUESTION 2.
When a new member register, and is active – either in bbpress or in buddypress / groups or updates his profile or something else – he is still not visible under sitewide activity: New members. This does not work on a clean install of newest wordpress, newest buddypress and whatever theme. I’ve tested many.
Is this a bug, or do I have to do something to the settings to make this work?
I’m trying to remove the 1px white border around the following image: https://ibb.co/cSZq6S
The html around the image on the page is …
<div id=”item-nav” class=”intern-box”>
<div class=”item-list-tabs no-ajax” id=”object-nav” role=”navigation”>
<li id=”activity-personal-li” class=”current selected”>
I’ve tried a number of CSS combos but can’t get to it. Something like
#buddypress #object-nav .current .selected {
border-style: none !important;
border-color: #000000 !important;
border: 0px !important;
}
Any help would be appreciated?
Yes, you can do any amount of extra validation on the hook bp_signup_validate.
Something like this would probably do what you are trying to do:
add_action( 'bp_signup_validate', function(){
$allowed_users = array( 'user1@domain.com', 'user2@domain.org' );
if ( isset( $_POST[ 'signup_username' ] ) && ! in_array( $_POST[ 'signup_username' ], $allowed_users ) ) {
$bp = buddypress();
$bp->signup->errors['signup_username'] = 'Sorry, your email address is not able to register with this site.';
}
} );
There are several examples on the web for doing things on that hook. (BuddyPress Registration Options does some things, for instance.)
HI @baccoeur-
The best way to troubleshoot is to deactivate as many plugins as feasible, ideally leaving only BuddyPress active and using a common theme like Twenty Seventeen, to test the behavior. Then, check to see if the problem is resolved. Reactivate plugins and re-check to see which one is causing the conflict.
It only takes a few minutes to do this test, and will help you figure out where the problem actually is.
No pages will register, however WP says that the settings are saved.
I also have Buddypress Version 2.9.3 and WordPress Version 4.9.4
After posting this, I found CSS that works to remove the menu items, if it helps anyone else.
https://premium.wpmudev.org/forums/topic/how-to-customize-or-delete-buddypress-standard-menus
For the site CSS I set:
a#user-notifications {display : none !important}
a#user-invite-anyone {display : none !important}
a#user-settings {display : none !important}
When I try to associate the page called ‘Members’ with the members directory in the BuddyPress settings panel it refuses to save the settings. There is no error in the PHP error logs or anywhere that I can find. When I click ‘Save settings’ the page reloads with nothing selected as the members page.
There is a notice called ‘The following active BuddyPress Components do not have associated WordPress Pages: Members. Repair‘. When I click on ‘Repair‘ again nothing happens. How can I resolve this?
BP adapts to any theme you use. If you’re looking to customize specific aspects, you can take advantage of the BP template hierarchy:
Theme Compatibility & Template Files
Are you using BuddyPress member types, or something else?
Member Types
Hi, there are a lot of reasons that email fails. There’s a current issue with non-SSL domains and Outlook.com for instance: https://buddypress.org/support/topic/buddypress-emails-not-going-out/
If you’re not receiving any emails from your WordPress site, start by testing your site setup with this plugin: https://wordpress.org/plugins/check-email/
In any case, we’ll need more detail, like what the user’s email address domain is, to help you troubleshoot.
Hi @jcrr-
Please open a ticket about this issue: https://buddypress.trac.wordpress.org/
Sounds like you’ve gathered some useful/interesting/disturbing info about the underlying issue.
Thanks!
-David
Hey Kristjan,
Congrats on the success of your community!
BuddyPress is designed and architected to scale quite elegantly, so long as the underlying hardware can also support it. It’s a bit of a non-answer, but is ultimately what it boils down to.
(For example, WordPress.org has about 13 million registered user accounts, and on any given day they are active across the various connected properties, but there are a few dozen web servers handling the constant database reads & writes, API calls for software updates, caching various parts, etc…)
Group creation (and subsequent user memberships) all eventually just bubble down to a singular and easy to use function call, so depending on your parameters, and with a small custom plugin, could be automated pretty easily. Nothing exists in BuddyPress itself to facilitate the automation part, but there’s nothing preventing it either.
Perhaps to more directly answer your question, there is no technical limitation to the number of users or groups or group members your community could have, beyond the limitations of MySQL, PHP, and modern computing itself (maximum 32 bit integer value, etc…)
Hi, it looks like there is a potential issue with the unsubscribe header (at least causing unexpected behavior from Outlook.com ):
BuddyPress New User Activation Emails & Resends not working
Sounds like your address should be https, and there are ways to improve your server’s setup to handle mail:
8 Best Practices To Improve Your Email Deliverability
Hi, it looks like the issue is unexpected behavior from Outlook.com:
BuddyPress New User Activation Emails & Resends not working
Ending up in spam is not surprising. Email is complicated, and you can check the web for guides about improving email deliverability from your server. Here’s one:
8 Best Practices To Improve Your Email Deliverability
Hi @jameshh93-
You’ll have to make sure that you’re removing the action _after_ it’s been added, which is when the activity component is loaded.
Here’s a handy list of BP startup actions: https://codex.buddypress.org/developer/buddypress-action-hook-sequence-during-startup/
I’d probably try something around the bp_loaded action, like this:
add_action( 'bp_loaded', function() {
remove_filter( 'bp_activity_post_update', 'bp_activity_make_nofollow_filter' );
} );
Also, I’m not sure you’re targeting the right action. The nofollow filter is applied in these cases:
add_filter( 'bp_get_activity_content', 'bp_activity_make_nofollow_filter' );
add_filter( 'bp_get_activity_content_body', 'bp_activity_make_nofollow_filter' );
add_filter( 'bp_get_activity_parent_content', 'bp_activity_make_nofollow_filter' );
add_filter( 'bp_get_activity_latest_update', 'bp_activity_make_nofollow_filter' );
add_filter( 'bp_get_activity_latest_update_excerpt', 'bp_activity_make_nofollow_filter' );
add_filter( 'bp_get_activity_feed_item_description', 'bp_activity_make_nofollow_filter' );
the get_content action I’d probably try first is bp_get_activity_content_body when the activity is generated for display.