Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Blog Comment Link in Activity Stream Broken has ID# Twice


Jeff Sayre
Participant

@jeffsayre

NOTE: Please ignore this post. The same behavior in outputitng codeblocks is still being observed. Refer to the Trac ticket if you’re having the OP’s issue

Alright, we DJPaul’s help, I’ve just learned that what I used to use without issue in the old forums is no longer an option. So, I’ll redo my first post using the &#8216code&#8217 notation.

Here’s the original codeblock:


$comment_link = get_permalink( $comment->comment_post_ID ) . '#comment-' . $comment_id;
$activity_action = sprintf( __( '%1$s commented on the blog post %2$s', 'buddypress' ), bp_core_get_userlink( $user_id ), 'comment_ID . '">' . $comment->post->post_title . '' );

And here’s the corrected codeblock:


$comment_link = get_permalink( $comment->comment_post_ID ) . '#comment-' . $comment_id;
$activity_action = sprintf( __( '%1$s commented on the blog post %2$s', 'buddypress' ), bp_core_get_userlink( $user_id ), '' . $comment->post->post_title . '' );

Skip to toolbar