Active
Project:
LoginToboggan
Version:
7.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
5 May 2008 at 04:12 UTC
Updated:
28 Apr 2014 at 23:52 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
hunmonk commentedi'm happy to review and commit a quality patch that accomplishes this, but i have no interest in writing it at this moment.
Comment #2
Fayna commentedCan you use the String Overrides module for this?
Comment #3
kobnim commentedJust wanted to mention that I'm also looking for the ability to customize this message (without hacking the module).
Thanks,
Mindy
Comment #4
baldwinlouie commentedOur 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.
Comment #5
hunmonk commentedlogintoboggan_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']$msgidare generally frowned upon.Comment #6
baldwinlouie commentedI 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.
Comment #7
hunmonk commentedplease submit patches in unified diff format -- the default format is too difficult to read.
Comment #8
baldwinlouie commentedrerolled with unified diff format
Comment #9
navaneeth_r commentedUse localization module to customize displayed message in drupal...
R.Navaneethakrishnan
http://navaneethakrishnan-drupal.blogspot.com/
Comment #10
hunmonk commentedComment #11
luco commentedit 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?
Comment #12
jcarnett commentedIf the module passes the message through t(), you can use String Overrides.
Comment #13
hunmonk commentedplease see http://drupal.org/project/logintoboggan#commitment for more information on how task/feature requests are handled in the module
Comment #14
stevecowie commentedI'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.
Comment #15
drupal_was_my_past commentedI 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 andlogintoboggan_variable.module:logintoboggan_variable_variable_info().Comment #16
olisb commentedThanks 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?
Comment #17
sagannotcarl commentedI manually applied rocket_nova's patch and it works great. Now that there is a patch I'm re-opening this issue.
Comment #18
sagannotcarl commentedHey olisb,
You can change that message by using a theme function override.