Dreamhost announce list

randlieb 29 May, 2009
I created a new form but instead of using the wizard I pasted the code from the Dreamhost how-to into the "form code>form html" text box and saved it. In the form url>submit url textbox I added the form post url from the Dreamhost how-to. The form works fine! I get all the re-direct pages (form fields I entered in the Dreamhost control panel)! I can subscribe and unsubscribe! HOWEVER....The security verification doesn't work. Everything shows up on the subscription page, but when I submit the data and don't enter the code it submits anyway without any warning that the code was not entered.

Here is the code I have inside the form:

---------------------
<input type="hidden" name="list" value="admin" />
<input type="hidden" name="domain" value="bconwa.com" />
<input type="hidden" name="url" value="" />
<input type="hidden" name="unsuburl" value="" />
<input type="hidden" name="alreadyonurl" value="" />
<input type="hidden" name="notonurl" value="" />
<input type="hidden" name="invalidurl" value="" />
<input type="hidden" name="emailconfirmurl" value="" />
<input type="hidden" name="emailit" value="1" />
Name * <br /><input name="name" /><br />
E-mail * <br /><input name="email" /><br />
Enter Security Code *<br />
{imageverification}<br />
<input type="submit" name="submit" value="Subscribe" /> 
<input type="submit" name="unsub" value="Unsubscribe" />
---------------------------------

Any idea why the security code isn't working? I have the spam settings all configured as follows:

'yes', 'with fonts' and 'try to republish ('don't republish' didn't make any difference). GD Version bundled (2.0.34 compatible), FreeType Support Yes, PNG Support Yes

Two other forms on this site show the wrong code entered warning just fine. They were both created with the wizard.

Any help will be greatly appreciated!
GreyHead 29 May, 2009
Hi randlieb,

If you use the OnSubmit URL the form results are sent directly to DreamHost; ChronoForms never sees them and so has no opportunity to check the imageverification.

If this is what you want then simply remove the imageverification.

If you do need to verify or you want to 'do something' with the submitted information then you'll need either to use the CURL plugin or to build a redirect URL to send the information to DreamHost later in the process.

Bob
randlieb 29 May, 2009
I would like to keep the security code so can you tell me what is this curl plugin and where do I find it and what do I do with it? I did a google on it and kinda see what it does, but I'm no programmer so some explicit instructions here would be very helpful, thank you.

Is it something that Dreamhost has or sets up?
GreyHead 29 May, 2009
Hi randlieb,

It's a ChronoForms plugin - look in the left hand column of the forms manager. There are a couple of example sof using it in the forums here.

Bob
randlieb 29 May, 2009
The only plugins I see are these:
Profile Page
Joomla Registration
CB Registration

I am using Chronoforms 3.0
GreyHead 29 May, 2009
Hi randlieb,

OK - the plugin was only added in the more recent versions. There was a version in the forums a while ago and I think that would work with v3.0 STABLE (Max may know better).

Bob
randlieb 29 May, 2009
I went ahead and backed up all my forms and installed your latest release. Boy you sure added a lot of extra plugins! Haven't had a chance to set up the curl yet. Will let you know if I have any problems/questions.

Thanks
randlieb 30 May, 2009
Here are screenshots of the set up.

With this set up the image verification works but the form won't submit.
GreyHead 30 May, 2009
Hi randlieb,

In teh CURL setup from General Tab there are a row of inputs corresponding to your form fields and a text area near the bottom.

Only use form fields for variable data - in this case just the subscribers name and email. Remove all the other fields from your form.

Use the text area for constant data (stuff that is the same every time you use the form. The format here is field_name=value so you'll want, for example
list=admin
domain=bconwa.com
url=/index.php?option=com_chronocontact&view=article&id=88
. . .

There are a couple of things to notice here.

1) It looks to me as though the urls there should include the domain
url=htp://bconwa.com/index.php?option=com_chronocontact&view=article&id=88


2) Unless you have an excellent reason I'd use the full Chronoforms URL rather than the menu url here.

3) Some versions of the CURL plugin can't handle '=' in a value, this may need fixing. I know that I fixed my version but I'm not sure if thst's in the current release or not.

Bob
randlieb 30 May, 2009
OK...here's how it's set up now

