Hey There!
Just installed BuddyPress on a brand new multisite install.
When we go to edit a user profile field under Users –> Profile Fields, we receive this error “Sorry, you are not allowed to access this page.”
I am a super user and created everything.
Please advise.
Hey Henry,
Thank you so much! That worked perfectly.
I forgot to mention though that the “Name” profile field still shows up on theer BuddyPress profile page. Do you know any code that I could use to hide that field?
Thanks so much
I’m trying to build a WP with some public content and other content only available for registered users and being able to control their profile and movements (an email automatic sent when a user changes something). I’ve built some webs on WordPress but I am still learning.
Basically, I’m asking if with BuddyPress will be possible:
– New users with need for administrator approval
– Some private content only avaliable for certain users
– Personalized fields in user profile
– Automatic sending of emails when a user changes a profile field
Thank you in advance
Dear @djpaul ,
please ignore my previous reply.
I found out that the // ‘activity_update’, works a bit TOO well/much 😉 , since it also removes the activity information about the new comments created in blogs.
Please, is there any specific removal as // ‘activity_update’, — however, this one only removes those which are posted in Buddypress Profiles?
This would mean… I would still see:
[username] commented the post [postname]
However, if someone replies the BuddyPress activity/comments the
[username] posted a new activity comment
Will not show/ create.
Thank you very much
You have 2 options. I’d recommend the 2nd:
1: Copy and paste the JavaScript to your my-theme/buddypress/members/register.php template. In this case you’ll need to copy the <script> tags also.
2: Create a separate file (my-theme/js/script.js for example) and paste the JavaScript into that. In this case you don’t need to copy the <script> tags. If you go down this route you will need to enqueue the script. See this article for info on how to do that:
wp_enqueue_script()
Hi there,
I’ve been doing a lot of research into hiding the required name profile field (since my users find it redundant and confusing), however, I can’t seem to find an answer on any topics.
The closest I stumbled upon was this BuddyPress ticket which gives this CSS code:
#register-page p { display: none;}
#profile-edit-form .field_1 { display: none;}
#signup_form .field_1 { display: none;}
to hide the name field and this javascript:
<script>
document.getElementById("signup_username").onchange = function() {myFunction()};
function myFunction() {
var x = document.getElementById("signup_username");
document.getElementById("field_1") .value = x.value
}
</script>
to automatically populate the Name field with their BuddyPress username upon registration. However, I don’t know where or how I should implement the javascript section. Any ideas?
Thank you for your help 🙂
Julian
Is that possible?
Yes but you’ll need to install some plugins and maybe write some custom code to get the functionality you need.
Check out the Getting Started article
Getting Started
BuddyPress does not touch the login page.
You are using a different plugin to do this or some rewrite rules on your server.
Hey @kdannay
Is BuddyPress actually sending – or is the problem at your client’s end? i.e. your client’s email client can’t display the – character properly?
仝Participant
I installed a quick login plugin, and it needs wp-login.php to login, but all login url has been changed by BuddyPress, so the plugin cant be used, how can i fix it?
ex. xxx.xx/wp-login.php -> xxx.xx/login
I need assistance understanding why after upgrading BuddyPress (2.8) and WordPress (4.7.2), my client is seeing odd characters in their summary emails.
Sample from today’s email:
~~~~
Group: [ESSA-The Every Student Succeeds Act (2015 reauthorization of ESEA) – Parent Centers Taking Action](http://www.parentcenterhub.org/groups/new-every-student-succeeds-act-2015-reauthorization-of-esea/) weekly summary
To disable these notifications for this group click [unsubscribe](http://www.parentcenterhub.org/members/myriam/?bpass-action=unsubscribe&group=60&access_key=f2235886eb95aa9972109a72ede8f6fa) – change [email options](http://www.parentcenterhub.org/login/?action=bpnoaccess&auth=1&redirect_to=http%3A%2F%2Fwww.parentcenterhub.org%2Fgroups%2Fnew-every-student-succeeds-act-2015-reauthorization-of-esea%2Fnotifications%2F)
~~~~
When I view Settings > BP Group Email Options, and “View queued digest items” it looks fine.
I have gone into Tools > BuddyPress and used the “Repair Tools”.
I have just taken over the account and I am not familiar with BuddyPress. What else can I do? Suggestions?
Any related posts I’ve seen are years old… guidance?
Thanks,
Kathryn
I just spoke with Boone, he suggested a reinstall of BuddyPress is needed because it looks as though your upgrade didn’t complete properly. bp-core-functions.php shouldn’t contain a reference to the BP_Core_Sort_By_Key_Callback class because the class was removed in 2.8.0.
I found this handy
It works in BP-custom.php — im trying to get it to load instead of “alphabetical”
// Exit if accessed directly
if ( !defined( 'ABSPATH' ) ) exit;
class BP_Loop_Filters {
/**
* Constructor
*/
public function __construct() {
$this->setup_actions();
}
/**
* Actions
*
* @uses bp_is_active()
* @uses is_multisite()
*/
private function setup_actions() {
/**
* Adds the random order to the select boxes of the Members, Groups and Blogs directory pages
*/
// Members component is core, so it will be available
add_action( 'bp_members_directory_order_options', array( $this, 'random_order' ) );
// You need to check Groups component is available
if( bp_is_active( 'groups' ) )
add_action( 'bp_groups_directory_order_options', array( $this, 'random_order' ) );
// You need to check WordPress config and that Blogs Component is available
if( is_multisite() && bp_is_active( 'blogs' ) )
add_action( 'bp_blogs_directory_order_options', array( $this, 'random_order' ) );
}
/**
* Displays a new option in the Members/Groups & Blogs directories
*
* <a class="bp-suggestions-mention" href="https://buddypress.org/members/return/" rel="nofollow">@return</a> string html output
*/
public function random_order() {
?>
<option value="random"><?php _e( 'Random', 'buddypress' ); ?></option>
<?php
}
}
// 1, 2, 3 go !
function bp_loop_filters() {
return new BP_Loop_Filters();
}
add_action( 'bp_include', 'bp_loop_filters' );
I have tried this with Both 2.8.0 and 2.8.1, every time i upgrade (or install for that matter) I get this error:
Fatal error: Class ‘BP_Core_Sort_By_Key_Callback’ not found in /home/ieadmin/public_html/wp-content/plugins/buddypress/bp-core/bp-core-functions.php on line 126
I deactivated and moved all plugins, switched to the 2017 theme. No luck. I even edited that file to put back the changed code from 2.7.4
The only thing I could do was upload the file: class-bp-core-sort-by-key-callback.php
Everything *Seems* top be working. but i am at a loss for why it did that, and should further updates remove this file i’ll be back to adding it.
Thoughts?
OK this was the error when I did the wp-debug:
Fatal error: Call to undefined function bp_is_front_page() in /home/longmans/public_html/positiveplusone.com/wp-content/plugins/bp-custom.php on line 21
I deactivated all plugins and the site was showing.
I re-enabled BuddyPress as the first plugin and the site did not show when I pressed View Site.
It’s the BuddyPress plugin but I don’t know what/how to fix it.
I want to list the activity for a specific group, not list of groups. I have not continued withe template method danbp. I’ve tried everything you mentioned including the bp_parse_args(). I just couldn’t get it to work. I could get it change the amount of list items but not display a selected group activity.
But I have gone back to using the activity loop now, trying to incorporate the code you gave me.
Here is the activity loop, how would you incorporate your code above:
<?php if ( bp_has_groups() ) : ?>
<div class="pagination">
<div class="pag-count" id="group-dir-count">
<?php bp_groups_pagination_count() ?>
</div>
<div class="pagination-links" id="group-dir-pag">
<?php bp_groups_pagination_links() ?>
</div>
</div>
<ul id="groups-list" class="item-list">
<?php while ( bp_groups() ) : bp_the_group(); ?>
<li>
<div class="item-avatar">
<a href="<?php bp_group_permalink() ?>"><?php bp_group_avatar( 'type=thumb&width=50&height=50' ) ?></a>
</div>
<div class="item">
<div class="item-title"><a href="<?php bp_group_permalink() ?>"><?php bp_group_name() ?></a></div>
<div class="item-meta"><span class="activity"><?php printf( __( 'active %s ago', 'buddypress' ), bp_get_group_last_active() ) ?></span></div>
<div class="item-desc"><?php bp_group_description_excerpt() ?></div>
<?php do_action( 'bp_directory_groups_item' ) ?>
</div>
<div class="action">
<?php bp_group_join_button() ?>
<div class="meta">
<?php bp_group_type() ?> / <?php bp_group_member_count() ?>
</div>
<?php do_action( 'bp_directory_groups_actions' ) ?>
</div>
<div class="clear"></div>
</li>
<?php endwhile; ?>
</ul>
<?php do_action( 'bp_after_groups_loop' ) ?>
<?php else: ?>
<div id="message" class="info">
<p><?php _e( 'There were no groups found.', 'buddypress' ) ?></p>
</div>
<?php endif; ?>
I’m sorry if this is annoying you, I do appreciate your help. I’ve only been working with buddypress for about a week.
Thanks
Did you read the related documentation ? Specially the one related to the groups-loop ?
Groups Loop
My previous answer contained a solution to do that programmatically. But you (continue to) use the template method. If you want this method, see the mentionned groups-loop.
Hi,
you need a child theme and a small code modification.
The code is explained here.
if ( bp_has_members( bp_ajax_querystring( 'members' ) ) ) is to replace by something like (can be different)
if ( bp_has_members( 'type=random' ) )
In a “buddypress” folder of your child theme, you add a copy of this file:
wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/members-loop.php
What ever you modify in that file while now be interpreted by BuddyPress. The advantage of this method is that BP can be updated while your modification in the child will always be save and taken in account over the current version.
You can also search the forum for members-loop to get other information.
Disable the “Site Tracking” component under “Settings > BuddyPress” in the WP admin dashboard. When you do this, blog posts and blog comments will not be recorded into the BP activity stream.
While we are at it, is there a way to disable my blog posts from automatically showing up as my buddypress activity posts? Thank you very much in advance.
1,2,3,4,6 should be left to WordPress plugins as these are specific to WP.
7, 10 have been discussed as core options. It just takes time for developers and the team to finalize specs and to code as this is all done on a volunteer basis. 10 is hard because it relies on a ton of dependent code that hasn’t been written or finalized yet.
5 – There’s been some preliminary work on this. See https://github.com/buddypress/bp-types-ui.
9 – If you’re using WordPress multisite, this should be already available as a WordPress option under “Network Admin > Settings”. Otherwise, this plugin might work, but does the opposite. It restricts signup to email domains that you specify.
Notifications
2 should already be in core.
3 is a good request, but unreliable due to how the notifications data is stored. It would be easy to do for BP core notifications, but notifications generated by plugins could store the user ID differently, making this unreliable.
4 could be done via a custom template or via a small code snippet.
If the post contains an inappropriate word that you’ve set up in WP’s comment moderation settings, then BuddyPress also inherits these settings. This functionality was added in BP 2.6.0.
To disable this functionality from the Activity component, add the following to your theme’s functions.php or wp-content/plugins/bp-custom.php:
// Do not use WP's Comment Moderation with BP Activity component
remove_action( 'bp_activity_before_save', 'bp_activity_check_moderation_keys', 2, 1 );
// Do not use WP's Comment Blacklist with BP Activity component
remove_action( 'bp_activity_before_save', 'bp_activity_check_blacklist_keys', 2, 1 );
Hi Jody,
BP pages should be empty, so it is normal you see only a title in the page preview. These pages are dynamic and completed by BP, depending the context. As site owner, you have nothing to add to them.
To get the page system to work correctly, you have to enable the permalinks. You can choose any option, except “by default”. Don’t forget to save your setting.
For more details, please read the documentation.
I visited your site, but was unable to access the member directory page or site activity page. Seems you require user to be logged in to access them… 🙁
@danbp
Big thanks! its definitely got me to the right direction..
though… im a little nervous to make updates on Buddypress.js
-im trying it out now on twenty seventeen
Hi.
I wasn’t sure if this was normal. But it seems pretty extreme. I have some blacklist bad words and a max link allowed set in my general wordpress comment/discussion moderation settings. But, it seems to be blocking and controlling/affecting my buddypress users (subscribers) buddypress activity status updates.
Example: if a user tries to post any activity status update at all, it throws a warning saying they have posted a inappropriate word. If they try to post a link, it says they have posted too many links.
It’s almost like the WordPress 4.7.2 discussion settings are completely shutting down the status updates of the users.
I’ve used buddypress in the past, but I do not remember this. Is there a setting that I can uncheck, etc?
Is there a way to keep the WordPress comment moderation settings separate from the Buddypress status activity update settings?
Any help would be appreciated. Thank you in advance!