Berend_Bosje
Newbie
Karma: 0
Posts: 10
|
 |
« on: July 17, 2006, 10:38:05 PM » |
|
I've tried several things to get the institution name after the fname in the Welcome Back area. It should be displayed as;
Welcome back, 'fname' ('institution')
I don't know how and where to manage this. Can you point me in the right direction?
Thanks in advance.
Marcel
|
|
|
|
|
Logged
|
|
|
|
Berend_Bosje
Newbie
Karma: 0
Posts: 10
|
 |
« Reply #1 on: July 18, 2006, 10:20:10 AM » |
|
This also concerns the outgoing email messages.
For example: I want to get the sprintf (%s) of every added registration field into the email message that a user gets after they register.
Sorry because this is my first time ever hearing of sprintf, ain't that a laughehhe...
Hope that you or anyone else can help.
Marcel
|
|
|
|
|
Logged
|
|
|
|
Nick
Administrator
Hero Member
   
Karma: 15
Posts: 5403
|
 |
« Reply #2 on: July 19, 2006, 08:19:17 AM » |
|
To change what's in the welcome back message, you'll need to change what gets set in $_SESSION['sessionName'] in lib/Auth.class.php doLogin() and do_register_user().
Changing the values that are put into the registration emails are in do_register_user(). Just look for the translate_email() function call and pass whatever values you want displayed in the email in the sequential order.
|
|
|
|
|
Logged
|
|
|
|
Berend_Bosje
Newbie
Karma: 0
Posts: 10
|
 |
« Reply #3 on: July 22, 2006, 12:00:14 AM » |
|
Sir Thanks-a-lot!
The changes to be made in the registration emails were easy now (after a little search).
To get the welcome back message the way I wanted it (a little bigger search), I also had to change line 107 in Template.class.php. I don't know why the number '1' is in this line and if it should be changed, because of the modification I made. It works fine with it, but it also goes without it or with any other number, so.
Line 107 Template.class.php: <h4 class="welcomeBack"><?php echo translate('Welcome Back', array($_SESSION['sessionName'], $_SESSION['sessionInst'], 1))?></h4>
Cheers,
Marcel
|
|
|
|
|
Logged
|
|
|
|
asterxiang
Newbie
Karma: 0
Posts: 6
|
 |
« Reply #4 on: May 02, 2012, 04:01:15 PM » |
|
Hi Nick,
I am trying to modify the email body message sent to users and admin when a user create a new reservation. Right now the last part of the body reads the following:
+------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Reservation modified | +------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Reservation # | Start Date | End Date | Resource | Start Time | End Time | Location | Contact | +------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | sc14fa162dd348d8 | 05/04/2012 | 05/04/2012 | Printing | 13:30 | 14:00 | $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ | $$$-$$$-$$$$ | +------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
So my questions are:
1. Don't know where to change so that the email also gets fname, lname, institution, position and other fields I have customized. According to the post above, I have found the function that changes the email content when a new user registers, but couldn't find the function that sends email to users/admin when they book new reservations.
2. The other question is not relevant to this post, but I think the solution should be pretty simple. I would like to make the "position" and "institution" fields required when a user registers, so that if they don't provide values for those two fields, the registration fails and a warning message appears. I couldn't find where to change the code.
Any help is much appreciated!!
Thank you so much!
Aster
|
|
|
|
|
Logged
|
|
|
|
asterxiang
Newbie
Karma: 0
Posts: 6
|
 |
« Reply #5 on: May 02, 2012, 04:01:58 PM » |
|
Forgot to mention I am running version 1.2.8.
Thanks!
|
|
|
|
|
Logged
|
|
|
|
Nick
Administrator
Hero Member
   
Karma: 15
Posts: 5403
|
 |
« Reply #6 on: May 08, 2012, 01:52:32 PM » |
|
You want all the user data in the reservation email?
|
|
|
|
|
Logged
|
|
|
|
|