Take the 2-minute tour ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

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

share|improve this question
add comment

3 Answers

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
add comment

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

share|improve this answer
add comment

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
add comment

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.