Oct 13, 2008, 01:53 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
modxcms.com web
  MODxCMS.com   Forums   Help Login Register  
Pages: 1 [2] 3 4 ... 27   Go Down
  Print  
Author Topic: Support/Comments for eForm  (Read 79683 times)
0 Members and 1 Guest are viewing this topic.
TheBear
Jr. Member
*
Posts: 16


« Reply #15 on: Sep 30, 2006, 12:06 PM »

Version 1.3 certainly  supports multiple textareas, some earlier version didn't. Did you download 1.3?
Well that's a little embarassing. I thought I upgraded and I hadn't... All is well, thank you TobyL
Logged
TobyL
Moderator
*
Posts: 763



« Reply #16 on: Sep 30, 2006, 04:32 PM »

As you can see the submit button and i moved the error code below the submit button are both below and behind my footer so you can't seem them and I don't know why?  Any thoughts?  I'm using the Animetor-Metal template that Susan made and helped me tweak I just can't figure out why it's doing that here is my form code:

That has nothing to do with eForm and everything to do with your template... It looks like the middle column is of a fixed height and does not have the overflow set to scroll or auto. Fix your css and the form will show.  And if you can't work it out place a question in an appropriate forum...
Logged

dblass
Jr. Member
*
Posts: 3


« Reply #17 on: Oct 03, 2006, 10:36 AM »

I installed eForm 1.3 (downloaded from the repository) and folowed the example exactly as in the docs, but what i get is:

« MODx Parse Error »
MODx encountered the following error while attempting to parse the requested resource:
« PHP Parse Error »

PHP error debug
  Error: Invalid argument supplied for foreach()
  Error type/ Nr.: Warning - 2
  File: c:\arquivos de programas\easyphp1-8\www\modx\assets\snippets\eform\eform.inc.php
  Line: 49
  Line 49 source: foreach($formats as $k => $discard) $fields[$k] = ""; // store dummy value inside $fields

Any help in what may be the problem?
Thanks!
Logged
rthrash
Foundation
*
Posts: 9,290



WWW
« Reply #18 on: Oct 03, 2006, 11:33 AM »

The placeholders are 'targets' for eForm to fill with data, while the snippet call is a source to supply eFrom with data.  I don't know if you ever could use these placeholders in the snippet call.. Where would eForm get the data from? The eForm placeholders are used in the report, autotext and report template  and (generated by the form parser) in the form template. 

&from needs one or more  regular email addresses, while &fromname expects a real name. You can leave them empty in which case they will be filled with the 'email sender' and the 'site name' as set in the MODx configuration.

Hmmm, yeah, what you say makes sense. It's just that the [+name+], [+email+] and [+subject+] placeholders did work as call parameters in version 1.2.... and [+subject+] can still be used as such... guess I got a little confused  Grin

Toby et al,

Here's a link to the original hack by Garryn that allowed subject/from/fromname to come from eform fields. It's really handy and I can attest that it works well.
Logged

MODx is a framework that allows web professionals to turn over sites to end-users for daily maintenance without worrying. Community participation and questions are encouraged, especially when you help us help you, read the wiki, and review snippet parameters – even if you have to look at the source. Searching the forums helps, too.
Ryan Thrash
MODx Co-Founder
Principal @ Collabpad
work productively.
work intelligently.
work together.
TobyL
Moderator
*
Posts: 763



« Reply #19 on: Oct 03, 2006, 11:36 AM »

Thanks, I'll have a look at it and see if I can add it in.
Logged

elz64
Sr. Member
****
Posts: 347



WWW
« Reply #20 on: Oct 03, 2006, 11:37 AM »

Am I the only to one to find the archive not as it ' supposed to be ' ?

 Here's what I got into the zip for ver 1.3

/eform
 |___/docs (empty)
 |---/lang (empty)
...and what is described into the documentation

/eformx
 |___/docs (empty)
                                  |---/snippets
/webroot
 |___/modx0902
         |---/html
                 |---/assets
                          |---/html
                                  |---/snippets
                                           |---/eform
                                                   |---/docs (empty)
                                                   |---/lang (empty)

1st "eform"content looks like being the real stuff.. is that right ?

What should be done with the 2 other forlders and subs ??

Thanks
Logged

Schtroumpf Grognon - Grouchy Smurf
---------------------------------
Faites pas attention.. - Don't pay attention
TobyL
Moderator
*
Posts: 763



« Reply #21 on: Oct 03, 2006, 12:01 PM »

Hmmm well,... you can blame me and winzip for that I'm afraid. I just tested this out and I get the same folders when extracting the zip. However in the Winzip dialog the empty folders are not visible. (They are a remnant of me trying something out - teaches me to re-use a winzip archive by deleting and then adding stuff Sad )

