Forums

ChronoForms with JNEWS

jamboo 23 Dec, 2010
i would like to use chronoforms with JNEWS. (new version off Acajoom newsletter)

How can i combine my "chronoform" with the subscription to JNEWS newsletter.

Here i need the name and the email adress and the id of the newsletterlist (i guess) to pass true JNEWS component.

Hopefully the JNEWS letter will sent then a mail to confirm the opt in.

Can you help me out with this?
GreyHead 23 Dec, 2010
Hi jamboo ,

There are some posts here on AcaJoom, please check these (I guess that there bay have been some changes in JNEWS??)

There's also a similar example (using iContact) in this article from The ChronoForms Book.

Bob
jamboo 03 Jan, 2011
Hi Bob,

i bought your cooking book and followed your instructions. I tryed to use the simple form to start with but even that i am not getting to work. So hopefully you can show me the wayarrow-right

This from the Jnews form

<!-- Begining : jNews Form -->
<div><form action="http://www.domainname.com/index.php?option=com_jnewsletter" method="post" name="modjnewsletterForm"> <input name="Itemid" type="hidden" /><input id="wz_31" class="inputbox" value="1" name="subscribed[1]" checked="checked" type="checkbox" /> <input name="sub_list_id[1]" value="18" type="hidden" /> NewsletterListName<br /> <input name="acc_level[1]" value="29" type="hidden" /> <input id="wz_11" size="10" value="Name" class="inputbox" name="name" onblur="if(this.value=='') this.value='Name';" onfocus="if(this.value=='Name') this.value='' ; " type="text" /> <br /> <input id="wz_12" size="10" value="E-mail" class="inputbox" name="email" onblur="if(this.value=='') this.value='E-mail';" onfocus="if(this.value=='E-mail') this.value='' ; " type="text" /> <br /><br /><input id="wz_2" class="inputbox" value="1" name="receive_html" checked="checked" type="checkbox" />Ontvang HTML? <br /> <input id="wz_22" value="Subscribe" class="button" type="submit" /> <input name="act" value="subscribe" type="hidden" /> <input name="listname" value="1" type="hidden" /> <input name="passwordA" value="********" type="hidden" /> <input name="fromSubscribe" value="1" type="hidden" /> <input name="security_captcha" value="******=" type="hidden" /></form></div>


<!-- End : jNews Form -->

This is the Form Code part

<div class="form_item">
  <div class="form_element cf_checkbox">
    <label class="cf_label" style="width: 150px;">Newsletter</label>
    <div class="float_left">
      <input value="1" title="" class="radio validate-one-required" id="subscribed_01" name="subscribed" type="checkbox" />
      <label for="check00" class="check_label">NewsletterListName</label>
      <br />
      

    </div>
    
  </div>
  <div class="cfclear"> </div>
</div>

<div class="form_item">
  <div class="form_element cf_textbox">
    <label class="cf_label" style="width: 150px;">Your name</label>
    <input class="cf_inputbox required" maxlength="150" size="30" title="" id="name" name="name" type="text" />
  
  </div>
  <div class="cfclear"> </div>
</div>

<div class="form_item">
  <div class="form_element cf_textbox">
    <label class="cf_label" style="width: 150px;">Your Email</label>
    <input class="cf_inputbox required validate-email" maxlength="150" size="30" title="" id="email" name="email" type="text" />
  
  </div>
  <div class="cfclear"> </div>
</div>

<div class="form_item">
  <div class="form_element cf_checkbox">
    <label class="cf_label" style="width: 150px;">HTML email=</label>
    <div class="float_left">
       <input value="1" title="" class="radio validate-one-required" id="receive_html" name="receive_html[]" type="checkbox" />
      <label for="check10" class="check_label">Yes</label>
      <br />
      

    </div>
    
  </div>
  <div class="cfclear"> </div>
</div>

<div class="form_item">
  <div class="form_element cf_button">
    <input value="Subscribe" name="button_4" type="submit" />
  </div>
  <div class="cfclear"> </div>
</div>

Here the part i placed in Extra field values to send under General

index.php?option=com_jnewsletter


Error line above CURL params

