• Hello,

    Just wondering if this is possible with the plugin.

    When user press a specific link the quiz opens in the same window. With the same popup effect as Lightbox or similiar.

    Then, the user choose from bullets, either 1 or 2. Then they need to type in a number. Then, on the last page they see their number multiplied by 90.

    No stats and so on are required. No names and so on should be store. This is just for the users to see right at the moment.

    Could this be solved by this plugin?

    https://www.ads-software.com/plugins/watu/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Bob

    (@prasunsen)

    Sorry, no, this sounds like something that needs custom code.

    Can you send an email to the admin ONLY if the user gets an A or 100% otherwise no email is sent? Any help is appreciated.

    • This reply was modified 7 years, 10 months ago by Melissa.
    • This reply was modified 7 years, 10 months ago by Melissa.

    global $wpdb;
    $results = $wpdb->get_results ( "SELECT * FROM
    wp_7eyr1z_watu_takings ORDER BY wp_7eyr1z_watu_takings.points DESC" );
    foreach ($results as $result){

    if($result->num_rows>=1) {
    $email='subject goes here';
    $message='One or more products are out of stock:\n\n';
    while($row=$result->fetch_assoc()) {
    $message.="here";
    }
    if(mail($email, $subject, $message)) {
    //mail successfully sent
    } else {
    //mail unsuccessful
    }
    }
    }

    • This reply was modified 7 years, 10 months ago by Melissa.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Is this possible?’ is closed to new replies.