Plugin Directory

Changeset 1760465


Ignore:
Timestamp:
11/08/2017 12:19:54 AM (8 years ago)
Author:
tryinteract
Message:

Updated plugin to version 3.0 with support for Quizzes, Polls, and Giveaways

Location:
interact-quiz-embed
Files:
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • interact-quiz-embed/tags/3.0/interact-quiz-embed.php

    r1376689 r1760465  
    55Description: Use this plugin to embed your Interact quiz into your Wordpress site.
    66Author: Matthew Clark
    7 Version: 2.0.1
     7Version: 2.1.0
    88Author URI: https://www.tryinteract.com
    99
    10 Copyright 2014  Interact  (email : matthew@tryinteract.com)
     10Copyright 2017 The Quiz Collective  (email: help@tryinteract.com)
    1111
    1212This program is free software; you can redistribute it and/or modify
     
    2424*/
    2525
    26 function interact_quiz_embed($atts){
     26/*
     27*
     28* Short Code Hook Legacy
     29*
     30*/
     31
     32function interact_quiz_embed($atts) {
    2733    shortcode_atts(array('user'=>'', 'id'=>'', 'w'=>'600', 'h'=>'500'), $atts);
    2834
     
    5157add_shortcode('interact-quiz','interact_quiz_embed');
    5258
     59
     60/*
     61*
     62* Short Code Hook
     63*
     64*/
     65
     66function interact_embed($atts) {
     67    shortcode_atts(array('id'=>'', 'type'=>'quiz', 'w'=>'800', 'h'=>'800'), $atts);
     68
     69    if(isset($atts['w'])) { $width = $atts['w']; } else { $width = '800'; }
     70    if(isset($atts['h'])) { $height = $atts['h']; } else { $height = '800'; }
     71    if(isset($atts['type'])) { $type = $atts['type']; } else { $type = 'quiz'; }
     72
     73    $app_id = $atts['id'];
     74    $ref = $app_id . md5($app_id . rand());
     75
     76    return '
     77        <div id="interact-' . $ref . '"></div>
     78        <script type="text/javascript">
     79            (function(){               
     80
     81                window.addEventListener("load", function(){
     82                    var app_id = "' . $app_id . '";
     83                    var ref = "' . $ref . '";
     84                    var w = "' . $width . '";
     85                    var h = "' . $height . '";
     86                    var host = "' . $type . '.tryinteract.com";
     87
     88                    window[ref] = new InteractApp();
     89                    window[ref].initialize({"ref":ref,"appId": app_id,"width":w,"height":h,"async":true,"host":host,"auto_resize":true,"mobile":true});
     90                    window[ref].display();
     91                });
     92
     93            })(window);
     94        </script>
     95    ';
     96}
     97
     98add_shortcode('interact','interact_embed');
     99
     100/*
     101*
     102* Promotion Script Hook inject into <head>
     103*
     104*/
     105
     106function interact_scripts(){
     107    global $post;
     108
     109    // embed script if shortcode exists on page content
     110    if(is_a($post, 'WP_Post') && has_shortcode($post->post_content, 'interact')) {
     111      ?>
     112            <script type="text/javascript">
     113                (function(d, t){
     114                    var s=d.createElement(t);
     115                    s.src='https://i.tryinteract.com/embed/app.js';
     116                    s.onload=s.onreadystatechange=function(){var rs=this.readyState;if(rs)if(rs!='complete')if(rs!='loaded')return;};
     117                    var scr=d.getElementsByTagName(t)[0],par=scr.parentNode;par.insertBefore(s,scr);
     118                })(document,'script');
     119            </script>
     120        <?php
     121    }
     122
     123    // promotion script
     124    if(get_option('interact_promotion_id') !== false) {
     125      ?>
     126        <script type="text/javascript">
     127              (function(i,n,t,e,r,a,c){i['InteractPromotionObject']=r;i[r]=i[r]||function(){
     128              (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=n.createElement(t),
     129              c=n.getElementsByTagName(t)[0];a.async=1;a.src=e;c.parentNode.insertBefore(a,c)
     130              })(window,document,'script','https://i.tryinteract.com/promotions/init.js','i_promo');
     131              i_promo('init', '<?php echo get_option('interact_promotion_id') ?>');
     132            </script>
     133        <?php
     134    }
     135}
     136
     137add_action( 'wp_head', 'interact_scripts' );
     138
     139
     140/*
     141*
     142* Options Page for Plugin
     143*
     144*/
     145
    53146function interact_option_page(){
     147
     148    if(isset($_POST['interact_promotion_id'])) {
     149        $updatedPromoId = false;
     150        $newId = $_POST['interact_promotion_id'];
     151
     152        if($newId === '') {
     153            $updatedPromoId = true;
     154            delete_option('interact_promotion_id');
     155        }
     156       
     157        if(strlen($newId) > 7) {
     158            $updatedPromoId = true;
     159            update_option('interact_promotion_id', $_POST['interact_promotion_id']);
     160        }
     161    }
     162
     163    $id = get_option('interact_promotion_id');
    54164
    55165    ?>
    56166    <div class="wrap">
    57167        <?php screen_icon(); ?>
    58         <h2>Interact Embed Shortcode Generator</h2>
    59         <p>Use this plugin to generate a shortcode to embed your Interact quiz into your Wordpress site. After filling out the information, you will receive a shortcode that you can add to any post/page to embed your quiz!</p>
     168        <h1>Interact Quiz Embed Plugin</h1>
     169        <h2>Embed your Quiz, Poll, or Giveaway with a Shortcode</h2>
     170        <p>This plugin generates a shortcode which embeds your Interact App into your WordPress content. <a href='https://en.support.wordpress.com/shortcodes/' target='_blank'>How do I use a shortcode?</a></p>
     171
    60172        <?php
    61         if($_POST['app_id']){
    62             $app_id = $_POST['app_id'];
    63            
    64             echo '<h3>Your shortcode: <pre>[interact-quiz id="'.$app_id.'"';
    65            
    66             if(isset($_POST['interact_size_w']) && !empty($_POST['interact_size_w'])){
    67                 echo ' w="'.$_POST['interact_size_w'].'"';
     173        if(isset($_POST['app_url'])) {
     174
     175            $app_url = $_POST['app_url'];
     176            $parts = explode('/', $app_url);
     177
     178            $app_id = null;
     179            $app_type = null;
     180
     181            if(count($parts) === 6) {
     182                if($parts[4] === 'quiz' || $parts[4] === 'poll' || $parts[4] === 'giveaway') {
     183                    if($parts[5] && strlen($parts[5]) > 5) {
     184                        $app_id = $parts[5];
     185                        $app_type = $parts[4];
     186                    }
     187                }
    68188            }
    69             if(isset($_POST['interact_size_h']) && !empty($_POST['interact_size_h'])){
    70                 echo ' h="'.$_POST['interact_size_h'].'"';
     189
     190
     191            if($app_id && $app_type) {
     192                echo '<h4>Copy &amp; Paste your shortcode into your Post:';
     193                echo '<pre style="display:block;max-width:600px;background: #333;padding: 20px;border-radius: 4px;color: white;font-weight: 400;">';
     194                echo '[interact id="'. $app_id .'" type="'. $app_type .'"';
     195               
     196                if(isset($_POST['interact_size_w']) && !empty($_POST['interact_size_w'])){
     197                    echo ' w="'.$_POST['interact_size_w'].'"';
     198                }
     199                if(isset($_POST['interact_size_h']) && !empty($_POST['interact_size_h'])){
     200                    echo ' h="'.$_POST['interact_size_h'].'"';
     201                }
     202               
     203                echo ']</pre></h4>';
     204            } else {
     205                echo '<h4 style="color: red;">Invalid App URL...</h4>';
    71206            }
    72            
    73             echo ']</pre></h3>';
    74207        }
    75208        ?>
    76         <hr>
    77209        <form action="" method="post" id="interact-embed-form">
    78210            <table class="form-table">
    79211                <tr>
    80                     <th scope="row"><label for="app_id">Interact Quiz URL</label></th>
    81                     <td>https://quiz.tryinteract.com/#/<input name="app_id" type="text" id="app_id" value="" class="regular-text code" />
    82                     <p class="description">The quiz URL can be found in your dashboard under 'Embed'. It should be in the form of https://quiz.tryinteract.com/#/[INTERACT APP ID]</p>
     212                    <th scope="row"><label for="app_id">Interact App URL</label></th>
     213                    <td><input name="app_url" type="text" id="app_id" placeholder="https://www.tryinteract.com/share/app/ID" value="" class="regular-text" />
     214                    <p>The URL above can be found in your dashboard under <br/><b>'Embed &amp; Share' &gt; 'Embed in your Website' &gt; 'WordPress'.</b></p>
    83215                    </td>
    84216                    </tr>
     
    96228            <p><input type="submit" name="submit" value="Generate Shortcode" class="button button-primary"></p>
    97229        </form>
     230        <br/>
     231        <br/>
     232
     233        <hr/>
     234        <h2>Promote your Quiz with a Popup or Announcement Bar</h2>
     235        <form action="" method="post">
     236            <p>Enter your <b>Promotion ID</b> which can be found in your dashboard under 'Embed &amp; Share'</p>
     237            <table class="form-table">
     238                <tr>
     239                    <th scope="row"><label for="app_id">Promotion ID</label></th>
     240                    <td>
     241                        <input name="interact_promotion_id" type="text" id="interact_promotion_id" class="code" value="<?php if($id){ echo $id; } ?>" />
     242                    </td>
     243                </tr>
     244            </table>
     245
     246            <?php if($id !== false): ?>
     247                <p>Promotions are now <b>configured</b> and can be configured in your dashboard under 'Embed &amp; Share'.</p>
     248            <?php endif; ?>
     249            <?php if($updatedPromoId): ?><p><b>Success:</b> Promotion ID was updated...</p><?php endif;?>   
     250            <?php if($newId && !$updatedPromoId): ?><p><b>Warning:</b> Promotion ID was not updated...</p><?php endif;?>   
     251            <p><input type="submit" name="submit" value="<?php if($id === false): ?>Set<?php else: ?>Update<?php endif;?> Promotion ID" class="button button-primary"></p>
     252        </form>
    98253    </div>
    99254
  • interact-quiz-embed/tags/3.0/readme.txt

    r1376689 r1760465  
    11=== Interact: Embed A Quiz On Your Site ===
    22Contributors: tryinteract
    3 Tags: interact, quiz, embed, shortcode
     3Tags: interact, quiz, poll, giveaway, embed, shortcode, promotion
    44Requires at least: 3.0.1
    5 Tested up to: 3.4
    6 Stable tag: 2.0.1
     5Tested up to: 4.8.2
     6Stable tag: 3.0
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
    99
    10 Use this plugin to generate a shortcode to embed your Interact quiz into your Wordpress site.
     10Use this plugin to generate a shortcode to embed your Interact Quiz, Poll, or Giveaway into your WordPress site.
    1111
    1212== Description ==
    1313
    14 Use this plugin to generate a shortcode to embed your Interact quiz into your Wordpress site. After filling out the information, you will receive a shortcode that you can add to any post/page to embed your quiz!
     14Use this plugin to generate a shortcode to embed your Interact Quiz, Poll, or Giveaway into your WordPress site. Promote your quiz within a Popup or an Announcement Bar.
    1515
    16 Check out some examples of how over 2000 companies have utilized quizzes on their websites [here](https://tryinteract.com/customers)
     16Check out some examples of how over 30,000 companies have utilized quizzes on their websites [here](https://tryinteract.com/customers/)
    1717
    18 **IMPORTANT:** You will FIRST need to go to [Interact](https://tryinteract.com), sign up, and create an Interact quiz before you embed it into your site. Installing this plugin without signing up on [Interact](https://tryinteract.com) will result in a broken quiz experience on your site.
     18**IMPORTANT:** An Interact account is required for this plugin to work as intended.
    1919
    20 If you have technical questions, email help@tryinteract.com
     20Visit [Interact](https://tryinteract.com), sign up, and create an Interact Quiz, Poll, or Giveaway before you embed it into your site.
     21
     22Installing this plugin without signing up on [Interact](https://tryinteract.com) will result in a broken quiz experience on your site.
     23
     24Questions? Email help@tryinteract.com
    2125
    2226== Installation ==
    2327
    24 1. Create a quiz for free at https://www.tryinteract.com
    25 2. Get your app ID for the quiz you wish to embed
    26 3. Upload `interact-quiz-embed.php` to the `/wp-content/plugins/` directory
    27 4. Activate the plugin through the 'Plugins' menu in WordPress
    28 5. Generate shortcode for the quiz you wish to embed
    29 6. Add shortcode to any post or page in your Wordpress site to embed quiz
     281. Create a Quiz, Poll, or Giveaway for free at https://www.tryinteract.com
     292. Log in to your site’s Dashboard (e.g. http://www.example.com/wp-admin)
     303. In the left panel, click 'Plugins', then click 'Add New'.
     314. Search for 'Interact Quiz Embed' — the latest version will appear at the top of the list of results.
     325. Click the 'Install Now' button.
     336. Wait for the installation to finish, then click the 'Activate' button.
     347. Generate shortcode for the quiz you wish to embed
     358. Add shortcode to any post or page in your Wordpress site to embed Quiz, Poll, or Giveaway
     36
    3037
    3138== Frequently Asked Questions ==
    3239
    33 = How to access the embed code generator? =
     40= Where can I find my 'Interact App ID'? =
    3441
    35 The embed code generator can be found in the 'Settings' sidebar menu in the Wordpress admin dashboard.
    36 
    37 = Where can I find my 'Interact Quiz URL'? =
    38 
    39 This can be found in your Interact Dashboard by viewing your quizzes and clicking 'Embed'. For example, it should look something like: https://quiz.tryinteract.com/#/abcdefghijk0123456789
     42This can be found in your Interact Dashboard by viewing your quizzes and clicking 'Share & Embed'.
     43For example, it should look something like: https://quiz.tryinteract.com/#/abcdefghijk0123456789
    4044
    4145== Screenshots ==
     
    4751== Changelog ==
    4852
     53= 3.0 =
     54* Added Promotions Feature (Announcement Bar & Popup)
     55* Auto-Resize Quiz by Default
     56* Supports Polls and Giveaways in addition to Quizzes
     57
    4958= 2.0.1 =
    5059* Bug fixes. Removes link tag for shortcodes.
  • interact-quiz-embed/trunk/interact-quiz-embed.php

    r1376689 r1760465  
    55Description: Use this plugin to embed your Interact quiz into your Wordpress site.
    66Author: Matthew Clark
    7 Version: 2.0.1
     7Version: 2.1.0
    88Author URI: https://www.tryinteract.com
    99
    10 Copyright 2014  Interact  (email : matthew@tryinteract.com)
     10Copyright 2017 The Quiz Collective  (email: help@tryinteract.com)
    1111
    1212This program is free software; you can redistribute it and/or modify
     
    2424*/
    2525
    26 function interact_quiz_embed($atts){
     26/*
     27*
     28* Short Code Hook Legacy
     29*
     30*/
     31
     32function interact_quiz_embed($atts) {
    2733    shortcode_atts(array('user'=>'', 'id'=>'', 'w'=>'600', 'h'=>'500'), $atts);
    2834
     
    5157add_shortcode('interact-quiz','interact_quiz_embed');
    5258
     59
     60/*
     61*
     62* Short Code Hook
     63*
     64*/
     65
     66function interact_embed($atts) {
     67    shortcode_atts(array('id'=>'', 'type'=>'quiz', 'w'=>'800', 'h'=>'800'), $atts);
     68
     69    if(isset($atts['w'])) { $width = $atts['w']; } else { $width = '800'; }
     70    if(isset($atts['h'])) { $height = $atts['h']; } else { $height = '800'; }
     71    if(isset($atts['type'])) { $type = $atts['type']; } else { $type = 'quiz'; }
     72
     73    $app_id = $atts['id'];
     74    $ref = $app_id . md5($app_id . rand());
     75
     76    return '
     77        <div id="interact-' . $ref . '"></div>
     78        <script type="text/javascript">
     79            (function(){               
     80
     81                window.addEventListener("load", function(){
     82                    var app_id = "' . $app_id . '";
     83                    var ref = "' . $ref . '";
     84                    var w = "' . $width . '";
     85                    var h = "' . $height . '";
     86                    var host = "' . $type . '.tryinteract.com";
     87
     88                    window[ref] = new InteractApp();
     89                    window[ref].initialize({"ref":ref,"appId": app_id,"width":w,"height":h,"async":true,"host":host,"auto_resize":true,"mobile":true});
     90                    window[ref].display();
     91                });
     92
     93            })(window);
     94        </script>
     95    ';
     96}
     97
     98add_shortcode('interact','interact_embed');
     99
     100/*
     101*
     102* Promotion Script Hook inject into <head>
     103*
     104*/
     105
     106function interact_scripts(){
     107    global $post;
     108
     109    // embed script if shortcode exists on page content
     110    if(is_a($post, 'WP_Post') && has_shortcode($post->post_content, 'interact')) {
     111      ?>
     112            <script type="text/javascript">
     113                (function(d, t){
     114                    var s=d.createElement(t);
     115                    s.src='https://i.tryinteract.com/embed/app.js';
     116                    s.onload=s.onreadystatechange=function(){var rs=this.readyState;if(rs)if(rs!='complete')if(rs!='loaded')return;};
     117                    var scr=d.getElementsByTagName(t)[0],par=scr.parentNode;par.insertBefore(s,scr);
     118                })(document,'script');
     119            </script>
     120        <?php
     121    }
     122
     123    // promotion script
     124    if(get_option('interact_promotion_id') !== false) {
     125      ?>
     126        <script type="text/javascript">
     127              (function(i,n,t,e,r,a,c){i['InteractPromotionObject']=r;i[r]=i[r]||function(){
     128              (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=n.createElement(t),
     129              c=n.getElementsByTagName(t)[0];a.async=1;a.src=e;c.parentNode.insertBefore(a,c)
     130              })(window,document,'script','https://i.tryinteract.com/promotions/init.js','i_promo');
     131              i_promo('init', '<?php echo get_option('interact_promotion_id') ?>');
     132            </script>
     133        <?php
     134    }
     135}
     136
     137add_action( 'wp_head', 'interact_scripts' );
     138
     139
     140/*
     141*
     142* Options Page for Plugin
     143*
     144*/
     145
    53146function interact_option_page(){
     147
     148    if(isset($_POST['interact_promotion_id'])) {
     149        $updatedPromoId = false;
     150        $newId = $_POST['interact_promotion_id'];
     151
     152        if($newId === '') {
     153            $updatedPromoId = true;
     154            delete_option('interact_promotion_id');
     155        }
     156       
     157        if(strlen($newId) > 7) {
     158            $updatedPromoId = true;
     159            update_option('interact_promotion_id', $_POST['interact_promotion_id']);
     160        }
     161    }
     162
     163    $id = get_option('interact_promotion_id');
    54164
    55165    ?>
    56166    <div class="wrap">
    57167        <?php screen_icon(); ?>
    58         <h2>Interact Embed Shortcode Generator</h2>
    59         <p>Use this plugin to generate a shortcode to embed your Interact quiz into your Wordpress site. After filling out the information, you will receive a shortcode that you can add to any post/page to embed your quiz!</p>
     168        <h1>Interact Quiz Embed Plugin</h1>
     169        <h2>Embed your Quiz, Poll, or Giveaway with a Shortcode</h2>
     170        <p>This plugin generates a shortcode which embeds your Interact App into your WordPress content. <a href='https://en.support.wordpress.com/shortcodes/' target='_blank'>How do I use a shortcode?</a></p>
     171
    60172        <?php
    61         if($_POST['app_id']){
    62             $app_id = $_POST['app_id'];
    63            
    64             echo '<h3>Your shortcode: <pre>[interact-quiz id="'.$app_id.'"';
    65            
    66             if(isset($_POST['interact_size_w']) && !empty($_POST['interact_size_w'])){
    67                 echo ' w="'.$_POST['interact_size_w'].'"';
     173        if(isset($_POST['app_url'])) {
     174
     175            $app_url = $_POST['app_url'];
     176            $parts = explode('/', $app_url);
     177
     178            $app_id = null;
     179            $app_type = null;
     180
     181            if(count($parts) === 6) {
     182                if($parts[4] === 'quiz' || $parts[4] === 'poll' || $parts[4] === 'giveaway') {
     183                    if($parts[5] && strlen($parts[5]) > 5) {
     184                        $app_id = $parts[5];
     185                        $app_type = $parts[4];
     186                    }
     187                }
    68188            }
    69             if(isset($_POST['interact_size_h']) && !empty($_POST['interact_size_h'])){
    70                 echo ' h="'.$_POST['interact_size_h'].'"';
     189
     190
     191            if($app_id && $app_type) {
     192                echo '<h4>Copy &amp; Paste your shortcode into your Post:';
     193                echo '<pre style="display:block;max-width:600px;background: #333;padding: 20px;border-radius: 4px;color: white;font-weight: 400;">';
     194                echo '[interact id="'. $app_id .'" type="'. $app_type .'"';
     195               
     196                if(isset($_POST['interact_size_w']) && !empty($_POST['interact_size_w'])){
     197                    echo ' w="'.$_POST['interact_size_w'].'"';
     198                }
     199                if(isset($_POST['interact_size_h']) && !empty($_POST['interact_size_h'])){
     200                    echo ' h="'.$_POST['interact_size_h'].'"';
     201                }
     202               
     203                echo ']</pre></h4>';
     204            } else {
     205                echo '<h4 style="color: red;">Invalid App URL...</h4>';
    71206            }
    72            
    73             echo ']</pre></h3>';
    74207        }
    75208        ?>
    76         <hr>
    77209        <form action="" method="post" id="interact-embed-form">
    78210            <table class="form-table">
    79211                <tr>
    80                     <th scope="row"><label for="app_id">Interact Quiz URL</label></th>
    81                     <td>https://quiz.tryinteract.com/#/<input name="app_id" type="text" id="app_id" value="" class="regular-text code" />
    82                     <p class="description">The quiz URL can be found in your dashboard under 'Embed'. It should be in the form of https://quiz.tryinteract.com/#/[INTERACT APP ID]</p>
     212                    <th scope="row"><label for="app_id">Interact App URL</label></th>
     213                    <td><input name="app_url" type="text" id="app_id" placeholder="https://www.tryinteract.com/share/app/ID" value="" class="regular-text" />
     214                    <p>The URL above can be found in your dashboard under <br/><b>'Embed &amp; Share' &gt; 'Embed in your Website' &gt; 'WordPress'.</b></p>
    83215                    </td>
    84216                    </tr>
     
    96228            <p><input type="submit" name="submit" value="Generate Shortcode" class="button button-primary"></p>
    97229        </form>
     230        <br/>
     231        <br/>
     232
     233        <hr/>
     234        <h2>Promote your Quiz with a Popup or Announcement Bar</h2>
     235        <form action="" method="post">
     236            <p>Enter your <b>Promotion ID</b> which can be found in your dashboard under 'Embed &amp; Share'</p>
     237            <table class="form-table">
     238                <tr>
     239                    <th scope="row"><label for="app_id">Promotion ID</label></th>
     240                    <td>
     241                        <input name="interact_promotion_id" type="text" id="interact_promotion_id" class="code" value="<?php if($id){ echo $id; } ?>" />
     242                    </td>
     243                </tr>
     244            </table>
     245
     246            <?php if($id !== false): ?>
     247                <p>Promotions are now <b>configured</b> and can be configured in your dashboard under 'Embed &amp; Share'.</p>
     248            <?php endif; ?>
     249            <?php if($updatedPromoId): ?><p><b>Success:</b> Promotion ID was updated...</p><?php endif;?>   
     250            <?php if($newId && !$updatedPromoId): ?><p><b>Warning:</b> Promotion ID was not updated...</p><?php endif;?>   
     251            <p><input type="submit" name="submit" value="<?php if($id === false): ?>Set<?php else: ?>Update<?php endif;?> Promotion ID" class="button button-primary"></p>
     252        </form>
    98253    </div>
    99254
  • interact-quiz-embed/trunk/readme.txt

    r1376689 r1760465  
    11=== Interact: Embed A Quiz On Your Site ===
    22Contributors: tryinteract
    3 Tags: interact, quiz, embed, shortcode
     3Tags: interact, quiz, poll, giveaway, embed, shortcode, promotion
    44Requires at least: 3.0.1
    5 Tested up to: 3.4
    6 Stable tag: 2.0.1
     5Tested up to: 4.8.2
     6Stable tag: 3.0
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
    99
    10 Use this plugin to generate a shortcode to embed your Interact quiz into your Wordpress site.
     10Use this plugin to generate a shortcode to embed your Interact Quiz, Poll, or Giveaway into your WordPress site.
    1111
    1212== Description ==
    1313
    14 Use this plugin to generate a shortcode to embed your Interact quiz into your Wordpress site. After filling out the information, you will receive a shortcode that you can add to any post/page to embed your quiz!
     14Use this plugin to generate a shortcode to embed your Interact Quiz, Poll, or Giveaway into your WordPress site. Promote your quiz within a Popup or an Announcement Bar.
    1515
    16 Check out some examples of how over 2000 companies have utilized quizzes on their websites [here](https://tryinteract.com/customers)
     16Check out some examples of how over 30,000 companies have utilized quizzes on their websites [here](https://tryinteract.com/customers/)
    1717
    18 **IMPORTANT:** You will FIRST need to go to [Interact](https://tryinteract.com), sign up, and create an Interact quiz before you embed it into your site. Installing this plugin without signing up on [Interact](https://tryinteract.com) will result in a broken quiz experience on your site.
     18**IMPORTANT:** An Interact account is required for this plugin to work as intended.
    1919
    20 If you have technical questions, email help@tryinteract.com
     20Visit [Interact](https://tryinteract.com), sign up, and create an Interact Quiz, Poll, or Giveaway before you embed it into your site.
     21
     22Installing this plugin without signing up on [Interact](https://tryinteract.com) will result in a broken quiz experience on your site.
     23
     24Questions? Email help@tryinteract.com
    2125
    2226== Installation ==
    2327
    24 1. Create a quiz for free at https://www.tryinteract.com
    25 2. Get your app ID for the quiz you wish to embed
    26 3. Upload `interact-quiz-embed.php` to the `/wp-content/plugins/` directory
    27 4. Activate the plugin through the 'Plugins' menu in WordPress
    28 5. Generate shortcode for the quiz you wish to embed
    29 6. Add shortcode to any post or page in your Wordpress site to embed quiz
     281. Create a Quiz, Poll, or Giveaway for free at https://www.tryinteract.com
     292. Log in to your site’s Dashboard (e.g. http://www.example.com/wp-admin)
     303. In the left panel, click 'Plugins', then click 'Add New'.
     314. Search for 'Interact Quiz Embed' — the latest version will appear at the top of the list of results.
     325. Click the 'Install Now' button.
     336. Wait for the installation to finish, then click the 'Activate' button.
     347. Generate shortcode for the quiz you wish to embed
     358. Add shortcode to any post or page in your Wordpress site to embed Quiz, Poll, or Giveaway
     36
    3037
    3138== Frequently Asked Questions ==
    3239
    33 = How to access the embed code generator? =
     40= Where can I find my 'Interact App ID'? =
    3441
    35 The embed code generator can be found in the 'Settings' sidebar menu in the Wordpress admin dashboard.
    36 
    37 = Where can I find my 'Interact Quiz URL'? =
    38 
    39 This can be found in your Interact Dashboard by viewing your quizzes and clicking 'Embed'. For example, it should look something like: https://quiz.tryinteract.com/#/abcdefghijk0123456789
     42This can be found in your Interact Dashboard by viewing your quizzes and clicking 'Share & Embed'.
     43For example, it should look something like: https://quiz.tryinteract.com/#/abcdefghijk0123456789
    4044
    4145== Screenshots ==
     
    4751== Changelog ==
    4852
     53= 3.0 =
     54* Added Promotions Feature (Announcement Bar & Popup)
     55* Auto-Resize Quiz by Default
     56* Supports Polls and Giveaways in addition to Quizzes
     57
    4958= 2.0.1 =
    5059* Bug fixes. Removes link tag for shortcodes.
Note: See TracChangeset for help on using the changeset viewer.