Formbuilder extension

Discuss PivotX 2.0.x extensions here, and view extensions that are available for download.

Formbuilder extension

Postby ptr » Tue Mar 30, 2010 2:36 pm

This is the forum topic for the formbuilder extension
The formclass is a drop in form to mail script that you can use for multiple forms on your website.
Get the extension here: http://extensions.pivotx.net/?e=3
ptr
PivotX Team
 
Posts: 78
Joined: Sun Dec 16, 2007 2:53 pm

Re: Formbuilder extension

Postby thephrase » Sat Apr 03, 2010 9:56 pm

spam referrer is not right.

I installed Formbuilder ext. Great Extension!
but my mails did not send. So I enabled debug in logfile.txt and unremarked some of the debug entries in the extension code.

The logfile contained
spam referrer is not right.

So I changed server_spam_key, but that was not a good idea. At least it didn't help.
This is the error I got (I have made the keys shorter and have put 3 dots inside):
spam referrer is not right: should be b6a..f7b - javascript must be disabled or you're a spammer.

form identifier: a23...16db from contactform-about,a66..63c

<div class='timetaken'>2010-04-03 23:41:33 - <span class='timetaken'>0.066</span> -- pivotx/scheduler.php:118 / cleanCache() -- ( 8309248 ) </div>Scheduler: deleted 3 cache files in <span class='timetaken'>0.065</span> secs. 7 files were checked.
<div class='timetaken'>2010-04-03 23:41:57 - <span class='timetaken'>0.163</span> -- formbuilder/_formbuilder_contactform.php:20 / smarty_contactform() -- ( 8421760 ) </div>Doet nu contactform voor: REQUEST_URI:/pv/?p=about / link:/pv/?p=about / uri:about
normal email recipient iemand@planet.nl - Contact form
<div class='timetaken'>2010-04-03 23:41:57 - <span class='timetaken'>0.185</span> -- formbuilder/form.class.php:312 / execute_form() -- ( 8854232 ) </div>form identifier: a23...16db from contactform-about,a66...63c
86.89.214.210 a66...63c b6a...f7b
spam referrer is not right: should be b6a...f7b - javascript must be disabled or you're a spammer.
Validation = 0


What can I do to be able to mail with this extension?
Help is much appreciated :)
thephrase
 
Posts: 17
Joined: Sat Jan 05, 2008 7:54 pm

Re: Formbuilder extension

Postby jadwigo » Sun Apr 04, 2010 11:46 am

I'll have to look into that... but I only have time for that somewhere next week.

BTW. for preparation, could you please tell me the pivotx version and what tags you used for the form./
My pivotx playground is at http://jivotx.twokings.eu - the rest is at http://www.jadwigo.nl
jadwigo
Developer
 
Posts: 117
Joined: Wed Nov 18, 2009 9:49 am
Location: Den Haag, Netherlands

Re: Formbuilder extension

Postby thephrase » Sun Apr 04, 2010 2:37 pm

spam referrer is not right
Thanks for looking into it,
My PivotX version is 2.1.0 beta 3

The tag is [[contactform]]

Second Website (win based) logfile
<div class='timetaken'>2010-04-04 15:56:56 - <span class='timetaken'>0.135</span> -- formbuilder/_formbuilder_contactform.php:63 / smarty_contactform() -- ( 9335448 ) </div>automatic email recipient from pivot entry or page iemand@planet.nl - René
<div class='timetaken'>2010-04-04 15:56:56 - <span class='timetaken'>0.152</span> -- formbuilder/form.class.php:386 / execute_form() -- ( 9784896 ) </div>spam referrer is not right: should be a1be80eae86eeba7961d3b13a865100c - javascript must be disabled or you're a spammer.


I have noticed that it works (Just Works tm) with a Unix based provider.
But it doesn't work on a windows based provider (vevida.nl).

Windows based provider
I have installed a mail-script for this provider. The command that sends the mail is: mail($sendto, $subject, $body, $mailheaders) and this works fine from this provider. It must be the Spam protection which causes the mail not to be send.

René
thephrase
 
Posts: 17
Joined: Sat Jan 05, 2008 7:54 pm

