Zeilenumbruch von Checkboxen

  • AndreasB
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 7
  • Thank you received: 0

AndreasB created the topic: Zeilenumbruch von Checkboxen

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.
#218209
  • Posts: 2154
  • Karma: 67
  • Thank you received: 264

DarkoCujic replied the topic: Zeilenumbruch von Checkboxen

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!
#218242
  • AndreasB
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 7
  • Thank you received: 0

AndreasB replied the topic: Zeilenumbruch von Checkboxen

Thanks for your quick answer.
Formname: Kontakt
Name of the checkbox group: IhreAuswahl

Greets
Andreas
#218280
  • Posts: 2154
  • Karma: 67
  • Thank you received: 264

DarkoCujic replied the topic: Zeilenumbruch von Checkboxen

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!
#218323
Moderators: ForumSupporttomeperica
Time to create page: 0.060 seconds

New Icon Packs Category!

Crosstec is now offering icon packs.

If you are a paying subscriber, icon packs are automatically added to your account.

Check out our icon packs page!

Live Support Chat Opened!

Join our Discord chat here to receive live support and talk directly to the team!

Summer Sale!

50% discount on all of our extension subscription plans, templates and icon packs!

Get Your Subscription Here

News and Updates

Get informed about new downloads, updates and more in our News and Updates newsletter.

All Extensions Subscription

Get 1 year access to all of our current and future products and 1 year of professional support -- 99 for just 49! (Summer Sale)

No support per domain or website installation limits! Includes all of our current and future Joomla!® extensions, Joomla!® templates for the duration of your membership. This means, by purchasing an All Extensions Subscription you'll have it all covered!

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!

Live Support Chat Opened!

Join our Discord chat here to receive live support and talk directly to the team!

Community Reward

Help us to create new extensions and plugins! With only $5 you help us a lot and get unlimited download access to all of our products, professional support and even more. Get your reward now!

Read More Here