Skip to:
Content

BuddyPress.org

Opened 12 years ago

Closed 12 years ago

Last modified 12 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's profile funnycat777 Owned by:
Milestone: Priority: normal
Severity: normal Version: 1.2
Component: Members 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 12 years ago.

Download all attachments as: .zip

Change History (6)

#1 @r-a-y
12 years ago

  • Component changed from Activity to Members
  • Summary changed from Activity comments remove the second part of the display name when there are spaces to "What's new" string in activity post form shows only first word of name
  • Version changed from 1.6.1 to 1.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
12 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

#3 @funnycat777
12 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
12 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 12 years ago by r-a-y (previous) (diff)

#5 @funnycat777
12 years ago

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

Note: See TracTickets for help on using tickets.