CURL OK : the CURL function was found on this server.
$params: JParameter Object ( [_raw] => debugging=0 target_url=http:// header_in_response=0 onsubmit=before_email [_xml] => [_elements] => Array ( ) [_elementPath] => Array ( [0] => /home/******/public_html/libraries/joomla/html/parameter/element ) [_defaultNameSpace] => _default [_registry] => Array ( [_default] => Array ( [data] => stdClass Object ( [debugging] => 1 [target_url] => http://www.domainname.com/index.php?option=com_jnewsletter [header_in_response] => 0 [onsubmit] => before_email ) ) ) [_errors] => Array ( )

)

I also setup the emails to be sent to the subscriber and to the admin, off wich i am not sure that i had too, because normally JNews will sent a email to confirm the subscription. I guess in this case they get 2 emails. 1 From Chronoforms with there submitted information ( i have made a form with more information than just the subscription questions) and the other from JNews with the option to confirm there subscription.

If you have any suggestion how i shoud work this out.. iam a little lost right now.

Thanks in advance Bob

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 ( [subscribed] => 1 [name] => jamboo [email] => [email]info@domainname.com[/email] [receive_html] => Array ( [0] => 1 ) [button_4] => Subscribe [ad451bb28c423a9eaeda41d75e6414fa] => 1 [1cf1] => 3bb8e09402790aa303f2ec843bf1e1e4 [chronoformname] => JNews_1 )
6. $_FILES Array: Array ( )
7. Form passed the plugins step (if enabled) OK
8. Debug End

GreyHead 03 Jan, 2011
Hi jamoo,

This isn't a particularly simple form to start out with.

I can see one immediate problem. You don't have a target URL set for the cURL plug-in so that will not work target_url=http://

Also the Extra Fields values box only takes entries in the form name=value; you have index.php?option=com_jnewsletter in there. It should only be option=com_jnewsletter; the index.php is part of the missing target URL.

Bob
jamboo 04 Jan, 2011
Thanks for your fast reply Bob 😀 i still need some signs i guess

Under GENERAL - Form URLs
i filled in The form's "action" URL:
index.php?option=com_jnewsletter

Then i went back to check the Curl Params:

index.php?option=com_jnewsletter

These are the extra field values:

sub_list_id[1]=18
acc_level[1]=29
act=subscribe
listname=1
passwordA=********
fromSubscribe=1

Still get this error:

$params: JParameter Object ( [_raw] => debugging=0 target_url=http:// header_in_response=0 onsubmit=before_email [_xml] => [_elements] => Array ( ) [_elementPath] => Array ( [0] => /home/******/public_html/libraries/joomla/html/parameter/element ) [_defaultNameSpace] => _default [_registry] => Array ( [_default] => Array ( [data] => stdClass Object ( [debugging] => 1 [target_url] => index.php?option=com_jnewsletter [header_in_response] => 0 [onsubmit] => before_email ) ) ) [_errors] => Array ( ) )

I don't know were to change that in this line above will target_url=http:// change.
I also think its strange that even when i save on the CURL params tab that i want to set:
do the flow control after Email it rmains on before when i look again.
GreyHead 04 Jan, 2011
Hi jamboo,

I think that you may need an updated version of the plug-in to get this to work correctly. I'll check that out and post again.

Bob
jamboo 04 Jan, 2011
Okay 😀 Great

Thanks Bob
jamboo 12 Jan, 2011
Thanks Bob,

i'll do that.
Hirtsy^6 17 Aug, 2011
Recently found chronoforms V4 - it is worth the effort to learn as it has power to make large tasks easy. V4 documentation is a bit thin at present but the forum is very well supported and I'm sure it will achieve exactly what I ask of it. V3 documentation is very complete so expect V4 to progress nicely.
hconsalvi 12 Feb, 2013
Do you know if there's still the option to link these two programs together? I've followed the tutorial here and it's not working. Currently using Chronoforms V4 and JNEWS Social V 7.5.5. Please see attached screenshot. I haven't added anything else except for the redirect URL. am I missing something?
GreyHead 12 Feb, 2013
Hi hconsalvi,

I'd expect the same approach to work but it may need updating to work with the current releases of ChronoForms and JNews.

Bob
Max_admin 19 Feb, 2013
Hi,

You can't use the curly brackets in the fields box, something like this will not work:
email={email}


instead just use
email=email


The left part is the param name in the redirect url and the right part is the field name in the data array to be fetched.

Regards,
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.