Skip to:
Content
Pages
Categories
Search
Top
Bottom

Comment authors are not linked to their profile

  • @nickrita

    Participant

    Hi,

    on my site http://www.netzkritzler.de (wpmu 2.4.8a, bp 1.1.2) the comment authors are not linked to their buddypress profile. I though they would be by default?

    Or do I need a plugin? Which one?

    Thanks for help

    Rita

Viewing 11 replies - 1 through 11 (of 11 total)
  • @nickrita

    Participant

    So, I try to find a solution.

    When I commentet Andy’s last post here, my nickname wasn’t linked to my profile, but a lot of other nicknames were.

    Why isn’t my nickname linked, but the other’s are?

    Maybe the answer to this question will be the solution to my problem.

    @nickrita

    Participant

    Please, doesn’t anybody know a solution? I can’t make my site public as long as the comment-author-problem isn’t solved.

    @nickrita

    Participant

    Okay, it took some tests and now there is the solution:

    The comment-authors are only linked to their profile, if the profile has content.

    @xevo

    Participant

    I haven’t tried this myself yet, but I think the way to call a user profile link is bp_user_link(). Try that.

    @lriggle

    Participant

    To get my blog comments to link to their Buddypress Member profiles, I had to create a custom comment function (explained here: https://codex.wordpress.org/Template_Tags/wp_list_comments ) and then create a link around the avatar. In the link I used <?php echo bp_core_get_userlink( $comment->user_id, false, true ) ?> as the href value.

    @member11

    Participant

    Thanks Lriggle.

    Pardon my ignorance. Which file do you you edit and where do you place the code for this?

    Alternatively, is there a way to add some default content to a user’s profile on creation, so that the link immediately goes bacl to their BP Profile?

    Paul

    @member11

    Participant

    For future reference –

    I tried setting a default value in a multiselect box for all new users.

    The member comment link doesn’t redirect immediately to the member’s profile, but it did work when I clicked ‘Save Changes’ in edit profile > even though I didn’t manually edit any content as such.

    So my theory (assuming no other fix), is to direct new members to their profiles after registration. Once they’ve saved changes then all should be ok.

    @Lriggle

    I’d still be interested to know more about your solution above…. as well.

    @lriggle

    Participant

    @member11

    The theme I’m building is a parent theme, so I put the code I posted above in the single.php file. This is the page that shows a single blog post.

    @henrybaum

    Participant

    Why are basic things so complicated in BP? This should be done by default. Anyway.

    That’s the full code to add in single.php? Wondering also where it goes. Not working under:

    <?php comments_template(); ?>

    @xevo

    Participant

    @ Henry: The comments template can be found in the comments.php file. Although you will have to create your own comments loop if you want to add something like this.

    ( Normally themes use “wp_list_comments()”, including the 1.2 new bp theme )

    @henrybaum

    Participant

    I’m still not getting this to work. Any hints where this can go?

    <?php echo bp_core_get_userlink( $comment->user_id, false, true ) ?>

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Comment authors are not linked to their profile’ is closed to new replies.
Skip to toolbar