Love the module! Just wanted to mention a possible change.

After signing in, the message says: "Login Successful". Well, I tweaked the code a bit to where, on my site, it now says: "Welcome, username". for example, on my site, when I login it now says: "Welcome, Chris". It adds that little personal touch.

Anyway, I modded the drupal_message in logintoboggan.module to where it's now:

{
drupal_set_message(t(

    'Welcome, %username.', array('%username' => $user->name))
      ); }

      The underlined is what I added. It works perfectly, so I thought maybe it something you could change in the next update, especially since it's something so simple, but adds that personal touch. I attached a text file of the modded logintoboggan.module.

      Thanks for the work you've done and thanks for giving us an awesome module!

      Chris
      www.theparanormalsociety.org

CommentFileSizeAuthor
logintoboggan.txt53.67 KBsgprs
Members fund testing for the Drupal project. Drupal Association Learn more

Comments

hunmonk’s picture

Title: Display Welcome, Username » properly theme login successful message.
Status: Active » Fixed

this should really be properly themed instead.

i've committed theme_lt_login_successful_message($account) to 6.x-1.x-dev and HEAD, so now you can override that theme function in your site's theme with whatever you like. $account is a fully loaded user object that the theme function can use to display name, etc.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.