It would be nice if you could customize the message that displays on the screen after a user registers.
Currently it is hard coded to "A validation e-mail has been sent to your e-mail address. In order to gain full access to the site, you will need to follow the instructions in that message."

Comments

hunmonk’s picture

i'm happy to review and commit a quality patch that accomplishes this, but i have no interest in writing it at this moment.

Fayna’s picture

Can you use the String Overrides module for this?

kobnim’s picture

Just wanted to mention that I'm also looking for the ability to customize this message (without hacking the module).
Thanks,
Mindy

baldwinlouie’s picture

Status: Active » Needs review
StatusFileSize
new4.19 KB

Our project requires custom mesages as well.

Here's my attempt to submit a patch that does this. I made the preauth welcome message, the regular welcome message and the successful validation messages configurable in the Logintoboggan admin screen.

hunmonk’s picture

Status: Needs review » Needs work
  • have a look at logintoboggan_uninstall() to see how the variables are named for the module. specifically, full module name prefix, and not much in the way of word abbreviation.
  • '#tree' => FALSE, is unnecessary in $form['messages']
  • the descriptions for all of the new settings are not clear, and have poor grammer.
  • abbreviated variable names like $msgid are generally frowned upon.
baldwinlouie’s picture

Status: Needs work » Needs review
StatusFileSize
new3.37 KB

I rerolled the patch with your suggestions. I added to the logintoboggan_uninstall() to delete the variables I created. Let me know if things are still weird.

hunmonk’s picture

Status: Needs review » Needs work

please submit patches in unified diff format -- the default format is too difficult to read.

baldwinlouie’s picture

Status: Needs work » Needs review
StatusFileSize
new5.29 KB

rerolled with unified diff format

navaneeth_r’s picture

Use localization module to customize displayed message in drupal...

R.Navaneethakrishnan
http://navaneethakrishnan-drupal.blogspot.com/

hunmonk’s picture

Title: customize registration message » custom messages
Version: 5.x-1.2 » 7.x-1.x-dev
Status: Needs review » Needs work
  • this should be solved in a generic way for all LT messages that can be displayed
  • new featues go in 6.x, not 5.x
luco’s picture

it would be nice to be able to select the color code for such messages.

I think a red message is too harsh; should only be used when real damage can occur. that may be the case for some.

other users might prefer green, but it's too nice for me. yellow, on the other hand, says "pay attention" (duh). and there is always the option of using no colour at all - or I hope there will be ;)

what I'm getting at is, let the user choose at its discretion. right?

jcarnett’s picture

If the module passes the message through t(), you can use String Overrides.

hunmonk’s picture

please see http://drupal.org/project/logintoboggan#commitment for more information on how task/feature requests are handled in the module

stevecowie’s picture

Status: Needs work » Closed (won't fix)

I'm closing this as there have been no recent patches submitted. The suggestions of using String overrides is a satisfactory workaround for anyone who has a pressing need.

drupal_was_my_past’s picture

Issue summary: View changes
StatusFileSize
new13.06 KB

I know this is an old issue and a feature request that has been made many many times over the past several years in many different issue numbers. I still want this and I don't want to use String Overrides, so I wrote a patch against 7.x-1.3 for my own use. I've attached it here in case the module maintainers want to incorporate it or other people find it helpful for patching LoginToboggan for their projects. I am not going to re-open this issue. I'm going to let the maintainers do that if they want to.

This patch creates variables for messages used in various drupal_set_message()s throughout the module. It also adds them to the admin/config/system/logintoboggan form and logintoboggan_variable.module:logintoboggan_variable_variable_info().

olisb’s picture

Thanks for this rocket_nova but I can't see that your patch allows me to change the:
"Log in successful for !username." message...
Do you know how I would do that?

sagannotcarl’s picture

Status: Closed (won't fix) » Active

I manually applied rocket_nova's patch and it works great. Now that there is a patch I'm re-opening this issue.

sagannotcarl’s picture

Hey olisb,
You can change that message by using a theme function override.

/**
 * Theme the login successful message.
 *
 * @param $account
 *   A user object representing the user being logged in.
 */
function THEMENAME_lt_login_successful_message($variables) {
  return t('Log in successful for %name.', array('%name' => format_username($variables['account'])));
}