Sorry about that... I'll see if I can find some different archive software for the future and I've now re-upload a version without all the extra bits (I hope Smiley ).

And yes, all you need is what's in and below the eform folder. All the empty folders can be deleted.
Logged

sottwell
Documentation Team
*
Posts: 8,157



WWW
« Reply #22 on: Oct 03, 2006, 12:09 PM »

Somebody forgot to take care of the $replyto in the AddAddressToMailer function. Here's the corrected function (line 352 of eform.inc.php)
Code:
# Adds Addresses to Mailer
function AddAddressToMailer(&$mail,$type,$addr){
$a = explode(",",$addr);
for($i=0;$i<count($a);$i++){
if(!empty($a[$i])) {
if ($type=="to") $mail->AddAddress($a[$i]);
elseif ($type=="cc") $mail->AddCC($a[$i]);
elseif ($type=="bcc") $mail->AddBCC($a[$i]);
elseif ($type=="replyto") $mail->AddReplyTo($a[$i]);
}
}

}
Logged

sottwell.com has moved to a lovely Solaris 10 server!
Log in username guest, password guestuser.
Templates are now becoming available at http://sottwell.com/templates.html
TobyL
Moderator
*
Posts: 763



« Reply #23 on: Oct 03, 2006, 10:59 PM »

Thanks for that Susan.. I've updated it in the repository.
Logged

elz64
Sr. Member
****
Posts: 347



WWW
« Reply #24 on: Oct 04, 2006, 04:15 AM »

Ok

I'll wont blame anyone, just a matter of clarification Roll Eyes

Thank you
Logged

Schtroumpf Grognon - Grouchy Smurf
---------------------------------
Faites pas attention.. - Don't pay attention
kms_cms
Jr. Member
*
Posts: 15


« Reply #25 on: Oct 05, 2006, 09:49 AM »

Please help!
That this: Could not instantiate mail function

What me do  Huh
Logged
xwisdom
Foundation
*
Posts: 1,732



« Reply #26 on: Oct 05, 2006, 12:01 PM »

Please help!
That this: Could not instantiate mail function

What me do  Huh

Hi,

Can you please supply us with some details on your setup?

Things like version of eForm and MODx used, etc
Logged

xWisdom
www.xwisdomhtml.com
The fear of the Lord is the beginning of wisdom:
MODx Co-Founder - Create and do more with less.
kms_cms
Jr. Member
*
Posts: 15


« Reply #27 on: Oct 05, 2006, 02:59 PM »


Hi,

Can you please supply us with some details on your setup?

Things like version of eForm and MODx used, etc

Yes i can  Smiley
Eform - 1.3 latest version (I download her 03.10.06)
MODx - 0.9.2 (rev 1005)
PHP Version 4.4.2
Server - Apache
safe_mode On
System - FreeBSD

What to tell ?

The error appears after sending the message, but the letter comes .
But message subject : 0
the body message is present

[[eForm? &formid=`feedbackForm` &to=`admin@site.com` &tpl=`eFeedBackForm` &report=`eFeedbackReport` &mailselector=`department` &vericode=`1` &subject="Сообщение с сайта" ]]
« Last Edit: Oct 05, 2006, 03:13 PM by kms_cms » Logged
rthrash
Foundation
*
Posts: 9,290



WWW
« Reply #28 on: Oct 05, 2006, 03:06 PM »

I believe its an incompatibility with safe_mode being on and the mail function, but not 100% certain.
Logged

MODx is a framework that allows web professionals to turn over sites to end-users for daily maintenance without worrying. Community participation and questions are encouraged, especially when you help us help you, read the wiki, and review snippet parameters – even if you have to look at the source. Searching the forums helps, too.
Ryan Thrash
MODx Co-Founder
Principal @ Collabpad
work productively.
work intelligently.
work together.
xwisdom
Foundation
*
Posts: 1,732



« Reply #29 on: Oct 05, 2006, 03:18 PM »

There's an error in your code:

Change
Quote
&subject="Сообщение с сайта"

to
Quote
&subject=`Сообщение с сайта`
Logged

xWisdom
www.xwisdomhtml.com
The fear of the Lord is the beginning of wisdom:
MODx Co-Founder - Create and do more with less.
Pages: 1 [2] 3 4 ... 27   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP

Copyright © 2005-2008 MODxCMS, All rights reserved. Contact Us
Styles by ziworks.com

Powered by SMF 1.1.4 | SMF © 2005, Simple Machines LLC

Valid XHTML 1.0! Valid CSS!