I needed to be able to see a users information when the register for the job board. This goes for Job seekers and employers. The default only give you the user name and email. That wasn't enough because the client needed to know all the registration info without logging into the system to provide better customer service.
So here was my quick fix for it…
First find these three files:
1) /system/lib/miscellaneous/AdminNotifications.php
2) /templates/_system/email_templates/admin_user_registration_email.tpl
3) /system/user-scripts/users/registration.php
Now open the file you found earlier, /system/lib/miscellaneous/AdminNotifications.php
Look for the function named "sendAdminUserRegistrationLetter" and replace it with the code below:
function sendAdminUserRegistrationLetter($user_id,$otherInfo="") {
$admin_email = Settings::getSettingByName('notification_email');
$system_tpl = System::getSystemSettings('SYSTEM_TEMPLATE_DIR');
$userInfo = UserManager::getUserInfoBySID($user_id);
$email = new Email($admin_email, '../email_templates/admin_user_registration_email.tpl', array('user' => $userInfo,'otherInfo' => $otherInfo));
return $email->send();
}
Now open the other file you found earlier named /templates/_system/email_templates/admin_user_registration_email.tpl.
Replace the entire contents with this code below. You can alter it any way you may need. I filter on all my email based on the subject. So, the subject line is important to me:
{subject}New {if $user.user_group_sid=='41'}Employer{else}Job Seeker{/if} Registration{/subject}
{message}
<p>New user has just registered at {$GLOBALS.site_url}</p>
User ID:{$user.sid}<br />
User Name:{$user.username}<br />
{$otherInfo}
{/message}
Finaly, open the file /system/user-scripts/users/registration.php. Find the line that has the following if statement on it. It should start around line 68 or so:
if (AdminNotifications::isAdminNotifiedOnUserRegistration()) {
… bunch of code in here
}
Replace the entire if statement (from bracket to bracket) this code:
if (AdminNotifications::isAdminNotifiedOnUserRegistration()) {
foreach($_POST as $k=>$v)
{
if(is_array($v))
{
foreach ($v as $kk=>$vv)
{
if($kk != 'original') {$otherInfo .= ucfirst($k).": $vv<br />\n";}
}
}
else
{
$otherInfo .= "$k: $v<br />\n";
}
}
AdminNotifications::sendAdminUserRegistrationLetter($user->getSID(),$otherInfo);
}
This last piece of code grabs the users posted information from the registration form and passes it to the notifications class. The form fields captured in the posted registration are then added to the email template before being sent to the admin.
And wa la… there you have it. Let me know if this helps anybody out there.
Joe


Please let me know if it is okay that I use some of your professional content on my blog with a link to yours?