Form email plugin

Fastserv

Member
Hi,

i can?t get the Article and PHP email Templates working. If I try {tablename___elementname} in Article Template I get {tablename___elementname} emailed.

If I try
PHP:
<?php echo $this->data['tablename___elementname']; ?>
in PHP Template I get a empty email.

All like described here. What did I wrong?

Joomla 2.5.8 / Fabrik Git 03.12.12

Regards,
Stefan
 
That code should definitely work. Are you positive that:

1) You are using the correct full element name, for an element which is actually part of that form? I always suggest copying and pasting the full name from the main list of elements on the back end, just to be sure.

2) Are you sure that the placeholder is not being messed up with HTML formatting by your editor? I'd suggest switching your editor to simple text mode, and make sure it isn't inserting any HTML formatting into those {table___element} strings.

Assuming neither of those are the problem, can you try this for me:

Set up your plugin to use your Article template (after checking for 1 above).

In ./plugins/fabrik_form/email/email.php, around line 228, should be this:

PHP:
				$thisMessage = $w->parseMessageForPlaceholder($message, $this->data, true, false, $thisUser);

Edit the file, and immediately BEFORE that line, put:

PHP:
var_dump($message, $this->data);exit;

When you submit the form, it should bang out, and just show an otherwise blank page, with your article template contents, and the list of available form data.

Copy and paste the output here.

-- hugh
 
Thank you for helping Hugh. I got the HTML and Article Templates working after a Git update today. But my PHP Template still not work, anything wrong with that:

PHP:
<div id="mailcontainer">
<div class="head"><img src="http://www.eberlei-maschinen.de/images/emailkopf/email-kopf-schmal.png" width="600" height="80" alt="Eberlei Maschinen" /></div>
<h2>Angebot f?r  <?php echo $this->data['machines_items______modellzusatz'];?> Referenz- Nr.: <?php echo $this->data['machines_items______maschine'];?></h2>
<h3>Ihre Daten:</h3>
<p>Firma: <?php echo $this->data['machines_items______firma'];?><br />
  Name: <?php echo $this->data['machines_items______name'];?><br />
  Telefon: <?php echo $this->data['machines_items______telefon'];?><br />
  Telefax: <?php echo $this->data['machines_items______telefax'];?><br />
  E-Mail: <?php echo $this->data['machines_items______email'];?></p>
<p>Weitere Angaben:<br />
<?php echo $this->data['machines_items______nachricht'];?></p>
<h3>Maschinendaten:</h3>
<p>Hersteller: <?php echo $this->data['machines_items______hersteller'];?><br />
  Maschine: <?php echo $this->data['machines_items______modellzusatz'];?><br />
  Typ: <?php echo $this->data['machines_items______modell'];?><br />
  Referenz-Nr.: <?php echo $this->data['machines_items______maschine'];?></p>

<p>Beschreibung:<br />
<?php echo $this->data['machines_items______beschreibung'];?></p>

<p><img src="<?php echo $this->data['machines_items______bild1'];?>" /> 
<?php echo $this->data['machines_items______bild2'];?> 
<?php echo $this->data['machines_items______bild3'];?> 
<?php echo $this->data['machines_items______bild4'];?>
<?php echo $this->data['machines_items______bild5'];?>
<?php echo $this->data['machines_items______bild6'];?>
<?php echo $this->data['machines_items______bild7'];?>
<?php echo $this->data['machines_items______bild8'];?>
 </p>
<div class="footer">
  <p>Eberlei Maschinen - Theodor Eberlei - Stahlstra?e 37 - 26215 Wiefelstede - Tel.: +49 (0)44 02-8 63 66-0</p>
</div>
</div>
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top