Search Results for 'buddypress'
-
Search Results
-
Hi all,
I am creating a widget to display sitewide posts with a few changes to the default one that comes with BuddyPress.
Is there any changes to the_loop that I should take into consideration?
I want to use the loop code provided by Justin Tadlock as a base.
I have made a few changes, have the title, avatar & post excerpt working but I can’t get the_ID(), edit_post_link(), comments_popup_link, the_tags() & the_category() working correctly.
I am using
<?php $posts = bp_blogs_get_latest_posts( null, $instance['max_posts'] );
if ( $posts ) : foreach ( $posts as $post ) : ?>
<a href="<?php echo bp_post_get_permalink( $post, $post->blog_id ) ?>"
title="<?php echo apply_filters( 'the_title', $post->post_title ) ?>">
<?php echo apply_filters( 'the_title', $post->post_title ) ?></a>
<?php endforeach; endif; ?>which does get the correct title & link perfectly, but any tips on getting the categories & tags, as well as the correct edit_post_link assigned to the posts in the results?
I’m currently trying to integrate my design with the Buddypress Member Skeleton, but I’m having problems to successfully call the functions from the main Buddypress home theme.
I would for instance like to use the breadcrumbs function located in my Buddypress home theme. I guess it would suffice to call it from the Member theme’s functions.php?
How would I do that?
Basically I want my Member theme to access my functions and jquery located in wp-content/themes/bphome/library/js and wp-content/themes/bphome/library/functions.
Thanks for the input everyone!
Hi all!
I want to have specific avatars as defaults when a person hasn’t uploaded his own avatar. I don’t want identicons, monsters, mystery man or the other defaults in Buddypress.
I’ve tried using the Ravatar plugin for WordPress but it doesn’t override Buddypress it seems.
I’ve read all the forumposts with avatar mentioned.
I’m using the latest WP+BP and only events-plugin.
Any clues?
Continuing from this thread: Fresh start with a slightly shifted focus and more descriptive topic title.
I’m trying to come up with a plugin that guarantees that first_name + last_name are stored in wp_usermeta for every user.
At the moment BP only stores these values when users update their profile, so you can never count on them being there for other scripts, like a mailing list or event registration.
The existing profile update synchronize function is an obvious starting point: xprofile_sync_wp_profile()
This function takes the logged-in user’s fullname database field, splits it into first and last name, and stores the result in wp_usermeta.
Instead of taking $fullname from the database I’ve tried to figure out how to take it from the registration form directly and store it on registration. That was a dead end.

Looking for examples in other plugins I see that Paul Gibbs’ Welcome Pack uses the wpmu_activate_user action. That should work for my purposes as well; every user that’s activated gets first and last name in wp_usermeta.
Where do I get the $fullname from? The first function in the Welcome Pack plugin has these “$thingies” between the () – what do you call those?:
function dp_welcomepack_welcomemessage( $user_id, $password, $meta )I know the input for fullname (field_1) is somehow included in that $meta stuff. How? I have no clue…
Here’s what I have so far:
function synchro_wp_usermeta($user_id, $meta) {
global $bp, $wpdb;
$fullname = GET FROM THE REGISTRATION FORM INPUT???
$space = strpos( $fullname, ' ' );
if ( false === $space ) {
$firstname = $fullname;
$lastname = '';
} else {
$firstname = substr( $fullname, 0, $space );
$lastname = trim( substr( $fullname, $space, strlen($fullname) ) );
}
update_usermeta( $bp->loggedin_user->id, 'nickname', $fullname );
update_usermeta( $bp->loggedin_user->id, 'first_name', $firstname );
update_usermeta( $bp->loggedin_user->id, 'last_name', $lastname );
$wpdb->query( $wpdb->prepare( "UPDATE {$wpdb->users} SET display_name = %s WHERE ID = %d", $fullname, $bp->loggedin_user->id ) );
$wpdb->query( $wpdb->prepare( "UPDATE {$wpdb->users} SET user_url = %s WHERE ID = %d", bp_core_get_user_domain( $bp->loggedin_user->id ), $bp->loggedin_user->id ) );
}
add_action( 'wpmu_activate_user', 'synchro_wp_usermeta' );Getting another coffee now, digging further through the Welcome Pack plugin next. Any pointers very much appreciated!
Topic: Blog Post from Front End
I haven’t really found anything about this yet.
I have been able to set up a form on the front end within a custom component to make a post to an individuals blog. My problem is I am trying to use the save() method to update the bp_users_blogs_posts table to reflect this on the buddypress end of things. I can get it to update the wp_bp_user_blogs_posts table, but I need to update the post_id column with newly added posts id. Any Help would be great … thanks
Hi All,
I just installed buddypress and try to get the navbar at the top of my website:
Can you help me getting it back. It’s there on the dashboard and on the wordpress theme but not on the one I am trying to work with.
Thanks
I’m trying to learn how to customize BP but I feel I don’t understand the fundamentals that make BP what it is. Why are there two theme folders (bp-themes and themes) and do I need to edit files in both? How does this site place blog posts on the front page? Looking through the admin panel in widgets, I noticed there wasn’t a drag and drop function for “blog posts”.
I’m familiar with customizing WordPress themes but Buddypress seems different. I would appreciate some guidance as I feel I’m missing something obvious.
