Changeset 1760465
- Timestamp:
- 11/08/2017 12:19:54 AM (8 years ago)
- Location:
- interact-quiz-embed
- Files:
-
- 4 edited
- 1 copied
-
tags/3.0 (copied) (copied from interact-quiz-embed/trunk)
-
tags/3.0/interact-quiz-embed.php (modified) (4 diffs)
-
tags/3.0/readme.txt (modified) (2 diffs)
-
trunk/interact-quiz-embed.php (modified) (4 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
interact-quiz-embed/tags/3.0/interact-quiz-embed.php
r1376689 r1760465 5 5 Description: Use this plugin to embed your Interact quiz into your Wordpress site. 6 6 Author: Matthew Clark 7 Version: 2. 0.17 Version: 2.1.0 8 8 Author URI: https://www.tryinteract.com 9 9 10 Copyright 201 4 Interact (email : matthew@tryinteract.com)10 Copyright 2017 The Quiz Collective (email: help@tryinteract.com) 11 11 12 12 This program is free software; you can redistribute it and/or modify … … 24 24 */ 25 25 26 function interact_quiz_embed($atts){ 26 /* 27 * 28 * Short Code Hook Legacy 29 * 30 */ 31 32 function interact_quiz_embed($atts) { 27 33 shortcode_atts(array('user'=>'', 'id'=>'', 'w'=>'600', 'h'=>'500'), $atts); 28 34 … … 51 57 add_shortcode('interact-quiz','interact_quiz_embed'); 52 58 59 60 /* 61 * 62 * Short Code Hook 63 * 64 */ 65 66 function 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 98 add_shortcode('interact','interact_embed'); 99 100 /* 101 * 102 * Promotion Script Hook inject into <head> 103 * 104 */ 105 106 function 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 137 add_action( 'wp_head', 'interact_scripts' ); 138 139 140 /* 141 * 142 * Options Page for Plugin 143 * 144 */ 145 53 146 function 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'); 54 164 55 165 ?> 56 166 <div class="wrap"> 57 167 <?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 60 172 <?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 } 68 188 } 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 & 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>'; 71 206 } 72 73 echo ']</pre></h3>';74 207 } 75 208 ?> 76 <hr>77 209 <form action="" method="post" id="interact-embed-form"> 78 210 <table class="form-table"> 79 211 <tr> 80 <th scope="row"><label for="app_id">Interact QuizURL</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 & Share' > 'Embed in your Website' > 'WordPress'.</b></p> 83 215 </td> 84 216 </tr> … … 96 228 <p><input type="submit" name="submit" value="Generate Shortcode" class="button button-primary"></p> 97 229 </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 & 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 & 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> 98 253 </div> 99 254 -
interact-quiz-embed/tags/3.0/readme.txt
r1376689 r1760465 1 1 === Interact: Embed A Quiz On Your Site === 2 2 Contributors: tryinteract 3 Tags: interact, quiz, embed, shortcode3 Tags: interact, quiz, poll, giveaway, embed, shortcode, promotion 4 4 Requires at least: 3.0.1 5 Tested up to: 3.46 Stable tag: 2.0.15 Tested up to: 4.8.2 6 Stable tag: 3.0 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html 9 9 10 Use this plugin to generate a shortcode to embed your Interact quiz into your Wordpress site.10 Use this plugin to generate a shortcode to embed your Interact Quiz, Poll, or Giveaway into your WordPress site. 11 11 12 12 == Description == 13 13 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!14 Use 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. 15 15 16 Check out some examples of how over 2000 companies have utilized quizzes on their websites [here](https://tryinteract.com/customers)16 Check out some examples of how over 30,000 companies have utilized quizzes on their websites [here](https://tryinteract.com/customers/) 17 17 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. 19 19 20 If you have technical questions, email help@tryinteract.com 20 Visit [Interact](https://tryinteract.com), sign up, and create an Interact Quiz, Poll, or Giveaway before you embed it into your site. 21 22 Installing this plugin without signing up on [Interact](https://tryinteract.com) will result in a broken quiz experience on your site. 23 24 Questions? Email help@tryinteract.com 21 25 22 26 == Installation == 23 27 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 28 1. Create a Quiz, Poll, or Giveaway for free at https://www.tryinteract.com 29 2. Log in to your site’s Dashboard (e.g. http://www.example.com/wp-admin) 30 3. In the left panel, click 'Plugins', then click 'Add New'. 31 4. Search for 'Interact Quiz Embed' — the latest version will appear at the top of the list of results. 32 5. Click the 'Install Now' button. 33 6. Wait for the installation to finish, then click the 'Activate' button. 34 7. Generate shortcode for the quiz you wish to embed 35 8. Add shortcode to any post or page in your Wordpress site to embed Quiz, Poll, or Giveaway 36 30 37 31 38 == Frequently Asked Questions == 32 39 33 = How to access the embed code generator? =40 = Where can I find my 'Interact App ID'? = 34 41 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 42 This can be found in your Interact Dashboard by viewing your quizzes and clicking 'Share & Embed'. 43 For example, it should look something like: https://quiz.tryinteract.com/#/abcdefghijk0123456789 40 44 41 45 == Screenshots == … … 47 51 == Changelog == 48 52 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 49 58 = 2.0.1 = 50 59 * Bug fixes. Removes link tag for shortcodes. -
interact-quiz-embed/trunk/interact-quiz-embed.php
r1376689 r1760465 5 5 Description: Use this plugin to embed your Interact quiz into your Wordpress site. 6 6 Author: Matthew Clark 7 Version: 2. 0.17 Version: 2.1.0 8 8 Author URI: https://www.tryinteract.com 9 9 10 Copyright 201 4 Interact (email : matthew@tryinteract.com)10 Copyright 2017 The Quiz Collective (email: help@tryinteract.com) 11 11 12 12 This program is free software; you can redistribute it and/or modify … … 24 24 */ 25 25 26 function interact_quiz_embed($atts){ 26 /* 27 * 28 * Short Code Hook Legacy 29 * 30 */ 31 32 function interact_quiz_embed($atts) { 27 33 shortcode_atts(array('user'=>'', 'id'=>'', 'w'=>'600', 'h'=>'500'), $atts); 28 34 … … 51 57 add_shortcode('interact-quiz','interact_quiz_embed'); 52 58 59 60 /* 61 * 62 * Short Code Hook 63 * 64 */ 65 66 function 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 98 add_shortcode('interact','interact_embed'); 99 100 /* 101 * 102 * Promotion Script Hook inject into <head> 103 * 104 */ 105 106 function 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 137 add_action( 'wp_head', 'interact_scripts' ); 138 139 140 /* 141 * 142 * Options Page for Plugin 143 * 144 */ 145 53 146 function 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'); 54 164 55 165 ?> 56 166 <div class="wrap"> 57 167 <?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 60 172 <?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 } 68 188 } 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 & 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>'; 71 206 } 72 73 echo ']</pre></h3>';74 207 } 75 208 ?> 76 <hr>77 209 <form action="" method="post" id="interact-embed-form"> 78 210 <table class="form-table"> 79 211 <tr> 80 <th scope="row"><label for="app_id">Interact QuizURL</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 & Share' > 'Embed in your Website' > 'WordPress'.</b></p> 83 215 </td> 84 216 </tr> … … 96 228 <p><input type="submit" name="submit" value="Generate Shortcode" class="button button-primary"></p> 97 229 </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 & 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 & 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> 98 253 </div> 99 254 -
interact-quiz-embed/trunk/readme.txt
r1376689 r1760465 1 1 === Interact: Embed A Quiz On Your Site === 2 2 Contributors: tryinteract 3 Tags: interact, quiz, embed, shortcode3 Tags: interact, quiz, poll, giveaway, embed, shortcode, promotion 4 4 Requires at least: 3.0.1 5 Tested up to: 3.46 Stable tag: 2.0.15 Tested up to: 4.8.2 6 Stable tag: 3.0 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html 9 9 10 Use this plugin to generate a shortcode to embed your Interact quiz into your Wordpress site.10 Use this plugin to generate a shortcode to embed your Interact Quiz, Poll, or Giveaway into your WordPress site. 11 11 12 12 == Description == 13 13 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!14 Use 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. 15 15 16 Check out some examples of how over 2000 companies have utilized quizzes on their websites [here](https://tryinteract.com/customers)16 Check out some examples of how over 30,000 companies have utilized quizzes on their websites [here](https://tryinteract.com/customers/) 17 17 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. 19 19 20 If you have technical questions, email help@tryinteract.com 20 Visit [Interact](https://tryinteract.com), sign up, and create an Interact Quiz, Poll, or Giveaway before you embed it into your site. 21 22 Installing this plugin without signing up on [Interact](https://tryinteract.com) will result in a broken quiz experience on your site. 23 24 Questions? Email help@tryinteract.com 21 25 22 26 == Installation == 23 27 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 28 1. Create a Quiz, Poll, or Giveaway for free at https://www.tryinteract.com 29 2. Log in to your site’s Dashboard (e.g. http://www.example.com/wp-admin) 30 3. In the left panel, click 'Plugins', then click 'Add New'. 31 4. Search for 'Interact Quiz Embed' — the latest version will appear at the top of the list of results. 32 5. Click the 'Install Now' button. 33 6. Wait for the installation to finish, then click the 'Activate' button. 34 7. Generate shortcode for the quiz you wish to embed 35 8. Add shortcode to any post or page in your Wordpress site to embed Quiz, Poll, or Giveaway 36 30 37 31 38 == Frequently Asked Questions == 32 39 33 = How to access the embed code generator? =40 = Where can I find my 'Interact App ID'? = 34 41 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 42 This can be found in your Interact Dashboard by viewing your quizzes and clicking 'Share & Embed'. 43 For example, it should look something like: https://quiz.tryinteract.com/#/abcdefghijk0123456789 40 44 41 45 == Screenshots == … … 47 51 == Changelog == 48 52 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 49 58 = 2.0.1 = 50 59 * Bug fixes. Removes link tag for shortcodes.
Note: See TracChangeset
for help on using the changeset viewer.