Hi,
You can have their display name on profile header without activating activity component. In the code, you posted they are just checking if user mention is enabled then just echo the name to be used for mentioning them in the activity.
Thanks
@prashantvatsh thanks for the reply.
Is this area where the username is supposed to appear?
OR does nouveau rely on the page title for the username?
And this bp_displayed_user_mentionname() is meant to only do mention replies?
That was it, I guess the_title is the display name now for the profile and this other displayed_user_mentionname is another displayed name on the same page(?!). But where the mentionname is, is where ideally a profile name should always be I thought. If you turn off activity, the displayed_user_mentionname – does – disappear. I had removed the_title on profile pages because of their placement a while ago. 🙂
so in cover-image-header.php
<?php if ( bp_is_active( 'activity' ) && bp_activity_do_mentions() ) : ?>
<h2 class="user-nicename">@<?php bp_displayed_user_mentionname(); ?></h2>
<?php else:?>
<h2 class="user-nicename"><?php the_title(); ?></h2>
<?php endif; ?>
would be I guess what I was expecting.
Thanks for the help
Hi,
You are getting username using this the_title();
? I think you should use bp_displayed_user_username()
In Nouveau, where is bp_displayed_user_username in members/single template? @prashantvatsh
It is not in that file but I suggested to use this instead of the_title.
I see thanks! I went ahead and did just that!