Modifying default widgets
-
OK I have spent this weekend working on modifying the default BP widgets. Some have been harder to customise than others.
I am having lots of trouble getting the site activity midget changed to how I want it.
bp-blogs.php, bp_blogs_format_activity().
return array(
'primary_link' => $blog_url,
'content' => apply_filters( 'bp_blogs_new_blog_activity', sprintf( __( '%s created a new blog: %s', 'buddypress' ), $user_link, '' . $blog_name . '' ) . ' <span class="time-since">%s</span>', $user_link, $blog_url, $blog_name )
);
This bit
<span class="time-since">%s</span>
is where I’m up. I am assuming the %s goes through another sprinft() call on page generation. I need to know where and how, as it generates output like this which I need to change: & 10 minutes ago
Please help
- The topic ‘Modifying default widgets’ is closed to new replies.