Author Topic: Notice when first login  (Read 5507 times)

Offline inboxdesign

  • Newbie
  • *
  • Posts: 4
Notice when first login
« on: February 05, 2007, 09:02:24 PM »
Hi, Does any one no how i can display a notice when the user logs in for the first time, or even more advanced, when they log in untill they have edited their identity in their prefrences pane?

Code: [Select]
//for instance
if($first_login || empty($identity)){
  show_message("firstlogin");
}


//then in the messages inc ...
/locals/language/messages.inc

$messages['firstlogin'] = 'Please update your profile in the identities preference pane';


Thanks

Offline bugler

  • Jr. Member
  • **
  • Posts: 54
Re: Notice when first login
« Reply #1 on: February 09, 2007, 04:22:12 AM »
Hi,

you can read the user last access and if there is none show the message. The same with the identities: if there is no identity show the message.

Hope this helps.