Search Results for 'buddypress'
-
Search Results
-
I’ having this old but new issue. Old because I forget about it until there is a new Buddypress update, then I’m painfully reminded again.
I’ve been showing User Posts to the WordPress site on the Buddypress Activity page by using an awesome function I found in a Forum. It adds a Button to Buddypress Nav, titled (POSTS), with post count. These are all the posts that a user posted to the WordPress site. The problem I’m having is everytime Buddypress comes out with a new Update I have to pass on it because it interferes with the (Posts) Nav and Vice Versa. I do not want to keep losing out on these updates but I also do not want to lose the user Posts button on the activity page.
Here is the function I used, can anyone tell me how to fix this:/* ------------------------------Start BP Post in profile code for function-------------------- */ function importSomething(){ return include_once 'bp-custom.php'; } add_action( 'bp_setup_nav', 'buddyboss_child_bp_nav_adder' ); add_action( 'bp_template_content', 'profile_buddyboss_child_loop' ); bp_core_load_template( apply_filters( 'bp_core_template_plugin', 'members/single/plugins' ) ); function buddyboss_child_bp_nav_adder() { global $bp; $post_count = count_user_posts_by_type( $bp->displayed_user->id ); bp_core_new_nav_item( array( 'name' => sprintf( __( 'Posts <span>%d</span>', 'my-poems' ), $post_count ), 'slug' => 'Articles', 'position' => 250, 'show_for_displayed_user' => true, 'screen_function' => 'buddyboss_child_list', 'item_css_id' => 'articles', 'default_subnav_slug' => 'public' )); } function buddyboss_child_list() { add_action( 'bp_template_content', 'profile_buddyboss_child_loop' ); bp_core_load_template( apply_filters( 'bp_core_template_plugin', 'members/single/plugins' ) ); } /*------- This is end of the code for above function ---------*/ function profile_buddyboss_child_loop() { $myposts = get_posts( array( 'posts_per_page' => -1, 'author' => bp_displayed_user_id(), 'post_type' => 'post' )); if( ! empty($myposts) ) { foreach($myposts as $post) { setup_postdata( $post ); if (has_post_thumbnail( $post->ID ) ): $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'sidebar-smallthumbnew' ); else : $image[0] = "http:/...com/wp-content/uploads/2015/10/userpost.jpg"; endif; echo '<li class="sidebar mostpop post-' . $post->ID . '"><span id="postimage"><a href="' . get_permalink($post->ID) . '"><img src="' . $image[0] . '" /></a></span><div id="postinfo"><a href="' . get_permalink($post->ID) . '">' . get_the_title($post->ID) . '</a></div></li>'; } echo '</ul>'; wp_reset_postdata(); } else { ?> <div class="info" id="message"> <p><strong><?php bp_displayed_user_fullname(); ?></strong> has No posts.</p> </div> <?php } } /* This is end of the code for above function */ remove_filter('bp_setup_nav',''); function count_user_posts_by_type( $userid, $post_type = 'post' ) { global $wpdb; $where = get_posts_by_author_sql( $post_type, true, $userid, true); $count = $wpdb->get_var( "SELECT COUNT(*) FROM $wpdb->posts $where" ); return apply_filters( 'get_usernumposts', $count, $userid ); } /* ------------------------------This is end of the code for post in profile above function-------------------- */Hi,
Here is a function for the membership 2 pro which outputs the member subscription type:
if ( function_exists('bp_displayed_user_id') && class_exists('Membership_Plugin') && class_exists('Membership_Model_Subscription') ) { $user_id = bp_displayed_user_id(); $user = Membership_Plugin->factory()->get_member($user_id); $subs = $user->get_subscription_ids(); if ( is_array($subs) ) { $sub = array_pop($subs); $subscription = new Membership_Model_Subscription($sub)); echo $subscription->sub_name(); } }Now what filter I need to add to it, and hook to called as i need to display the output on members profiles.
Help is much appreciated!
Thanks
those two dont work together anymore for me. it doesnt show the post button anymore i cant post anything to my walls. only if i disable the plugin (which makes private posts public again) it works. is there any alternative or anyone who has the same problem and was able to fix it?
thanks! freaky.
Topic: profile not found
running wordpress and Buddypress locally with WAMP. will the disable profile view? Running the newest versions including most recent BP update
Topic: BuddyPress 2.4.0 – Pietro
Hi everyone, we’re very excited to announce BuddyPress 2.4.0 Pietro is available for download/upgrade.
Here’s the post announcing the release: https://buddypress.org/2015/11/buddypress-2-4-0-pietro/
PS: this was my first time releasing a major version 🙂
—
Reported issues with fix:
- Cosmetic issue with BuddyPress Activity Privacy plugin – reported fix to plugin author:
https://buddypress.org/support/topic/buddypress-2-4-0-and-buddypress-activity-privacy/#post-246630 - Fatal error: Call to undefined method stdClass::save() in Extended Profiles component – caused by the WOFFICE theme and their Birthday extension. Fix should be available from the WOFFICE theme authors:
https://buddypress.org/support/topic/fatal-error-call-to-undefined-method-stdclasssave/
Issues needing verification:
If you can replicate any of the following, please reply in the threads below with clear steps to duplicate.
- Radio and checkbox profile fields do not work properly (might be specific to the KLEO theme only):
https://buddypress.org/support/topic/bp-2-4-0-profile-fields-registration-problem/
https://buddypress.org/support/topic/buddypress-2-4-0-profile-fields-broken/
—
Please do not report issues in this thread. Create a new topic and tag with
2.4.I am using BuddyPress on my school’s multisite and I am having many issues.
Groups
-When someone attempts to request to join nothing happens the button appears to not work
-I cannot invite people into the group, so the only functional way is to have the admin add them from the dashboard view.Profile
-Users can upload profile pictures (in theory) however I was not able to upload a picture. I kept getting a http error.Activity Feed
-I can’t post things on any activity feed(mine or someone elses), the button doesn’t seem to respond to being clicked (the same issue repeats itself for commenting on activity)
-Photos, links, and videos will not load up in the preview of the post (this one is connected to BuddyPress Activity Plus)
-I attempted to delete something on the activity feed (Me updating my username) but it would not delete, not sure if it’s the button or me trying to delete something other than a status update
-the Favorite button was unresponsiveMessaging
-Private messaging worked originally only worked for me. If someone else tried to create their own conversation it would give an error. If they tried to answer mine the button seemed unresponsive.Issues continued on multiple themes.
Thank you in advance!
Which version of WordPress are you running?
4.3.1Did you install WordPress as a directory or subdomain install?
Directory installationIf a directory install, is it in root or in a subdirectory?
Buddy press is activated on a per site basis in a multi-site, multi-network installation.Did you upgrade from a previous version of WordPress? If so, from which version?
Yes, initial version of wordpress installed with 3.5, currently running v4.3Was WordPress functioning properly before installing/upgrading BuddyPress (BP)? e.g. permalinks, creating a new post, commenting.
YesDo you have any plugins other than BuddyPress installed and activated? If so, which ones?
BuddyPress Activity PlusAre you using the standard WordPress theme or customized theme?
Standard, currently using twenty fifteenDid you upgraded from a previous version of BP? If so, from which version?
No, this is the initial installation of BPHave you modified the core files in any way?
NoDo you have any custom functions in bp-custom.php?
NoIf running bbPress, which version? Or did your BuddyPress install come with a copy of bbPress built-in?
BP v2.3.4Please provide a list of any errors in your serverÂąs log files.
I did not find any errors in the system error logs.Which company provides your hosting?
We do not host, we own the infrastructure this is running on.Is your server running Windows, or if Linux; Apache, nginx or something else?
RHEL 2.6.32-573.1.1.el6.x86_64 with Apache 2.2.15, php v5.3.3Hi. I’m new to buddypress, so I have a question. I want to change how my site looks. This is how it looks now

I need to shift the left part of the site to the middle of the screen. I just can’t figure out shich file to edit in theme/plugin editor.hi Guys,
I’m new to Buddypress but plan to use it on a new website.
I’d like to be able to create buddypress users and buddypress groups automatically in PHP. Can you point me to any good documentation on this (any advice on any files etc I need to include would be greatly appreciated).
many thanks
PS
I’m using WordPress 4.3.1 and Buddypress 2.3.4
- Cosmetic issue with BuddyPress Activity Privacy plugin – reported fix to plugin author: