Forum Replies Created
-
Actually there is a bug in your CSS file which is the reason it’s not picking up the bp-default as the parent.
In your child theme’s style.css you have:
@import url( ../../plugins/buddypress/bp-themes/bp-default/style.css );This should be:
/* Inherit the default theme styles */
@import url( ../../plugins/buddypress/bp-themes/bp-default/_inc/css/default.css );
/* Inherit the admin bar styles */
@import url( ../../plugins/buddypress/bp-themes/bp-default/_inc/css/adminbar.css );This was totally my fault, and was a mistake in the writeup of how to do it. If you do it this way, you can simply add your style overrides in style.css below those two lines.
@diesellaws: Are you running WordPress 2.9? The bp-default theme will only be picked up in 2.9+, I’ve just tested and it worked fine for me.
Mostly what I mean by not copying over the stylesheet is that you should just override the bits you need to change (colors in your case)…
So in bp-default’s css you might have:
body {
background: #fff;
color: #000;
padding: 25px;
margin: 0;
}Instead of copying that entire declaration, all you need to do in your child theme is:
body {
background: #000;
color: #fff;
}That way you are not duplicating anything, and only overriding and changing what you need.
Looks great! Happy to see people starting to build child themes.
A couple of things I noticed – you probably didn’t need to copy all of the default theme css into your theme. This will be loaded when you call the @import() call to the default theme CSS. At the moment you are basically loading the CSS twice. You actually only need to override the bits you need. By doing that you will gain CSS updates from the default theme when it updates. So if anything new was added to the default in the future, you would inherit the new styles.
Also, in your instructions you mentioned you needed to move the default theme to the themes folder. You definitely shouldn’t do this, WordPress will automatically detect it is in the BuddyPress folder. If you move the default then you will never get any updates when BuddyPress updates – it sort of defeats the purpose.
Could you add this to the WP theme repository? That will allow you to keep track of stats, let people download from within their BP installation, and allow you to provide automatic updates to your theme.
Nice work!
In reply to: HTML tag errors in Activity streamDon’t start working on old versions. If you are looking to build a new design you should be running 1.2RC and 2.9.1+.
If you reset your password it doesn’t send you a new password, you log into the site with a link to reset it.
In reply to: external-group-blogs & group-twitter doesn’t workIf 15 minutes have passed since the last update and someone visits the group, it will update again. I’ll look into that link, but after 1.2 is released.
In reply to: Site Wide Activity stream not workingI’m closing this thread since the problem no longer matches the thread title, please start a new thread with the new problem.
In reply to: Site Wide Activity stream not workingDon’t hack the code like that, you will only cause problems down the road. If the time since is not working in the trunk, there is something wrong. All times are recorded in GMT.
In reply to: How to: Get template tag info outside the loopforeach ( $user_ids as $user_id )
echo bp_core_get_userlink( $user_id );In reply to: group problemIn reply to: activity-stream and wp-media-pluginsShould be possible by using the activity content filter.
In reply to: New comments in activity 1.2 brings thread on topThere isn’t a way no. I still think this is a bad idea. You wouldn’t expect a blog post to move to the top when there’s a new comment. It’s chronological based on the original post date.
In reply to: Just updated to BP1.2beta & WPMU2.9.1.1Be sure to read this:
https://codex.buddypress.org/how-to-guides/building-a-buddypress-child-theme/
In reply to: Forum and Group bugsIf fact, this is a problem with your theme, please follow the instructions on this post for upgrading:
In reply to: Forum and Group bugsIn reply to: Is there an Action available upon Joining a Groupdo_action( 'groups_join_group', $group_id, $user_id );In reply to: Vote up/down pluginSomeone could build this sort of thing for the activity stream using the activity_meta table.
In reply to: Install BP in a Sub-BlogThis info should go in the codex, who’s up for it?
Change the function names.
In reply to: external-group-blogs & group-twitter doesn’t workThey will only work with trunk NOT the 1.2 beta.
In reply to: external-group-blogs & group-twitter doesn’t workAre you using the newest versions? 1.1?
In reply to: New comments in activity 1.2 brings thread on topThere is a built in option in the core, pass ‘show_comments=stream’ as a parameter into the bp_has_activities() loop. This will show new comments at the top of the stream.
The next step in future versions would obviously be to create a nice API that abstracts away most of this.
Looks good, but you don’t need to copy the template. Just add this function in your child theme’s functions.php file (or wherever you put the other code):
function my_theme_add_activity_tab() {
if ( !is_user_logged_in() )
return false;
?>
<li id="activity-myclass">
<a href="<?php echo site_url( BP_ACTIVITY_SLUG . '/#myclass/' ) ?>" title="<?php _e( 'Activity for my Class Year.', 'buddypress' ) ?>">
<?php printf( __( 'My Class', 'buddypress' ) ) ?>
</a>
</li>
<?php
}
add_action( 'bp_activity_type_tabs', 'my_theme_add_activity_tab' );In reply to: WordPress Attachment Nightmare..Just change the upload path setting and filter the location, not a big deal.