phpScheduleIt
June 18, 2013, 05:44:06 PM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
: phpScheduleIt 2.4.2 has been released!
Home
Help
Login
Register
phpScheduleIt
>
Help and Support
>
phpScheduleIt 2.x
>
User name in emailheader.tpl
Pages: [
1
]
« previous
next »
Print
Author
Topic: User name in emailheader.tpl (Read 259 times)
intelek
Newbie
Karma: 0
Posts: 18
User name in emailheader.tpl
«
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
Re: User name in emailheader.tpl
«
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
Re: User name in emailheader.tpl
«
Reply #2 on:
May 08, 2012, 01:44:16 PM »
Thanks!
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> Announcements
=> Open Discussion
=> Donations
-----------------------------
Help and Support
-----------------------------
=> phpScheduleIt 2.x
=> EspaƱol
=> phpScheduleIt 1.2.x
=> phpScheduleIt 1.1.x
=> New Features and Suggestions
=> Developers
-----------------------------
Bugs
-----------------------------
=> phpScheduleIt 1.2.x
=> phpScheduleIt 1.1.x
-----------------------------
Modifications
-----------------------------
=> Post Modifications
=> Request Modification
-----------------------------
Development
-----------------------------
=> phpScheduleIt 2.0
-----------------------------
Off-Topic
-----------------------------
=> Non-phpScheduleIt Discussion
Loading...