Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • I have this issue also. seem linked also to theme, in my case Avada. You have the same?

    Same problem! Thanks to stack overflow I’ve solved: you need to upgrade to PHP 5.3 or newest for anonymous function support.

    Now i’m going to test this plugin!! Seems awesome…

    thanks!

    WOW!! I made it!!
    For anyone with same problem I post the solution:
    in “functions.php” file

    add_action('callknews', array($Knews_plugin,'add_user'),10,6);
    
    function my_conversion( $cf7 )
    {
    	$email = $cf7->posted_data["email"];
    	$nome = $cf7->posted_data["nome"];
    	do_action ('callknews', $email, 7, 'it', 'it_IT',array('1'=>$nome,'2'=>$nome),TRUE);
    	return TRUE;
    }
    
    add_action( 'wpcf7_before_send_mail', 'my_conversion' );

    i’m happy! ??
    Sangio

    Hi everybody, i need a help!
    i tryed different way and the trick in that post have help me to join a half solution. (great half thanks! ??
    in few words I have put in functions.php

    add_action('callknews', array($Knews_plugin,'add_user'));
    
    function my_conversion( $cf7 )
    {
    	$email = $cf7->posted_data["email"];
    	do_action ('callknews', $email, 1, 'it', 'it_IT');
    	return TRUE;
    }
    
    add_action( 'wpcf7_before_send_mail', 'my_conversion' );

    rest 2 problems:
    1.CF7 not reply “message sent” but message will be sent
    2.the user will be added without any ML subscription, language is “en” and not “it” (ignore the lang and ML parameters)

    Great big (entire) thanks for any reply

    hello! excuse my not perfect english!
    First of all: great plugin!
    My problem: I have to put any person utilize my CF7 (contact form 7 plugin) on my site on the mailinglist of knews. I’ve tried this code:

    add_action( 'wpcf7_before_send_mail', 'my_conversion' );
    
    	function my_conversion( $cf7 )
    	{
    	$email = $cf7->posted_data["your-email"];
    	$name = $cf7->posted_data["your-name"];
    	$Knews_plugin->add_user($email, 7, 'it', 'it_IT');
    	return TRUE;
    	}

    in functions.php file.
    The page with contact form rest in sending and nothing happen (no mail – no adding user).

    if I comment the line add_user it work (send email normally), but obiouvsly the mailing list don’t change

    if I put only the line for test the function
    $Knews_plugin->add_user('[email protected]', 7, 'it', 'it_IT');
    it work…

    where I wrong?

    at the end last question: can I put in ML another information like name and activation? Something like that:
    $Knews_plugin->add_user($email, 7, 'it', 'it_IT', $name, 'activate');

    Thanks a lot for any reply!!
    Sangio

Viewing 5 replies - 1 through 5 (of 5 total)