Where can I edit header of email template for form?

Hi,

I have a problem to find where is a header for standard email template for form.
I need to change this header or delete it.

When i receive an email i have something like this:

Email from ---MY name of Joomla site----
Message
====================================

Description of field1 from form
Field1

Description of field2 from form
Field2
...........................................

I don't need other sophisticated template in this moment.
I need only change header.

Can you give me some tip?
 
It's hardcoded.
But you can copy
...\plugins\fabrik_form\email\tmpl\debug.php
and adapt it.
 
I have just copied "debug.php" to "myemailtemplate1.php" but i have real problem to find how to delete header?

All others: fields description + value of fields(datas of submitted record) i need on form.
 
debug.php is not this what i need - it put to email all fields in database table 2 times (without and with tablename___fieldname).

When i choose "empty field"=default template - not debug.php i have in email 1 record with fields that were submitted - i need it - but don't need header.
So, i don't know what is (where is) default email template - and i can't delete header. :-(

Is anywhere any other "user friendly" email template i could include all fields in form and not use header?
 
It is something difficult for me to code it in php...
Now i get an email with message like this:
Code:
"Data for table "zapotrzebowanie" were submitted to DBlistid	20
listref	20
rowid	17
Itemid	580
option	com_fabrik
task	form.process
isMambot	
formid	20
returntoform	0
fabrik_referrer	http://192.168.1.106/cc.joomla/index.php/iso-pracownicy
fabrik_ajax	0
package	fabrik
packageId	
b512de4b12daef941f91d2ba13c9925a	1
format	html
fabrik_repeat_group	1
fabrik_vars	 D53
submit	Zapisz
view	form
id	17
nazwa_mat	eeeeeeeee
kwota_zapotrz	10000
kwota_zapotrz_waluta	PLN
uzasadnienie	rrrrrrrrrrrrrr
termin	2013-01-30 23:00:00
recipient1	48
date_time	2013-01-31 08:33:55
id_raw	17
nazwa_mat_raw	eeeeeeeee
dodaj_plik_zapotrz_raw	
kwota_zapotrz_raw	10000
kwota_zapotrz_waluta_raw	PLN
uzasadnienie_raw	rrrrrrrrrrrrrr
termin_raw	2013-01-31 00:00:00
recipient1_raw	48
zamawiajacy_auto_raw	45
date_time_raw	2013-01-31 00:00:00
zamawiajacy_auto	45
ccjom_cc_zapotrzebowanie___id	
ccjom_cc_zapotrzebowanie___id_raw	
ccjom_cc_zapotrzebowanie___nazwa_mat_raw	eeeeeeeee
ccjom_cc_zapotrzebowanie___nazwa_mat	eeeeeeeee
ccjom_cc_zapotrzebowanie_repeat_dodaj_plik_zapotrz___dodaj_plik_zapotrz_raw	
ccjom_cc_zapotrzebowanie_repeat_dodaj_plik_zapotrz___dodaj_plik_zapotrz	
ccjom_cc_zapotrzebowanie___kwota_zapotrz_raw	10000
ccjom_cc_zapotrzebowanie___kwota_zapotrz	10000
ccjom_cc_zapotrzebowanie___kwota_zapotrz_waluta_raw	PLN
ccjom_cc_zapotrzebowanie___kwota_zapotrz_waluta	PLN
ccjom_cc_zapotrzebowanie___uzasadnienie_raw	rrrrrrrrrrrrrr
ccjom_cc_zapotrzebowanie___uzasadnienie	rrrrrrrrrrrrrr
ccjom_cc_zapotrzebowanie___termin_raw	2013-01-31 00:00:00
ccjom_cc_zapotrzebowanie___termin	2013-01-31
ccjom_cc_zapotrzebowanie___recipient1_raw	48
ccjom_cc_zapotrzebowanie___recipient1	CC Jane White
ccjom_cc_zapotrzebowanie___zamawiajacy_auto_raw	45
ccjom_cc_zapotrzebowanie___zamawiajacy_auto	ccc.pracownik1
ccjom_cc_zapotrzebowanie___date_time_raw	2013-01-31 00:00:00
ccjom_cc_zapotrzebowanie___date_time	2013-01-31


=================================Thanks!=============================================
My debug-blue-mouse1.php is:
Code:
<?php
/**
 * This is a sample email template. It will just print out all of the request data:
 *
 * @package     Joomla.Plugin
 * @subpackage  Fabrik.form.email
 * @copyright   Copyright (C) 2005 Fabrik. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */
?>
<p> "Data for table "zapotrzebowanie" were submitted to DB</p> 
<table>
<?php
foreach ($this->data as $key => $val)
{
	if ($key === 'join') :
		continue;
	endif;
	echo '<tr><td>' . $key . '</td><td>';
	if (is_array($val)) :
		foreach ($val as $v):
			if (is_array($v)) :
				echo implode("<br>", $v);
			else:
				echo implode("<br>", $val);
			endif;
		endforeach;
	else:
		echo $val;
	endif;
	echo "</td></tr>";
}
?>
</table>
<p>=================================Thanks!=============================================</p>

This: <td>' . $key . '</td> ------$key is {placeholders} - but i need label for field (friendly for user who fufill the form and gets the email)


Coding in php is not very easy for me, i want to write in my debug-blue-mouse1.php dump of all the data submitted by the form and try to write it without {placeholders} for each field separately.
An example what i need - i try to show in html:

Code:
<p> bla bla bla 1</p>
<table>
<tr>
<td>  dump of one the data submitted by the form - field label></td>
<td>  dump of one the data submitted by the form - field value></td>
</tr>

<tr>
<td>  dump of next the data submitted by the form - field label></td>
<td>  dump of next the data submitted by the form - field value></td>
</tr>
........dump of all data submitted by the form........
</table>
<p>bla bla bla 2</p>
 
I've added a new tmpl, debug_with_labels.php which will replace the key with the labels, it also adds a couple of options, in the code, which toggles on/off what will be outputted, read the files' comments for more info on those
 
I can't send email using debug_with_labels.php.
When use "save"/form submission - i get on screen "that what should be in email" - but it is repeated 2 times -- see screenshot.
I get the same under linux/opera, windows/opera, windows/firefox

An record is added after submission but not email is sended.
 

Attachments

  • 3.png
    3.png
    83.7 KB · Views: 245
We are in need of some funding.
More details.

Thank you.

Staff online

Members online

Back
Top