Search Results for 'buddypress'
-
Search Results
-
Here’s my issue. I built a custom child theme for buddypress. My issue is that I import the CSS from buddypress and I modify the buddypress files shown in theme editor to add things like an addition sidebar and such.
Here’s my problem. When I update buddypress, the new files overwrite my changes each time. I think it’s because I modifed the original buddypress theme.
So, should I just download the theme BEFORE I upgrade then upload again later? That seems like the simple solution. I would have to download my child theme and download the default buddypress theme as well.
Does this make sense? Maybe I’m doing this wrong. I’m open to ideas and suggestions.
The bp_get_activity_latest_update function uses straight quotes, and I’m just anal retentive enough that it’s bugging me. I know where and how to edit the core code to fix this, but I wonder if there’s a better way. Anybody have any idea how I could write a plugin that would fix it?
The following code:
function bp_get_activity_latest_update( $user_id = false ) {global $bp;
if ( !$user_id )
$user_id = $bp->displayed_user->id;
if ( !$update = get_usermeta( $user_id, 'bp_latest_update' ) )
return false;
$latest_update = '"' . trim( strip_tags( bp_create_excerpt( $update['content'], 40 ) ) ) . '"';
$latest_update .= ' · root_domain . '/' . BP_ACTIVITY_SLUG . '/p/' . $update['id'] . '/"> ' . __( 'View', 'buddypress' ) . '';
return apply_filters( 'bp_get_activity_latest_update', $latest_update );
}
Should be this instead:
function bp_get_activity_latest_update( $user_id = false ) {global $bp;
if ( !$user_id )
$user_id = $bp->displayed_user->id;
if ( !$update = get_usermeta( $user_id, 'bp_latest_update' ) )
return false;
$latest_update = '“' . trim( strip_tags( bp_create_excerpt( $update['content'], 40 ) ) ) . '”';
$latest_update .= ' · root_domain . '/' . BP_ACTIVITY_SLUG . '/p/' . $update['id'] . '/"> ' . __( 'View', 'buddypress' ) . '';
return apply_filters( 'bp_get_activity_latest_update', $latest_update );
}
Or perhaps it should just throw plain vanilla straight quotes in there (instead of the character entity code) and let wptexturize curl them the best-practices way.
At any rate, short of editing the core code, what’s the best way to go about fixing this?
Topic: child theme questions
Well I narrowed down some of my issues to the buddypress child theme that I created so I figured it best to ask the experts.
1. If I put a functions.php file in my child theme, will bp load the functions.php file from the buddypress default theme first and then load my child theme functions file?
2. Some plugins require me to add template files to my theme folder in order to work properly.
–I found that if I did not place the new folder and files into the buddypress master theme first, and then copy them to my child theme, that bp did not recognize them.
–should I have to load any new files to the bp master in order to get bp child theme to recognize them?
