custom messages

agilpwc - May 5, 2008 - 04:12
Project:LoginToboggan
Version:7.x-1.x-dev
Component:User interface
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs work
Description

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."

#1

hunmonk - May 5, 2008 - 20:37

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

#2

Fayna - June 9, 2008 - 02:39

Can you use the String Overrides module for this?

#3

kobnim - July 13, 2008 - 03:06

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

#4

baldwinlouie - December 23, 2008 - 23:19
Status:active» needs review

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.

AttachmentSize
logintoboggan.254732.patch 4.19 KB

#5

hunmonk - December 26, 2008 - 14:49
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.

#6

baldwinlouie - December 29, 2008 - 19:00
Status:needs work» needs review

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.

AttachmentSize
logintoboggan.254732_1.patch 3.37 KB

#7

hunmonk - January 3, 2009 - 17:53
Status:needs review» needs work

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

#8

baldwinlouie - January 6, 2009 - 08:17
Status:needs work» needs review

rerolled with unified diff format

AttachmentSize
logintoboggan.254732_2.patch 5.29 KB

#9

nav18scse - January 6, 2009 - 09:18

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

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

#10

hunmonk - March 24, 2009 - 12:59
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

#11

luco - May 27, 2009 - 14:30

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?

#12

jcarnett - October 16, 2009 - 20:54

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

 
 

Drupal is a registered trademark of Dries Buytaert.