Group Mods

  • Profile picture of @mercime
  • Profile picture of r-a-y
  • Profile picture of Hugo

de-activate username link in forums (2 posts)

Started 2 years ago by: Damon Cook

  • Profile picture of Damon Cook Damon Cook said 2 years ago:

    I’m thinking I need to filter bp_the_topic_last_poster_name? Basically, I want to de-activate the link on any of the usernames in the forum. I’m in my theme’s forums-loop.php, and seeing the bp_the_topic_last_poster_name as displaying the username link so I’m thinking this is where the fun starts? Help or suggestions would be appreciated? Is bp_the_topic_last_poster_name even a BP core function?

  • Profile picture of rich! @ etiviti rich! @ etiviti said 2 years ago:

    correct, have a look at the function/filter bp_get_the_topic_last_poster_name (in bp-forums.templatetags.php)

    return apply_filters( ‘bp_get_the_topic_last_poster_name’, ‘‘ . $forum_template->topic->topic_last_poster_nicename . ‘‘ );

    *edit – annoying we can’t post code here…