Skip to:
Content

BuddyPress.org

Opened 14 years ago

Closed 14 years ago

Last modified 13 years ago

#4757 closed defect (bug) (no action required)

"What's new" string in activity post form shows only first word of name

Reported by: funnycat777 Owned by:
Priority: normal Milestone:
Component: Members Version: 1.2
Severity: normal Keywords:
Cc:

Description

How to replicate:
WP 3.5
BP 1.6.2

  1. Go to profile, and change the name so that you have two words or more in your display name.
  2. Go to activity page. The activity comment will show, "What's new, ABC?", where it only shows the first word of the display name.

Attachments (1)

screenshot.jpg (41.1 KB ) - added by funnycat777 14 years ago.

Download all attachments as: .zip

Change History (6)

#1 @r-a-y
14 years ago

  • Component ActivityMembers
  • Summary Activity comments remove the second part of the display name when there are spaces"What's new" string in activity post form shows only first word of name
  • Version 1.6.11.2

This has always been like that.

The rationale behind this is so it would emulate a first name. If you don't like this, you can either:

  1. Filter 'bp_get_user_firstname' so that it returns the full display name instead of only the first word of the name; or:
  2. Change the function call (from bp_get_user_firstname() to bp_get_loggedin_user_fullname()) within the template (activity/post-form.php) to use the full display name.

#2 @DJPaul
14 years ago

  • Milestone Awaiting Review
  • Resolutioninvalid
  • Status newclosed

#3 @funnycat777
13 years ago

I would like to try your workaround.
Where is activity/post-form.php located?
I cannot find a folder called activity nor the post-form.php template.

#4 @r-a-y
13 years ago

If you are using a child theme of bp-default, copy /wp-content/plugins/buddypress/bp-themes/bp-default/activity/post-form.php to your theme. (Make sure you keep the subdirectory structure intact.)

Then, make your changes in your theme's post-form.php.

Last edited 13 years ago by r-a-y (previous) (diff)

#5 @funnycat777
13 years ago

Thank you very much. The workaround (renaming tobp_get_loggedin_user_fullname) worked!

Note: See TracTickets for help on using tickets.