Forums

no OnSubmit message, no e-mail attachment

kamcatka 24 Nov, 2010
Hello,
I have a multilingual website. And I need arrange a form with possibility to upload file, store it as a file and attach it to e-mail.
Everything is ok if I have one version of form (in default language). But when I have arranged another language version I found that there is no OnSubmit message and no e-mail attachment.

Configuration:
Joomla 1.5.20
Joom!Fish 2.0.4
JoomSEF 3.7.4
joomfish plugin for chronoforms 1.0.6 and Chronoforms Email Templates 1.0.5 (http://www.joomla-software.ch/en/plugins/download/category/2-plugins.html)

Debug log FR - bad:

1. Form passed first SPAM check OK
2. Form passed the submissions limit (if enabled) OK
3. Form passed the Image verification (if enabled) OK
4. Form passed the server side validation (if enabled) OK
5. $_POST Array: Array ( [text_2] => my message [button_1] => odeslat [3a1a9ec386246d7aa46831495cef8c59] => 1 [1cf1] => 8635837a36895e1b04e76557ec477ae5 [chronoformname] => odeslani )
6. $_FILES Array: Array ( [frname] => Array ( [name] => storno.jpg [type] => image/jpeg [tmp_name] => /tmp/php8pLfnf [error] => 0 [size] => 101461 ) )
7. Form passed the plugins step (if enabled) OK
8. An email has been SENT successfully from (web)webmaster@fenstar.com to [email]kemza@fenstar.com[/email]
9. Debug End

Debug log CZ (default) - OK
attached as printscreen

Thank You
GreyHead 24 Nov, 2010
Hi kamcatka,

I'm sorry, I don't know anything about the JoomFish plug-in for ChronoForms. You had better contact the author directly.

Bob
pat01 25 Nov, 2010
Hi camcatka

I never used the Plugins by using attachements... ๐Ÿ˜Ÿ

But what you could do: Check your translation of the emails. See there for Params and inside there for enable_attachments=
Do you have a value there? Actually the same as in the original email template?

Edit: I just did test it and it works fine. Please make sure you translate every single field of your form and every single information in your email template!

Regards
Patrick, CFJFP
kamcatka 29 Nov, 2010
Thank you for help! I have to confirm it really works!
But the Param section was ok. To be honest I'm not really sure where was the problem.

Now I would like to ask you additional question:

For me it is necessary to see username in an e-mail.
I have prepared form code and template code and it works great.
But only for default form (default language).

Please have a look at attached picture.

It looks like that there is php code missing in form translation.
Is it possible to add php code to form translation anyhow?
Or is there another possibility how do get username in e-mail?

Thank you very much. I really appreciate your assistance.
pat01 29 Nov, 2010
Hi kamcatka

Since Joomla! 1.5.8 every code such as PHP, JavaScript etc. is stripped out...

If you do translations, Joom!Fish uses the editor you have defined. Other than CF, which uses no editor when creating forms (form code). Anyway, PHP in translations will not work.

But you could try to use an extension which allows the use of code in content.

A great one is the sourcerer:
http://extensions.joomla.org/extensions/edition/custom-code-in-content/5051

Maybe it will work with it, but I never did try it with CF/JF translations so far. ๐Ÿ™‚
kamcatka 30 Nov, 2010
Again satisfied๐Ÿ™‚

It works if I use such a code:


{source 0}
<?php
$user = &JFactory::getUser();
?>
{/source}
<input type="hidden" name="username" id="username"
value="{source 0}<?= $user->name; ?>{/source}" />


Thanks a lot !
pat01 30 Nov, 2010
You are welcome, I'm glad it works! ๐Ÿ˜€
And thank you for your feedback.

Regards
Patrick
This topic is locked and no more replies can be posted.