Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: BuddyPress Skeleton Component v1.2 RC-2


BeLogical
Participant

@belogical

yeah, it was in v1.1 for sure. i used it for my first component. i found a reference in /wp-content/plugins/buddypress/bp-example/bp-example-cssjs.php in v1.1. I tried adding this back myself and it didn’t work.

/**
* bp_example_add_activity_bullets_css()
*
* This function will allow your component to dynamically add CSS to themes so that you can
* set the activity feed icon to use for your component.
*/
function bp_example_add_activity_bullets_css() {
?>
li a#my-example, li a#user-example {
background: url(<?php echo site_url( MUPLUGINDIR . \'/bp-example/images/heart_bullet.png\' ) ?>) 88% 50% no-repeat;
}

li.example {
background: url(<?php echo site_url( MUPLUGINDIR . \'/bp-example/images/heart_bullet.png\' ) ?>) 0 8% no-repeat;
}

table#bp-example-notification-settings th.icon {
background: url(<?php echo site_url( MUPLUGINDIR . \'/bp-example/images/heart_bullet.png\' ) ?>) 50% 50% no-repeat;
}
<?php
}
add_action( \'bp_custom_member_styles\', \'bp_example_add_activity_bullets_css\' );
add_action( \'bp_custom_home_styles\', \'bp_example_add_activity_bullets_css\' );

?>

Skip to toolbar