Login Form

#244 – Admin email fields

Posted in ‘BF Quiz’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Wednesday, 28 May 2014 00:51 AEST
samowens
Joomla! version: (3.3.0)

Hi Tim,

Is it possible to add extra fields to the admin email? If I set up groups of questions using score categories I can get sub totals to appear on screen for the user, but I want to be able to email that information to the administrator instead, and not have it appear on screen (the results are hidden as they want to be able to email the user with a bespoke report).

Many thanks

Sam
Thursday, 29 May 2014 23:35 AEST 10'
Tim
BF Quiz Plus 3 Years, BF Survey 12 Months
Hi Sam,
If you wanted to include additional fields in the email, then it is possible, however you'd need to edit some of the php files. For example, if you were using the default mutlipage quiz, you could edit the file /components/com_bfquiz_plus/views/bfquizplus/tmpl/default.php

Around line 509 you will see where the fields are being inserted into the email
$adminEmail[0]->description=preg_replace('/{score}/', $score , $adminEmail[0]->description); // insert score

You would need to add an additional line for each field you wish to include.

Just so you are aware, I'm currently working on v2.0.0 which will automatically have the ability to include any of the fields in the email template. I expect a beta release by the end of June, as this new version is a complete rewrite using FOF and does things a bit differently.

regards

Tim
Follow us on twitter http://twitter.com/tamlynsoftware
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.
Go to top