Drupal Answers is a question and answer site for Drupal developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a way to change the wording of "Member since" to something else?

share|improve this question

You could put this in your settings.php

$conf['locale_custom_strings_en'][''] = array(
   'Member since'      => 'Your new label',
);

Or you could change it in the form by preprocessing that form. I think there are also language modules that allow you to change phrases/labels site-wide.

share|improve this answer

The module String Overrides: http://drupal.org/project/stringoverrides lets you replace virtually any string with another string.

Some of its features (from project page):

  • Easily replace anything that's passed through t()
  • Locale support, allowing you to override strings in any language
  • Ability to import/export *.po files, for easy migration from the Locale module
  • Note that this is not a replacement to Locale as having thousands of overrides can cause more pain then benefit. Use this only if you need a few easy text changes.
share|improve this answer

If you want to replace any occurrence of that string, then you can use the following method:

  • In Drupal 6, add the following code to the settings.php file.

    $conf['locale_custom_strings_en'] = array(
      'Member since' => 'The string you would use',
    );
    
  • In Drupal 7, add the following code to the settings.php file.

    $conf['locale_custom_strings_en'][''] = array(
      'Member since' => 'The string you would use',
    );
    
  • For Drupal 6, and 7, you can use the String Overrides module, which has the pro of not requiring to edit the settings.php file. It is quite simpler to change the strings from a administration page, than editing a file present in the webserver, and to which few people should have access.

In Drupal 7, it would be possible to alter only the string used in the user profile with hook_user_view_alter(), such as with the following code added to a module.

function mymodule_user_view_alter(&$build) {
  if (isset($build['summary']['member_for']['#title'])) {
    $build['summary']['member_for']['#title'] = 'The string you would use';
  }
}
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.