TOPIC:

custom HTML-based mailback templates 7 months 3 weeks ago #238485

  • Topic Author
  • ooc
  • Offline
  • Expert Breezer
  • Expert Breezer
  • Posts: 192
  • Thanks: 1
I am trying to establish a

File Attachment:

File Name: chequeMemb...html.zip
File Size:1 KB
but can't seem to get past square 1. My form name is chequeMembership. I have created the attached chequeMembership_mailback.html.php file and put it into administrator/components/com_breezingforms/mailtpl. I created it following the instructions in crosstec.org/en/support/online-documenta...-templates-work.html . For code I used the code in the example (SampleEmailTemplate1.html1.php) I am not sure if I am to set my Mailback Emails for that form as custom or default. If I set it as custom I get nothing. If I set it as default it returns the system default rather than the file defined in the attached where I am displaying the fields as title on one line and data value below as given in the alternate example. I still get them on one line.
Attachments:

Please Log in or Create an account to join the conversation.

custom HTML-based mailback templates 7 months 3 weeks ago #238507

  • Topic Author
  • ooc
  • Offline
  • Expert Breezer
  • Expert Breezer
  • Posts: 192
  • Thanks: 1
I have tried again - this time stripping the template to bare minimum to be sure the is no syntax error in it - as I don't know how to find php errors although with phpcodechecker.com/ no syntax errors are found and I get nothing with setting system/error reporting to 'Simple'. I still get the default template with TITLE and VALUE on the same line instead of on 2 lines as in

File Attachment:

File Name: chequeMemb...1-14.zip
File Size:0 KB

I am also attaching the form itself .

File Attachment:

File Name: chequeMembership.zip
File Size:84 KB


I don't know what else to try.
Attachments:

Please Log in or Create an account to join the conversation.

custom HTML-based mailback templates 7 months 2 weeks ago #238545

  • mihaela
  • Offline
  • Developer
  • Developer
  • Posts: 3128
  • Karma: 105
  • Thanks: 413
Hello,

I took a look at your mailback email template.

You have named the file as if you were creating a HTML template, but tried to skip to new line using:
<?php echo $NL ?>
Instead, you should simply put
<br>

In this piece of documentation crosstec.org/en/support/online-documenta...-templates-work.html it is explained how to set a non HTML template FORMNAME__mailback.txt.php.

Let me know whetehr that resolves the problem.

Regards,

Mihaela

Please Log in or Create an account to join the conversation.

custom HTML-based mailback templates 7 months 2 weeks ago #238548

  • Topic Author
  • ooc
  • Offline
  • Expert Breezer
  • Expert Breezer
  • Posts: 192
  • Thanks: 1
Thank you Mihaela for your reply.
I still don't get the correct results. I have tried each of the following :
With the file named chequeMembership_mailback.txt.php and containing the <?php echo $NL ?> as given in the 'HOW DO EMAIL TEMPLATES WORK?' support file
setting mailback as a default - the side by side comes through
setting mailback as custom - I get no mailback
With the file named chequeMembership_mailback.html.php and containing the <br> for each instance of <?php echo $NL ?>
setting mailback as custom I get side by side (as the default mailback would be)
setting mailback as default I also get the default side by side form.
With no combination do I get back the format with TITLE and VALUE on separate lines. To save me trying with so many options, can you tell me what the mailback email should be - default or custom - for it to pick up the custom file in the mailtpl folder.
I think that in the long run I want a html format as I will be trying to do what this file attempts.

File Attachment:

File Name: chequeMemb...1-20.zip
File Size:2 KB

I haven't tried it yet and I'm sure there are many errors but until I can get a simple file to respond correctly, I am not trying the full file. I am sending it to you only so you can see where I am trying to get to. A good portion of it is html but I need the php to find and match each non-empty lname/fname values and create a card for each.
If getting into our backend will help you, in any way, to help me, I can send you the login credentials privately.
Attachments:

Please Log in or Create an account to join the conversation.

custom HTML-based mailback templates 7 months 2 weeks ago #238554

  • mihaela
  • Offline
  • Developer
  • Developer
  • Posts: 3128
  • Karma: 105
  • Thanks: 413
Hello,

Please take a look at this topic crosstec.org/en/forums/15-usage/124980-m...y-fields.html#230078 since here is quite well explained how to retrieve all form element's values in variables and then you can place them in HTML code where you want using
echo $variableName;

I see that your email template is producing errors. You have tried using code like this:
<p style="padding-left: 60px;">{fname1:value} {lname1:value} {pass1:label} {pass1:value}</p>
<p style="padding-left: 60px;">{fname2:value} {lname2:value} {pass2:label} {pass2:value}</p>
That won't work because form elements can't be fetched that way.
If you set values to variables as explained then you can use this code:
<p style="padding-left: 60px;">  echo $fname1variable." ". $lname1variable." ". $pass1variable;</p>

I hope this will help you achieve what you want.

Regards,

Mihaela

Please Log in or Create an account to join the conversation.

custom HTML-based mailback templates 7 months 2 weeks ago #238556

  • Topic Author
  • ooc
  • Offline
  • Expert Breezer
  • Expert Breezer
  • Posts: 192
  • Thanks: 1
Thank you Mihaela
I will through all that again - I had read each of the posts before but will read through again with your comments.

Please though can you clarify for me - once I get a file in the mailtpl folder - how do I get it to be called - in the advanced/more options section under mailback emails do I select the default or the custom option beside 'edit emails'.

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
  • 2
Moderators: ForumSupport
Time to create page: 0.054 seconds

Summer Sale!

Massive discounts on all subscriptions!

Get Your Subscription Here

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Special Offer

Summer Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!