phpScheduleIt
June 18, 2013, 05:44:06 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: phpScheduleIt 2.4.2 has been released!
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: User name in emailheader.tpl  (Read 259 times)
intelek
Newbie
*

Karma: 0
Posts: 18


« on: May 03, 2012, 01:18:56 PM »

Hi there

I'd like to have the user name in emailheader.tpl, is there a simple way to get it? I tried to call to RegisterFunctions(), using this
Code:
$this->registerPlugin('function', 'fullname', array($this, 'DisplayFullName'));
in SmartyEmail.php, and calling {fullname} from emailheader.tpl, but it didn't work.

Thanks in advance
Logged
intelek
Newbie
*

Karma: 0
Posts: 18


« Reply #1 on: May 04, 2012, 11:51:22 AM »

I can answer myself.
Added this piece of code:
Code:
$this->Set('Name',$this->reservationOwner->FullName());
to PopulateTemplate() in ReservationEmailMessage.php, and {$Name} to emailheader.tpl

I leave this for anyone who could help.

Thanks
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5506


WWW
« Reply #2 on: May 08, 2012, 01:44:16 PM »

Thanks!
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2006-2007, Simple Machines Valid XHTML 1.0! Valid CSS!