CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Struggles with Nicknames
Pages: [1]

Author Topic: Struggles with Nicknames  (Read 6741 times)

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Struggles with Nicknames
August 20, 2013, 06:40:10 pm
Has no-one else tried to incorporate nicknames into display names?

2 things

1) the name quick edit - nick name is missing - is it a configuration, an oversight or a design choice?
2) I really would like display name to include the nick name but the only way I seem to be able to do it is to use it instead of first_name. Which is a problem if not everyone has a nickname! I can't say 'prefer' nickname & I can't put brackets around it if it exists because the conditional is only after (& I think only accepts certain characters).

Eileen
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: Struggles with Nicknames
August 20, 2013, 11:28:37 pm
I have not tried to include nick_name in the display names. But what you are trying to do sounds totally logic to me? Does that mean we both have a weird mind then?
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Struggles with Nicknames
August 21, 2013, 05:28:15 am
Perhaps I need to grow up & use standard NZ naming conventions - under which you would be Hey you Hommel & X would be Hey you Du Toit  an we would be led by Hey you Lobo
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Struggles with Nicknames
August 21, 2013, 05:19:32 pm
A few years back I got pretty ambitious for the Woolman website and deployed a bunch of custom hooks to make contact names work the way I thought they should:
- Display name should use nickname if available
- When filling out a profile or webform, nickname should not overwrite first_name if it is entered in the first_name field
- Dedupe matching should query on nick_name OR first_name for all queries
- Nick name token should supply first name if nick_name doesn't exist
- Names should be capitalized automatically for end-users too lazy to use the shift key (and uncapitalized for those with CAPS LOCK on)
- And some other stuff

All that stuff is still in place and still works even on 4.3. You're welcome to browse/borrow any of the code. For example https://github.com/woolman/drupal-modules/blob/master/woolman_website/woolman_website.module#L400
Try asking your question on the new CiviCRM help site.

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Struggles with Nicknames
August 21, 2013, 06:11:38 pm
Which all completely makes sense!! Thanks I'll take a look
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Struggles with Nicknames
August 22, 2013, 01:22:05 pm
I've been toying with the idea of putting that code into an extension and making the different pieces configurable so site admins can pick & choose which nifty things they do and don't want.
I'd do it if you were up for co-maintaining it :)
Try asking your question on the new CiviCRM help site.

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Struggles with Nicknames
August 22, 2013, 02:23:03 pm
hmm - let me think about that. I've been leaning towards making a blanket statement that I provide no free support or upgrade guarantees on extensions.

The other thing is I don't understand why you should have to install an extension to get nick name handled as a token in display name & available for searching. (For the validation stuff I do see a case for it to be as an extension)
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Struggles with Nicknames
August 22, 2013, 11:03:18 pm
Hi,

I have already an extension for the capitalisation problem (that tries to do it at the UI level as a tool to let the user chose a sane capitalisation)

https://github.com/TechToThePeople/civicrm-normalise
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Struggles with Nicknames

This forum was archived on 2017-11-26.