Question about Formbuilder extension

Postby verbaljam » Sun Apr 25, 2010 8:05 pm

Hi,
As a non-programmer, I think I did a pretty neat job in adapting the formbuilder contactform to my own needs (if I may say so myself). It works to a certain extend: it sends the mail to the address I specified. But the contents of the message is always: form.mail.tpl.php, the filename of the message it should reproduce, so to speak, not the actual message. Also: after sending the form, the contact page gives this filename.
What am I doing wrong?
You can see what's happening at: http://nieuw.verbaljam.nl/?p=contact
(I use PivotX latest version).
If you read Dutch, you read Verbal Jam.
Lack of documentation makes even the best program useless...
verbaljam
 
Posts: 143
Joined: Thu Apr 22, 2010 8:32 am
Location: Amsterdam

Re: Formbuilder extension

Postby jadwigo » Mon Apr 26, 2010 7:38 am

Did you set the confirmation and mailtemplate values something like this?
Code: Select all
confirmation="form.mail.tpl.php"
mailtemplate="form.mail.tpl.php"


if so, you must have those files existing in "pivotx/extensions/formbuilder/templates/"
My pivotx playground is at http://jivotx.twokings.eu - the rest is at http://www.jadwigo.nl
jadwigo
Developer
 
Posts: 117
Joined: Wed Nov 18, 2009 9:49 am
Location: Den Haag, Netherlands

Re: Formbuilder extension

Postby verbaljam » Mon Apr 26, 2010 11:55 am

Jadwigo, thanks very much for your answer. Somehow you have put me on the right track, because I found out that the filenames in the extension did not correspond with the filenames in the example template: "form.mail.tpl.php" instead of "contactform.mail.tpl.php" and 'confirm.mail.tpl.php' instead of contactconfirm.mail.tpl.php.
I changed them to the correct names and now I get some content in the mails.

Only, appearently the variables in those files are not recognized and they litterally appear in the mail. This is what the mail looks like (I translated the Dutch text):

Code: Select all
The following message has been received

Naam: %text_name%
E-mail adres: %text_email%

Message:
%textarea_message%


--
Complete data:
name: Arnoud
email: the mail address I filled in while testing
message: This is a test message
hidden_formid: 0e37cd44691bf0b50722ca37816b3379
check_referrer: 7a45bdbe6bd236a6571e8911cf3c3d1d


So the question seems to be: how and where do I make these variables work?

Thanks very much in advance!
If you read Dutch, you read Verbal Jam.
Lack of documentation makes even the best program useless...
verbaljam
 
Posts: 143
Joined: Thu Apr 22, 2010 8:32 am
Location: Amsterdam

Re: Formbuilder extension

Postby jadwigo » Mon Apr 26, 2010 12:05 pm

The second part of your mail has the rest of the needed info, the complete data shows the variable names and the values..
So in this case instead of %text_name% you can use the literal variable name in the complete data: %name% (and the other values that are mentioned).

And, making this easier is on the list of important improvements to the extension
My pivotx playground is at http://jivotx.twokings.eu - the rest is at http://www.jadwigo.nl
jadwigo
Developer
 
Posts: 117
Joined: Wed Nov 18, 2009 9:49 am
Location: Den Haag, Netherlands

Re: Formbuilder extension

Postby verbaljam » Mon Apr 26, 2010 1:33 pm

Okay, that did the trick. After some finetuning I got it all working now. Thank you very much for your kind help.
If you read Dutch, you read Verbal Jam.
Lack of documentation makes even the best program useless...
verbaljam
 
Posts: 143
Joined: Thu Apr 22, 2010 8:32 am
Location: Amsterdam

Re: Formbuilder extension

Postby jadwigo » Mon May 03, 2010 7:28 am

thephrase wrote:spam referrer is not right


Do you have a place where I can see the form?
My pivotx playground is at http://jivotx.twokings.eu - the rest is at http://www.jadwigo.nl
jadwigo
Developer
 
Posts: 117
Joined: Wed Nov 18, 2009 9:49 am
Location: Den Haag, Netherlands

Next

Return to 2.x Extensions

Who is online

Users browsing this forum: No registered users and 2 guests

cron