TOPIC:

Zeilenumbruch von Checkboxen 3 years 8 months ago #218209

  • Topic Author
  • AndreasB
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 7
  • Thanks: 0
Hallo!
Wie bekomme ich es hin, dass in der Benachrichtungsmail, nach jeder aktiven Checkbox ein Zeilenumbruch eingefügt wird?
Derzeit ist es so, dass wenn mehrere Checkboxen aktiviert sind, die Werte in einer Reihe in der Benachrichtigungsmail dargestellt werden.

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

Zeilenumbruch von Checkboxen 3 years 8 months ago #218242

  • DarkoCujic's Avatar
  • DarkoCujic
  • Offline
  • Developer
  • Developer
  • Posts: 2154
  • Karma: 67
  • Thanks: 265
Hey,

I hope we can continue this topic in English, as we currently have no German speaking staff.

By active checkboxes, do you mean a checkbox group? Are you using a template for your form? It is possible to do so from the mailbacktpl.txt.php located in /media/com_breezingforms/mailtpl/.
You'd have to copy that file to the same location, but name it your*form*name_mailbacktpl.txt.php so it's used only for that form. And we'd have to change the code a bit inside.

I'd also need the name of the checkbox group.

So, when you return with the info, I can work on this.

Kind regards,
Darko
Satisfied with our support? PayPal tips
===========
Need to renew Pro Support? Buy Here!
===========
Satisfied? Consider a membership!
===========
Like us on Facebook
===========
Support Crosstec and get ALL EXTENSIONS and professional support for just $5. Here!

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

Zeilenumbruch von Checkboxen 3 years 8 months ago #218280

  • Topic Author
  • AndreasB
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 7
  • Thanks: 0
Thanks for your quick answer.
Formname: Kontakt
Name of the checkbox group: IhreAuswahl

Greets
Andreas

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

Zeilenumbruch von Checkboxen 3 years 8 months ago #218323

  • DarkoCujic's Avatar
  • DarkoCujic
  • Offline
  • Developer
  • Developer
  • Posts: 2154
  • Karma: 67
  • Thanks: 265
Hey,

so, I presumed you were using the default mailback template. Also, for the form name, since it's case sensitive, I don't know if its name is kontakt or Kontakt. So please adjust it in the next part.

Navigate to /media/breezingforms/mailtpl. Create a new file there called (and this is the case sensitive part) Kontakt_mailback.txt.php, so if your form name is kontakt, then it's kontakt_mailback...

Inside it, please paste the following code. I kept the default structure except for the checkbox group you needed.
<?php
/**
* BreezingForms - A Joomla Forms Application
* @version 1.7.3
* @package BreezingForms
* @copyright (C) 2008-2011 by Markus Bopp
* @license Released under the terms of the GNU General Public License
**/
defined('_JEXEC') or die('Direct Access to this location is not allowed.');
?>

<?php if ($RECORD_ID != ''): ?>
<?php echo $PROCESS_RECORDSAVEDID?> <?php echo $RECORD_ID ?><?php echo $NL ?>
<?php endif; ?>

<?php echo $PROCESS_FORMID?>: <?php echo $FORM ?><?php echo $NL ?>
<?php echo $PROCESS_FORMTITLE ?>: <?php echo $TITLE ?><?php echo $NL ?>
<?php echo $PROCESS_FORMNAME ?>: <?php echo $NAME ?><?php echo $NL ?>
<?php echo $PROCESS_SUBMITTEDAT ?>: <?php echo $SUBMITTED ?><?php echo $NL ?>
<?php echo $PROCESS_SUBMITTERIP ?>: <?php echo $IP ?><?php echo $NL ?>
<?php echo $PROCESS_SUBMITTERID ?>: <?php echo $SUBMITTERID ?><?php echo $NL ?>
<?php echo $PROCESS_SUBMITTERUSERNAME ?>: <?php echo $SUBMITTERUSERNAME ?><?php echo $NL ?>
<?php echo $PROCESS_SUBMITTERFULLNAME ?>: <?php echo $SUBMITTERFULLNAME ?><?php echo $NL ?>
<?php echo $PROCESS_PROVIDER ?>: <?php echo $PROVIDER ?><?php echo $NL ?>
<?php echo $PROCESS_BROWSER ?>: <?php echo $BROWSER ?><?php echo $NL ?>
<?php echo $PROCESS_OPSYS ?>: <?php echo $OPSYS ?><?php echo $NL ?>

<?php foreach ($MAILDATA as $DATA): ?>
<?php if ($DATA[_FF_DATA_NAME] == 'IhreAuswahl'): ?>
<?php $all = explode(',', $DATA[_FF_DATA_VALUE]); $tmp = str_replace(' ', '', $all);  echo $DATA[_FF_DATA_TITLE]?>: <?php echo implode($NL, $tmp); echo $NL;?>
<?php else: ?>
<?php echo $DATA[_FF_DATA_TITLE]?>: <?php echo $DATA[_FF_DATA_VALUE]?><?php echo $NL ?>
<?php endif; ?>
<?php endforeach; ?>

So, adjust this to your needs if you don't want the part with the technical details about form ID, title, IP etc. The important part is starting with <?php foreach...

If you have trouble implementing this, you can send backend credentials to darko.cujic@crosstec.org and I'll do it for you.

Kind regards,
Darko
Satisfied with our support? PayPal tips
===========
Need to renew Pro Support? Buy Here!
===========
Satisfied? Consider a membership!
===========
Like us on Facebook
===========
Support Crosstec and get ALL EXTENSIONS and professional support for just $5. Here!

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

  • Page:
  • 1
Moderators: ForumSupport
Time to create page: 0.046 seconds

BreezingForms Pro 1.4.7 for WordPress Released!

Available in the membership section.

September Discount!

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!