Hello,
I have both bbPress and BuddyPress installed and I really like the prospects. However, I signed my husband up to be a new user. I was at that time logged into my account in Safari and then I went to Chrome and logged in under his name.
What I found was that he had access to the activities and the messaging but he could not see the forums that were created by me when I was in my account. I am an administrator of course. I am thinking that there is some type of permission that I should be giving new subscribers.
The other thought is that maybe there is a main forum page that has all of the forums created by all users that should be the link on the main menu and that this current page is the one that only shows what that particular user has contributed.
What I want is to have a link in the main menu that takes them to the full list of forum topics and that non-subscribers can see too. Unless they are members they cannot contribute but as members they can.
Please advise.
While working on other plugin, I came across that this message appears when current_user_can() is called from within ‘plugins_loaded’ action. If user authentication is not expected at this point, then this proves that it is not BuddyPress problem.
Which action, as early as possible, would you recommend to use expecting current_user_can() to work properly?
hello. I am new to buddypress. I just added the plugin to my site https://www.playercoachconnect.com
I cannot see a place to upload a profile picture. The option is available to delete. Where is the upload photo button at?
This may be a very simple problem, but I’m trying to add a simple sidebar to a buddypress group page by inserting HTML and inline CSS. It’s not working at the moment, the sidebar doesn’t display. Btw, I/we are doing this because were creating some very quick prototypes that we’re going to test. We don’t want to add anything to the stylesheet until we get feedback on our variations.
The code is:
<div style=”width: 270px; float: right; border:1px solid #ddd; padding: 20px 25px 0px 25px;”>
Some text to test with
</div>
Weirdly, if I add the code above TWICE one of them displays. Maybe this is a WordPress and not buddy press issue.
You got me, Henry! No, it does not. I now have been turning on/off other plugins and I got a combination: “Twenty Fifteen”, BuddyPress and “Favicon by RealFaviconGenerator”. If I turn off either BuddyPress or Favicon, the message disappear. Do you wish me to report it to Favicon, or would you look first what exactly is wrong?
@modemlooper The only problem is i am updating the content with the Post ID and thumbnail of the post for activity prior to submitting it, is there any other way of doing is ?
add_action('bp_activity_before_save', 'rewards_activity_content', 3);
add_action('publish_rewards', 'groups_rewards_activity',4,1);
/* Filter for content for post type reward before saved to database */
function rewards_activity_content($activity){
global $post;
global $bp;
if ($post->post_type == 'rewards') {
$activity_id = (int) $activity->id;
$post_id = (int) $activity->secondary_item_id;
$user_id = (int) $activity->user_id;
$post_type = get_post_type( $post_id );
$thumbnail = get_the_post_thumbnail($post_id);
$post_permalink = get_permalink($post_id);
$title = get_the_title($post_id);
$activity_content = "<div class='post-id'>The post ID : {$post_id}</div>\n";
$activity_content .= "<div class='thumbnail'>{$thumbnail}</div>\n";
$activity->content = $activity_content;
$group_id = (int) BP_Groups_Group::group_exists($field_group[0]); //working :)
$bp->groups->current_group = groups_get_group( array( 'group_id' => $group_id ) );
$groups_activity_action = sprintf( __( '%1$s posted a reward %2$s in the group %3$s', 'buddypress'), bp_core_get_userlink( $user_id ),'<a href="' . $post_permalink . '">' . $post->post_title . '</a>' ,'<a href="' . bp_get_group_permalink( $bp->groups->current_group ) . '">' . esc_attr( $bp->groups->current_group->name ) . '</a>' );
$groups_args = array(
'action' => apply_filters( 'groups_activity_new_update_action', $groups_activity_action ),
'content' => apply_filters( 'groups_activity_new_update_content', $activity_content ),
'component' => 'groups',
'type' => 'activity_update',
'type' => 'new_forum_post',
'primary_link' => $post_permalink,
'secondary_item_id' => $post_id,
'item_id' => $group_id,
'user_id' => $user_id,
); //all of groups_args array value is being populated
//do_action( 'bp_activity_add', $groups_args ); //not working
do_action( 'groups_rewards_activity', $groups_args );
}
return $activity;
}
function groups_rewards_activity($groups_args){
$id = bp_activity_add($groups_args);
return $id;
}
Hi,
I have tried several times to install BuddyPress 2.1.1 on a fresh install of WordPress 4.1, but I get all the time after activation of the BuddyPress plugin error:
503 Service Unavailable. The server is temporarily busy, try again later!
I have no other plugins installed.
hello,
i just installed buddypress and all went ok.
only one thing seems to disfunction.
for example when i go to /members/ and click on one member,
the titles displays 404 Not found.
check here: http://lolwatchers.com/appdir/members/testuser/
can anyone tell me how to fix?
I think that function should be an GUI option in BuddyPress’ settings page.
But the primary thing that made me give up working on my site was that I was spending a huge amount of time trying to create BuddyPress and bbPress testing data all on my own, including the fact that there’s no way I, a non BuddyPress and bbPress developer, could make sure I covered all elements and do it efficiently. I’m just a webmaster– I am unfit to do work that relies on that much knowledge of BuddyPress and bbPress, and it’s way too much work for me alone anyway since I don’t know the systems that well.
In admin BuddyPress settings click the settings tab and scroll to bottom and uncheck activity refresh setting
WordPress Version 4.1
BuddyPress Version Version 2.1.1
I am trying to create a group activity feed everytime a new custom post type post is created.
add_action('bp_activity_before_save', 'rewards_activity_content', 3);
function rewards_activity_content($activity){
global $post;
global $bp;
//i have some working code here
$bp->groups->current_group = groups_get_group( array( 'group_id' => $group_id ) );
$groups_activity_action = sprintf( __( '%1$s posted a reward %2$s in the group %3$s', 'buddypress'), bp_core_get_userlink( $user_id ),'<a href="' . $post_permalink . '">' . $post->post_title . '</a>' ,'<a href="' . bp_get_group_permalink( $bp->groups->current_group ) . '">' . esc_attr( $bp->groups->current_group->name ) . '</a>' );
$groups_args = array(
'action' => apply_filters( 'groups_activity_new_update_action', $groups_activity_action ),
'content' => apply_filters( 'groups_activity_new_update_content', $activity_content ),
'component' => 'groups',
'type' => 'activity_update',
'primary_link' => $post_permalink,
'secondary_item_id' => $post_id,
'item_id' => $group_id,
'user_id' => $user_id,
);
do_action( 'bp_activity_add', $groups_args ); //not working
}
all of the values within the $group array is being populated its just the last do_action is not working. I also tried doing groups_record_activity.
I have also tried to pass through these arguements through a custom action to bp_activity_add and its still not working any help would be grateful.
I using a theme called Dynamix from Themva and the plugin is BuddyPress Wall here is link to the plugin BuddyPress Wall
I am using most recent version of BuddyPress on WP 4.1
Yeah, see here for details of the wp_signups table.
You may also be interested in these links:
BuddyPress database description
BuddyPress Database Diagram
WordPress database description
https://codex.wordpress.org/images/9/97/WP3.8-ERD.png
WordPress Version 4.1
BuddyPress Version Version 2.1.1
I have created a custom field called location under a custom post type called rewards.
I have also created groups which have these location names.
I want to be able to create a group activity stream whenever a user posts a new reward and have been trying hours to get this to work.
$group_id = (int) BP_Groups_Group::group_exists($group_name); //working
I am using a custom bp_activity_before_save action when the post type is reward. Could you please tell me how I can change the action as such : –
$activity_group_action = sprintf( __( '%1$s has created a new reward %2$s in the group %3$s : %5$s', 'buddypress'), bp_core_get_userlink( $user_id ), '<a href="' . $post_permalink . '">' . $post->post_title . '</a>','<a href="' . bp_get_group_permalink( $group_id ) . '">' .$group_id .": ". esc_attr( bp_get_group_name( $group_id ) ) . '</a>' );
and then add this to the groups activity feed whenever a new reward post is created whereby the location name custom field matches with the groups name. I tried using the bp_activity_add function but its not working
Thank you
I am just getting onboard for a client’s site and they have around 1 million pending users. Typically I would just flush them all but it’s actually a popular site and there’s a lot of real people signing up. Part of the reason for so many is this client didn’t have a developer for awhile and there was an issue with people not being sent activation email (now fixed with plugin).
I already went through the database with phpmyadmin and flushed all the bad email ones. This was from the wp_user table.
I can only delete about 900 a time in the WordPress front in and it takes a couple minutes loading time each time.
Site info:
Buddypress Version 2.1.1
WordPress 4.0.1
Using Firmasite theme (bootstrap)
Everything else seems to be working fine and there’s no other issues with the database. I haven’t edited any core files in WP/BP.
Thank you
@the-majestic-one
The theme details for that theme say:
rtMedia Ready – Add albums, photo, audio/video encoding, privacy, sharing, front-end uploads & more.
I would bet that for the media tab functions of that to work, you would need to install the rtmedia plugin
( https://wordpress.org/plugins/buddypress-media/ )
Of course I don’t win every bet – and don’t bet often – just a thought you might try..
Thanks for the quick response.
” When you say you have a media tab to click – is that something you have in buddypress without other plugins? ”
http://awesomescreenshot.com/042461xz84
this is an example of what I am getting…I have other plugins installed but I have disabled them all and I still get the same thing.
I will also ask those plugin devs…I appreciate the quick help.
It might have been already reported to you, I would like to post another vote to get rid of the following message:
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 /wp-includes/functions.php on line 3547
which starts showing up when BuddyPress is activated and WP_DEBUG is on in /wp-config.php. It does not seem to break functionality of BuddyPress, but it is very annoying, when one tries to debug other stuff.
Thank you very much.
@alexfa08
If I was creating a new theme with buddypress in mind right now, I would consider that most buddypress installs probably use the rtmedia plugin – and given that it is over bloated with it’s own loading of bootstrap components, and font awesome, and I think some zurb foundation files(?) – most themes I have tried to use that are responsive and work with buddypress plain – have issues when the rtmedia plugin is enabled – not sure why exactly – but I found that any theme I tried that was based on bootstrap code caused conflicts, and there for I was unable to use – since having media uploads is more important than having a good theme imho.
Maybe that will change if the new mediapress plugin proves to be a good alternative – but I don’t think we will know unless someone codes an import media and stuff from rtmedia to mediapress.
So if I was making a new theme for BP – I would try to test with rtmedia, and some of the other major plugins that most people will be using. I’d make it responsive – but I would get a list of all classes that bootstrap uses and make sure not to use any of the same.
It would be nice to see a new theme that had options to un-enque / deregister calls to repetitive assets – on my current theme I think my theme calls 4 javascripts, 3 css files, adds inline css styles, and then my 6 plugins do the same.. so I end up loading javascripts about a dozen times, and fonts, and about a dozen css files, and a few hundred lines of inline css, and all kinds of extra bloated bs.
Some random thoughts from my recent experiences.
@the-majestic-one
If you change themes to 2014 or whatever and the same process works right, but fails when you use the sweet date theme – then that is not a buddypress issue and should be brought up with that theme’s developers.
When you say you have a media tab to click – is that something you have in buddypress without other plugins? IF your media tab is created by rtmedia or mediapress or some other media plugin – then I would ask those plugin devs.
Hi @eversatile
I have been trying to find the file location of the profile and group navigation menus, with no luck
There isn’t a template file which you can change if that’s what you mean, but…
I would like to change “forums” to “discuss” and remove the “members” from groups menu, etc
You can customise slugs quite easily. See the Customizable Slugs in BuddyPress article.
bp_core_remove_nav_item() will let you remove nav items from the navigation. There is also bp_core_remove_subnav_item() for removing sub nav items.
no. nothing to do with buddypress wall. sorry.
Solely to do with your comments not working.
arising from op
……then the standard comment button in BuddyPress doesn’t seem to work.
hope you are sorted.
@valuser, was this for the Buddypress facebook wall? And thank you for jumping in with a solution. Temporarily, I have it disabled as I was getting frustrated at the fact that my comment buttons in buddypress were not working and the fact that it kept pushing my sidebar to the bottom of the page.
Was is even more frustrating is the fact that the theme I am using is supposed to be Buddypress compliant with latest version and no success with the theme developers support. Usual deal, another day! lol
Could be server related.
I had the same issue with one theme on one server (same theme worked perfectly on local installs and on other servers) though comments and activity posting were disabled. javacripts were not loading on one particular server for this particular theme.
The solution, provided by the theme developer, that worked for me (for that problem, which may not be yours, so may not be your solution) was to put the function below in functions.php
add_action( 'wp_enqueue_scripts', 'load_buddypress_js' );
function load_buddypress_js () {
if (bp_is_group() || is_page( 'activity' )) {
wp_enqueue_script('buddypress_query',plugins_url() . '/buddypress/bp-core/js/jquery-query.min.js',array("jquery"));
wp_enqueue_script('buddypress_members',plugins_url() . '/buddypress/bp-core/js/widget-members.min.js',array("jquery"));
wp_enqueue_script('buddypress_cookie',plugins_url() . '/buddypress/bp-core/js/jquery-cookie.min.js',array("jquery"));
wp_enqueue_script('buddypress_scroll',plugins_url() . '/buddypress/bp-core/deprecated/js/jquery-scroll-to.min.js',array("jquery"));
wp_enqueue_script('buddypress_js',get_template_directory_uri() . '/buddypress/js/buddypress.min.js',array("jquery"));
wp_enqueue_script( 'heartbeat_js', get_template_directory_uri() . '/wp-includes/js/heartbeat.min.js', array(), '4.1', true );
}
}
The last item, heartbeat.min.js, is a core wp file from the /wp-includes/js/ folder which this server, specialising in WordPress, was apparently, unilaterally and undeclared, refusing to load!!!!