Hi @bttmrc,
You can add the profile avatar in wordpress menu by simply filtering the wp_nav_menu_items function. A nice article is here. Add a custom menu item. You should know a little bit of coding to achieve it.
Final analysis. It turns out that the previous developer’s method for loading certain plugin related pages/posts was done very much NOT “the wordpress way”. This caused bad oembed URLs to be created, so when the oembed data was returned it was corrupted. I was able to resolve all the issues.
This thread can be closed.
host via a server other than WordPress
Are you referring to wordpress dot com ?
Both WP and BP are free and can be hosted on any server.
You don’t need the ‘pro’ membership plugin.
I’m trying to set up a membership site and may go with WooCommerce Membership. But I have a hard time finding a way to solve a problem.
When a member’s membership (via WooCommerce Membership) is cancelled, his Buddypress WordPress user account is still active, which means he can still log in and freely contact other members. i need to find a way to restrict these cancelled members from accessing BP entirely, or at least from Private Message so they can’t contact other members.
So far the closest one i found is this thread
https://buddypress.org/support/topic/hiderestrict-access-to-private-messaging/#post-170393
According to the note, USER_TO_DISALLOW would be my cancelled WooCommerce users. But I wouldn’t know which member would cancel (or their membership level) upfront so this codes don’t seem to work for my site. Besides, it’s 4+ years old and I’m not sure if it’s still relevant.
The other one is
https://buddypress.org/support/topic/restrict-private-messages/
The moderator said there’s a hook available in BuddyPress called messages_message_before_save which can be used to do things before a message is sent. But I don’t know how to write a function to customize it for my need.
Can anyone help? If you happen to know any other membership plugins that can achieve this, I’d really appreciate if you can let me know.
Thank you.
Update: The meta_value saved in wp_bp_messages_meta for meta_key _oembed-***** has the wrong URL saved in there so the problem is occurring before the data is saved. The fact that this same problem happened on my site as well as in this forum is interesting and leads me to believe the problem is somewhere in wordpress or buddypress core files.
@mastershas Profile setting are set to allow individuals to upload profile pic, but still not working. Please click the link below. I use buddypress version 2.9.1
https://friendsthroughgrief.com/members/admin/profile/
I change the theme and still is not working. I have added a code to take off the WP dashboard completely for all users except admin. I have seen screenshots of people having the ability with buddypress to upload a photo directly from their profile? My user profiles do not give me that option?
I have downloaded the following plugins in hope that it will help, but nothing has.
Custom User Profile Photo Version 0.5.3 | By VincentListrani
rtMedia for WordPress, BuddyPress and bbPress Version 4.4.3 | By rtCamp |
Transcoder Version 1.1.2 | By rtCamp
@ftg17 Did you check the Profile Settings Option? If not Login to WordPress dashboard using admin account and navigate to Setting >> Buddypress >> Options >> Profile Settings . Mark tick on allow user to upload profile photo. If you did this kindly change to the WordPress default theme and check if now you can update your profile pic.
@whiteeagle1985 The author links that are shown in the post comes from the the function which is defined in the wordpress theme. Every theme has a redefine function to print the author link. The solution can be creating a child theme and redefine the function according to your need. I am not sure which theme you are using.
@coach-afrane
Functions.php
// Limit the Access To WordPress Dashboard. Only Admin
add_action( 'init', 'blockusers_init' );
function blockusers_init() {
if ( is_admin() && !current_user_can( 'administrator' ) && !( defined( 'DOING_AJAX' ) && DOING_AJAX ) ) {
wp_redirect( home_url() );
exit;
}
}
// Limit the Access To WordPress Dashboard. Only Admin and Editor
add_action( 'init', 'blockusers_init' );
function blockusers_init() {
if ( is_admin() && !current_user_can( 'administrator' ) && !current_user_can( 'editor' ) && !( defined( 'DOING_AJAX' ) && DOING_AJAX ) ) {
wp_redirect( home_url() );
exit;
}
}
// BP Redirect To Profile
function redirect_to_profile( $redirect_to_calculated, $redirect_url_specified, $user ) {
if ( ! $user || is_wp_error( $user ) ) {
return $redirect_to_calculated;
}
//If the redirect is not specified, assume it to be dashboard
if ( empty( $redirect_to_calculated ) ) {
$redirect_to_calculated = admin_url();
}
// if the user is not site admin, redirect to his/her profile
if ( ! is_super_admin( $user->ID ) ) {
return bp_core_get_user_domain( $user->ID );
} else {
//if site admin or not logged in, do not do anything much
return $redirect_to_calculated;
}
}
add_filter( 'login_redirect', 'redirect_to_profile', 100, 3 );
// Exclude Admins from Directories and BP Widgets
add_filter( 'bp_after_has_members_parse_args', 'buddydev_exclude_users' );
function buddydev_exclude_users( $args ) {
//do not exclude in admin
if( is_admin() && ! defined( 'DOING_AJAX' ) ) {
return $args;
}
$excluded = isset( $args['exclude'] )? $args['exclude'] : array();
if( !is_array( $excluded ) ) {
$excluded = explode(',', $excluded );
}
$user_ids = array( 1 ); //user ids
$excluded = array_merge( $excluded, $user_ids );
$args['exclude'] = $excluded;
return $args;
}
You can’t do this by default on the front end in BuddyPress. You can of course do this in the WordPress admin area as an administrator.
Note some steps could be missing here but hope this helps with the general direction 🙂
1. Look for “Users” in left sidebar of WordPress wp-admin area
2. Click “Profile Fields” and there should be a box which you might have named “Terms of Use” – NOTE: if you changed the “Name (Primary) (Required)” to your terms of use field, you should change this back as it syncs with the person’s name
3. Click the blue button “Add New Field” and name it “By registering to ThoseCrazyVegans.net, you agree to the <a href="/terms-of-use/">Terms of Use</a>” (the title accepts HTML at least for now)
4. Then, choose “Checkboxes” for the “Type” below it and type “Yes, I agree to the terms of use” and don’t check Default Value
5. You can also choose “requirement” as required
6. Choose “enforce field visibility”
7. Then click update
I use a different method for registering but hope this helps.
(Sorry having difficulties posting to the forum. Apologies for duplicate replies… Wish there was a way to delete)
I should also add that wordpress is configured for multisite.
UPDATE: found possible solution (?) by going into profile fields section in both dashboards and clicking “edit” and “update” for the required name section. This then appears to have reset things. Now the name updates in both Extended Profile tab and the WordPress default Profile tab when making an edit in the member profile page.​
FYI: I have found several times now that there are strange quirks but I’m sure it is 99% user error (mine) but not everything is straightforward such as this above. To find this method took quite some time trying every standard option and the last was clicking every option over again…
Hi! I have a website with buddypress activated on it, and have just started setting up the forum.
I’d like to know how to hide the sub groups from showing on the main forum page, so that they are only visable once someone goes into each forum (state based mostly).
Forum
I’m a VERY new wordpress user, so be gentle haha!
Thanks for any help with this,
Kathy x
If you simply looking to redirect people from 1 url to another, perhaps you could try the Redirection plugin?
Update: I have tried as many methods found in this Support Forum including bp-custom.php, functions.php, different wp-config.php options.
The one that worked for us is via a wp-config.php modification with code from @boonebgorges here: buddypress.trac.wordpress.org/ticket/4252
// This assumes that the blog in question is #1. If it's not, the path will
// have blogs.dir in it
define( 'BP_AVATAR_UPLOAD_PATH', '/var/www/html/example/wp-content/uploads' );
// Again, assuming you're coming from #1. To pull from a different blog,
// it'll be example.com/secondaryblog/files or something like that
define( 'BP_AVATAR_URL', 'http://example.com/wp-content/uploads' );
Also wanted to share that if we add bp-custom.php and add various fixes suggested by others it results in a fatal error with a call to undefined bp_core… perhaps there is a different issue causing other fixes to not work for us… Open to try other suggestions but so far so good with fix above.
@mah184 I do not know how the “wordpress” stuff was supposed to be all gone” as BuddyPress is a plugin for WordPress. If by “Business Plan” you mean WordPress.com’s Business Plan, then please avail of the free support aka ‘real-time concierge support’ provided along with your plan. Aside from which, WordPress.com hosting is an entirely different scenario from a self-hosted solution which we usually help out in these forums, so the best support you’ll get is from WordPress.com. Good luck.
Hi @sarahshaik
Welcome to BuddyPress! You can get BuddyPress plugins from the WordPress repository: https://wordpress.org/plugins/
Take a look here for everything tagged BuddyPress: https://wordpress.org/plugins/tags/buddypress/
This plugin puts a band aid on that issue.
User Menus
Can you ensure that line 207 in bp-blogs/bp-blogs-functions.php matches the following?
https://buddypress.trac.wordpress.org/browser/tags/2.9.1/src/bp-blogs/bp-blogs-functions.php#L207
If it doesn’t, can you let me know what line 207 is on your version of BuddyPress?
So the problem is not about Buddypress but about WordPress?
That is the same visibility options that already come with BuddyPress. I need to be able to add the option to choose that the profile is viewable by editors or other member group that comes with wordpress. I don’t want to hide them from being editable by the user, I want to hide them from being seen by other members on when they view another members profile but want them to be seen by more than just admin’s (i.e.) I also need to allow editor’s to be able to see them when viewing a member’s profile.