In the Form Manager under the 'Form Code' tab I left all the values blank.
In the Form Manager under the 'Form URLs' tab I left both text boxes blank.
In the Form Manager under the 'Plugins' tab I have CURL checked.

In the CURLS view under the 'General' tab I filled in only name and email in their respective text boxes.
In the CURLS view in the Extra Fields Data text area I have the following:
list=admin
domain=bconwa.com
url=http://newsite.bconwa.com/index.php?option=com_chronocontact&view=article&id=88
unsuburl=http://newsite.bconwa.com/index.php?option=com_chronocontact&view=article&id=89
alreadyonurl=http://newsite.bconwa.com/index.php?option=com_chronocontact&view=article&id=90
notonurl=http://newsite.bconwa.com/index.php?option=com_chronocontact&view=article&id=91
invalidurl=http://newsite.bconwa.com/index.php?option=com_chronocontact&view=article&id=92
emailconfirmurl=http://newsite.bconwa.com/index.php?option=com_chronocontact&view=article&id=93
emailit=1
submit=submit
unsub=unsub
In the CURLS view in the 'CURL params' tab in the Target URL text box I have the url taken from the Dreamhost page.

I left all the 'optional' fields blank in the Dreamhost set up.

...and the form isn't submitting
randlieb 30 May, 2009
I have tried about every combination I could think of. Used the com_chronocontact menu links, used the regular links I had to begin with, had the values filled in on Dreamhost along with the values in the form and the curl config, and all combinations thereof. Nothing works that will get to send the form. But the image verification works fine!!! I really want the extra spam proof of the image verification but if I can't get this fixed today I'll just take it out and use the form as it was before.

Please any more suggestions???
GreyHead 31 May, 2009
Hi randlieb,

Please open up com_chronocontact/plugins/cf_CURL.php and look around line 240 you should see something like this block of code.
        if ( trim($row->extra1) ) {
            $extras = explode("\n",$row->extra1);
            foreach($extras as $extra){
                $values = array();
                $values = explode("=",$extra); // <-- edit this line
                $curl_values[$values[0]] = trim($values[1]);
            }
        }
Please change the marked line to be like this
        if ( trim($row->extra1) ) {
            $extras = explode("\n", $row->extra1);
            foreach ( $extras as $extra ) {
                // Note: accept only the first parameter pair on each line
                $values = explode("=", $extra, 2); // <-- changed line
                $curl_values[$values[0]] = trim($values[1]);
            }
        }
This should stop ChronoForms misinterpreting the extra '=' signs in the URLs.

Bob
paulus221080 02 Jun, 2009
Hello,

I am trying to get chronoforms to work in a correct way for me. I have CURL installed and it's active. I use it for sending the information to salesforce system.

But my question is, next to forwarding the input fields to salesforce I also want to send the input fields from the form to a thankyou page (article). But I really don't get it done. Can somebody help me please?

Many thanks in advanced,

Paul.
GreyHead 02 Jun, 2009
Hi Paul,

Any PHP + HTML you put into the OnSubmit boxes will display after the form is submitted. That's much simpler than using an article.

Bob
paulus221080 02 Jun, 2009
Hi Bob,

Thanks for your quick response. Well I tried that but since I am using CURL and enabling this plugin I get above my thank you text the number 1. At the forms I didn't enable this plugin it's shown correct. Do you know about this issue.?

Thanks in advanced,

Paul.
GreyHead 02 Jun, 2009
Hi Paul,

It sounds as though you may have 'debugging' turned on in the CURL Plugin.

Bob
paulus221080 03 Jun, 2009
Hi Bob,

I had the same idea but it looks like it's not turned on. It's really strange. I tried really a lot of stuff. I went through the code but I can't find anything strange. But I know for sure that it comes from the CURL plugin. I hope somebody can help me with this as it already took me some days to check al these things.

Thanks in advanced,

Paul Sanders.
paulus221080 04 Jun, 2009
I tried the newest version that I found on the form but I still have the same problem. It's really strange. As if this number "1" comes falling from the air. Debugging is off, form is setup correctly, nothing strange found in the code.😟 I have really no clue anymore.

Hope somebody will see this and had/have the same problem.

Kind regards,

Paul.
Max_admin 14 Jun, 2009
Hi Paul,

do you have the get headers option enabled in the curl config at the 2nd tab ?

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.