Hi I’m trying to run buddy press on WP version 4.5 2 but when I install I get this error message below. The theme creators of the theme I’m using say to contact you as its not on their end. Please let me know if this is a common issue or direct me to a post where this has been resolved. Thank you…message below:
Notice: bp_setup_current_user was called incorrectly. The current user is being initialized without using $wp->init(). Please see Debugging in WordPress for more information. (This message was added in version 1.7.)
If you are on a multisite install, each profile has a tab containing a list of sites the member belongs too, so those link already exist.
If you want such link elsewhere, you basically can use this.
As you say nothing about where you want the link to be on a profile, i assume you want it explicitly showing on the profile header. Following snippet will accomplish that. I tested it on a MS install with 2 blogs (main site + 1 user blog).
function my_link_to_blog() {
if ( bp_is_user() ) {
$user_id = bp_displayed_user_id();
} else {
$user_id = bp_get_member_user_id();
}
$blogs = get_blogs_of_user( $user_id );
if ( $blogs ) {
echo '<ul>';
foreach ( $blogs as $blog ) {
// exclude the main blog if a user signed to another one
if ( $blog->userblog_id != get_current_blog_id() ) {
echo '<li>View my blog<a href="http://' . $blog->domain . $blog->path .'">' . $blog->blogname . '</a></li>';
}
}
echo '</ul>';
}
}
add_action( 'bp_before_member_header_meta' , 'my_link_to_blog' );
Add to bp-custom.php
I would like to keep the friendliness of display in activity stream. I want to post @display_name instead of @user_login/@user_nicename in post activity stream and show @display_name as result post. Anybody please help me.
Wordpress version : Version 4.5.2
Buddypress Version 2.5.2
When I received these errors & deactivated Buddypress they went away. I can’t figure out how to fix.
Using Buddypress 2.5.2
Wordpress 4.5.2
Divi Theme 2.6
Notice: bp_setup_current_user was called incorrectly. The current user is being initialized without using $wp->init(). Please see Debugging in WordPress for more information. (This message was added in version 1.7.) in /home/teagal5/public_html/wp-includes/functions.php on line 3897
Warning: Cannot modify header information – headers already sent by (output started at /home/teagal5/public_html/wp-includes/functions.php:3897) in /home/teagal5/public_html/wp-includes/pluggable.php on line 1171
Hi
I have the hueman theme and because of some issues…I had to delete the theme and install+activate it again.
But since I did that not all widgets on the sidebar will show. Only groups, but friends etc. won’t. I had no issues before.
When I click on a user’s profile then the friends and groups will be there. So it’s only the front page there’s the problem. I haven’t touched the theme in anyway, except customizing it.
All widgets is made by buddypress.
I guess it isn’t that much of a issue, but still…I would like to make it possible for my members to see their friends, without going to their profile.
Do someone know what might can be the problem?
Site: strizzel.com
Wordpress: 4.5.2
Buddypress: 2.5.2
Thanks!
OK then, perhaps someone should update the last column of that page.
In addition, https://wordpress.org/plugins/buddypress/ indicates the latest version of BuddyPress is WordPress compatible up to version 4.4.3.
Thank you,
Don
Has BuddyPress been tested on WordPress 4.5.x yet?
Thanks,
Don
Hi @subairtc,
see bp_activity_get_where_conditions filter in bp-activity-classes.php ~L. 418
Here a similar question with more details.
Also, maybe you can do something based on this snippet, with a different approach.
/**
* Change order of activities query string.
* @param string $query Query string.
* @return string $query Modified query string.
*/
function bpfr_filter_activity_default( $query ) {
if ( empty( $query ) && !empty( $_POST ) ) {
$query = 'order=ASC';
}
return $query;
}
add_filter( 'bp_ajax_querystring', 'bpfr_filter_activity_default', 999 );
Apologize if i’m wrong. ๐
Hi,
i have a problem with the activation emails:
the sender is wordpress@mydomain.com and i have tried to change it with: WP Change Default Email, WP Change Default From Email and WP Simple Mail Sender (as you suggested in other topics), but nothing changed…
Other automatic emails are working fine, the issue seems to be affecting only the activation email…
Thanks
Hi!
I almost satisfied with my website, however not completely.
I have the plugin BuddyBlog and many other. But buddyblog there allows users to blog on their profile. Like make blog posts.
That’s just great, however when making a post it won’t show on the activity stream. It doesn’t even mention that I’ve created a blog post.
It does on my user profile, but it just mentions it. Doesn’t show the full post or anything.
Just says, “-user name- created post – post name -”
Here is my questions:
Is it possible to make the blog posts show on the activity stream?
And is it possible to make the whole post shown?
Think like tumblr. Posts are shown on there, that’s how I want it.
Now, I’m not good with codes etc. so it would be so fantastic if I could avoid using it. Since I’m afraid that I will mess everything up.
But if I really need to use codes, then I must try.
Thanks!
Wordpress: 4.5.2
Buddypress: 2.5.2
I,m am very sorry but… You did make those changes somehow, wordpress and buddypress only outputs lowercase slugs.
You are not typing internet adresses directly into your browser? Those links in your chase are generated by your theme? Did you try a different theme? Did you try to change the page slug?
Well, what do you know: I just found a fix for my problem here:
https://buddypress.trac.wordpress.org/ticket/4824#comment:4
(I had seen that recent fix from @pareshradadiya previously, but hadn’t noticed that it was a recent update to a 3 year old thread. So, figuring it might actually be current and relevant, I gave it a try and it worked.)
I’m having the same problem after upgrading to WordPress 4.5.2. I didn’t see the problem prior to that.
Have you found a solution yet?
For readers curious about the answer, autoembed does not run on meta items unless the dev runs it manually themselves ( @r-a-y ).
More details on BuddyPress Slack.
Hello,
I originally noticed this issue with BuddyPress Groups Extras where their Group Pages loaded through BuddyPress groups aren’t picking up the autoembeds or shortcodes. If the Group Pages are loaded outside of the BuddyPress group they function as expected.
References to the original issue;
BP 2.2 Update Broke Auto-Embeds on BP Groups Extras Pages
https://wordpress.org/support/topic/buddypress-22-breaks-vimeo-url-embeds-on-group-pages?replies=3
https://github.com/slaFFik/BP-Groups-Extras/issues/56
I came across this again as I’ve introduced a custom field ‘Group Content’ which adds content to the group overview page. Calling the_content() or apply_filters( ‘the_content’, get_the_content()) both fail to execute shortcodes and autoembeds (and probably any other the_content functions.
Here’s the include file to introducing the Group Content meta to groups;
http://pastebin.com/BsH1b00B
Then from my custom front.php for Groups I introduce the group content field through the_content filter;
<div class="group_content">
<?php
$group_content = groups_get_groupmeta(bp_get_group_id(), 'bp_group_content_editor');
if(!empty($group_content)){
echo apply_filters('the_content', $group_content);
} else {
echo "Please find any forums, documents or videos that you have access to listed in the sidebar.";
}
?>
</div>
Employing this technique I’ve found that no functions tied to the_content which would normally execute like autoembed and run_shortcodes no longer execute.
Does BuddyPress suppress these functions on the_content filter?
This seems to be the case not only in a custom field like this on the front.php but also any custom group pages introduced have the same issue.
Thoughts/Insight appreciated. I tried diving into the BP code but got a bit overwhelmed. I think it might have to do with the buddypress template loader but can’t be sure.
Anyway so this issue affects custom fields, custom pages and the plugin Buddypress Groups Extras which introduces Group Pages.
Thank you
BP xProfile Location
This new & free plugin creates a xProfile Location field type that use the Google Places API.
So you can use a single address field and get uniform and verified addresses from your members.
It will also create GeoCodes for each address, so you can use them to create member maps.
This plugin is used together with BP Maps for Members from PhiloPress to create member maps.
Hi Julia,
it’s a bbPress bug, patched a while ago, but still in. Maybe a day it will be repaired definetly.
For the moment, you can repair yourself. Open activity.php in wp-content/plugins/bbpress/includes/extend/buddypress/
Replace following code block at line 277/279:
$existing = bp_activity_get_specific( array( 'activity_ids' => $activity_id, 'show_hidden' => true, 'spam' => 'all', ) );
if ( empty( $existing['total'] ) || ( 1 !== (int) $existing['total'] ) )
return null;
by
$existing = new BP_Activity_Activity( $activity_id );
if ( empty( $existing->component ) ) {
return null;
}
Save and reload to to your site by FTP and you’re done.
Does someone know how to specify buddy press urls? For instance:
<?php echo esc_url( home_url( '/' ) ); ?>
the above is to point to WordPresses homepage.
But what is the url for a buddypress’s profile, sites, etc… page?
Thank you!
Better yet, it would be nice if there was a way to change all the BuddyPress buttons globally, including “Add Friend” “Cancel Friendship,” “SEARCH,” etc.
Example:
I found this code that changes all the wordpress buttons globally, just not the login and register.
.wp-core-ui .button-primary, .button {
background: #99cc66;
border-color: #669933;
box-shadow: inset 0 1px 0 rgba(102,153,51,.5),0 1px 0 rgba(0,0,0,.15);
}
.wp-core-ui .button-primary:hover, .button-primary:active {
background: #669933;
border-color: #99cc66;
box-shadow: inset 0 1px 0 rgba(102,153,51,.5),0 1px 0 rgba(0,0,0,.15);
}
Perhaps there is a .buddypress-core-ui?????
A Group Types API is on its way – 7 commits yesterday ๐ https://buddypress.trac.wordpress.org/ticket/6784
WordPress Version 4.4.3
BuddPress Version 2.4.3
link โ http://dev.inclusivetech.net/hammydowns/
Although you need to be logged in to see the button on the listings page.
So Iโm trying to change the compose message form in buddy press to say Title instead of
subject in the header for the email. To make it consistent with items on my listings page.
I found the compose.php files but any modification to them does not change anything on the
websites page. I found a total of 4 compose.php files dug into buddy press and buddy boss but
any changes to any of those files are not reflected on the site.
Any chance you could point me to the right file to change this??
Hy, I have a Problem.
In the Widget i have this code, becouse see Only the Avatar from gravatar.com and not from Buddypress or WordPress
<?php echo get_avatar( $comment, '45' ); ?>
Display in Html
<img alt="" src="https://secure.gravatar.com/avatar/ca07c51aecfa704741559ccc813d7b0d?s=45&d=mm&r=g" srcset="https://secure.gravatar.com/avatar/ca07c51aecfa704741559ccc813d7b0d?s=90&d=mm&r=g 2x" class="avatar avatar-45 gravatar" height="45" width="45">
Than i have change the code to:
<?php echo bp_core_fetch_avatar( array( 'item_id' => $comment->user_id,'type' => 'full','width' => 75,'height' => 75)); ?>
becouse is not working.
What is the correct code for Display Avatar from a Comment.
Thanks a lot
All of my users can not login to there account. They get redirected to the Home page. I can login to my admin account true website.com/wp-login but not from the login-widget.
What to do.
website http://www.npf-forum.se
latest wordpress
latest bb press
latest buddy press
genesis child theme latest.
And have also uploaded a backupp from my host and with that updated the database
I have cleard the cach several times
I have created a new user-account wich doesnet work to login with.
Iยดm, stuck
I found I have to declare it in my theme as noted here https://buddypress.trac.wordpress.org/ticket/6570:
bp_set_theme_compat_feature( 'legacy', array(
'name' => 'cover_image',
'settings' => array(
'components' => array( 'xprofile', 'groups' ), /* or you can only use array( 'xprofile' ) to restrict the cover image to users */
'width' => 1170,
'height' => 225,
'callback' => 'swifter_theme_cover_image', /* function that will return to BuddyPress the css to attach to the theme_handle */
'theme_handle' => 'swifter',
),
) );
I hereby recommend the BP Group Documents plugin that gives a simple dropbox function in a group.
User friendly and easy.
I would like it to be included in Buddypress core.
Lars