Adding some cool “Call to Action” buttons to stream entries
When something happens within your BuddyPress Community, you usually want others to respond to this activity. That’s the whole core concept of Social networking. By default BuddyPress adds a “Reply” and “Favorite” button to activity stream items, and while this is cool, for some entries you would like the user to go somewhere. This simple snippet will add a additional button which points them in the right direction.
Add the following code to your Child Themes Functions.php or add it to BP-Custom.php in your plugin folder
/* Add Cool Buttons to Activity Stream Items */
function my_bp_activity_entry_meta() {
if ( bp_get_activity_object_name() == 'blogs' && bp_get_activity_type() == 'new_blog_post' ) {?>
View Blog Post
View Blog Comment
View Activity Status
View Forum Thread
View Forum Reply
You’ll now have some neat buttons which call your user to action! Here’s an example for a blog post entry:

Credits
[bc_member name="etiviti" size="80" fields="About me,Website,Twitter Name"]
Looking for quality BuddyPress hosting? We will guide you through all the available hosting options and help you find the best webhost for your next BuddyPress project!

Say I wanted View Blog Post to be listed before Favorite. Is there a way to determine the order in which those buttons are displayed?
Nice. Added these to my site’s activity stream — every little thing that helps users understand where and how things fit together on a BP site is very useful indeed.
Can anyone confirm that this works A-okay with BP 1.5?
Same question. Anyone
It works in BP 1.5! At least it does for me!
The code shows only links on my website, no buttons.
How do I add the buttons like in the screenshot?
I added the css for buttons
but there is another problem. This code seems to cut (truncate) the url if the url is very long
if ( bp_get_activity_object_name() == ‘groups’ && bp_get_activity_type() == ‘new_forum_topic’ ) {?>
Reply