Changeset 1998656
- Timestamp:
- 12/20/2018 09:49:43 AM (7 years ago)
- Location:
- captain-up/trunk
- Files:
-
- 5 edited
-
README.md (modified) (6 diffs)
-
admin-settings.php (modified) (2 diffs)
-
captainup.php (modified) (5 diffs)
-
readme.txt (modified) (6 diffs)
-
site-embed.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
captain-up/trunk/README.md
r1776270 r1998656 7 7 --- 8 8 9 [Captain Up](https://captainup.com/) ∞ [Download from the WordPress plugin directory](https://wordpress.org/plugins/captain-up/) ∞ [Features](https://captainup.com/solutions/product) 9 [Captain Up](https://captainup.com/) ∞ [Download from the WordPress plugin directory](https://wordpress.org/plugins/captain-up/) ∞ [Features](https://captainup.com/solutions/product) ∞ [Case Studies](https://captainup.com/solutions/case-study) 10 10 11 11 --- … … 13 13 [Captain Up](https://captainup.com/) boosts engagement on your WordPress site using game mechanics. Plug it in and immediately start rewarding users for engaging with your content, using points, levels, badges, and leaderboards, and keep them coming back for more. 14 14 15 Note: You will need to connect your WordPress site to a Captain Up account. So if you don't have one yet contact us on <team@captainup.com>. 16 15 Note: You will need to connect your WordPress site to a Captain Up account. If you don’t have one yet, contact us at team@captainup.com. 17 16 18 17 **NEW**: Rewards: Give your loyal users badges, trophies, coupons, and rewards. 19 18 20 **NEW**: Messaging: Communicate with your users, send them wel lcome messages, updates and promotions.19 **NEW**: Messaging: Communicate with your users, send them welcome messages, updates, and promotions. 21 20 22 21 ## Features … … 40 39 - **Custom theme & design** 41 40 42 Pricing: 199 GBP - 2000 GBP, for more information contact us on <team@captainup.com>.43 44 45 41 ### Installing the Plugin 46 42 … … 77 73 1. Go to the new _Captain Up_ tab in your WordPress Admin Panel. 78 74 79 2. Add your Captain Up API Key and Save. You can find your API key in the [Settings tab in your Captain Up Admin Panel](https://captainup.com/manage/settings). If you don't have a Captain Up account yet you can contact us on <team@captainup.com>. 80 81 ## I have more questions! 82 83 Feel free to contact us with any question to <team@captainup.com>. 75 2. Add your Captain Up API Key and Save. You can find your API key in the [Settings tab in your Captain Up Admin Panel](https://captainup.com/manage/settings). If you don't have a Captain Up account yet you can contact us at team@captainup.com. 84 76 85 77 ## Shortcodes … … 99 91 ## Changelog 100 92 93 ###### 3.0.3 94 95 * Support for WordPress 5.0.1 96 101 97 ###### 3.0.2 98 99 * Version bump. 100 101 ###### 3.0.1 102 102 103 * Documentation updates 103 104 ###### 3.0.1105 104 * Security improvements 106 105 107 106 ###### 3.0.0 107 108 108 * Added client token to settings 109 109 110 110 ###### 2.3.0 111 111 112 * Support for BuddyPress avatars 112 * Support for Word press 4.3.0113 * Support for WordPress 4.3.0 113 114 114 115 ###### 2.2.1 116 115 117 * Various bug fixes. 116 118 … … 211 213 212 214 ###### 1.0 215 213 216 * First Release. 214 -
captain-up/trunk/admin-settings.php
r1775591 r1998656 5 5 function cptup_admin_settings() { 6 6 7 if ( !current_user_can( 'administrator' )) {8 wp_die( "You do not have premission to access this page", "Unauthorized");7 if (!current_user_can('administrator')) { 8 wp_die('You do not have permissions to access this page', 'Unauthorized'); 9 9 } 10 10 … … 180 180 <h2>Configure Captain Up</h2> 181 181 182 <p>Copy your API key from the <a href='https://captainup.com/manage/settings' target='_blank'>Settings tab</a> in your Captain Up admin panel and paste it here. You need to <a href='mailto:team@captainup.com' target='_blank'> Contact Us</a> if you don't have a Captain Up account.</p>182 <p>Copy your API key from the <a href='https://captainup.com/manage/settings' target='_blank'>Settings tab</a> in your Captain Up admin panel and paste it here. You need to <a href='mailto:team@captainup.com' target='_blank'>contact us</a> if you don't have a Captain Up account.</p> 183 183 184 184 <div id='cpt-api'> -
captain-up/trunk/captainup.php
r1776271 r1998656 4 4 Plugin URI: https://www.captainup.com 5 5 Description: Add Game Mechanics to your site and increase your engagement and retention. 2 minutes install: Simply add your free Captain Up API Key and you are good to go. The plugin also adds widgets you can use to show leaderboards and activities within your site. 6 Version: 3.0. 26 Version: 3.0.3 7 7 Author: Captain Up Team 8 8 License: GPL2 … … 145 145 /** constructor */ 146 146 function __construct() { 147 parent:: WP_Widget('cptup_widget', 'Captain Up Widget', array(147 parent::__construct('cptup_widget', 'Captain Up Widget', array( 148 148 'description' => 'Captain Up Leaderboards and Recent Activity' 149 149 )); … … 283 283 return "<div style='margin: 20px auto; width: $width"."px; height: $height"."px;' class='captain-leaderboard-widget' data-cpt-leaderboard='" . str_replace("-", "_", $leaderboard) . "' data-cpt-title='$title'></div>"; 284 284 } 285 add_shortcode('captain-leaderboard', 'cptup_leaderboard_shortcode' );285 add_shortcode('captain-leaderboard', 'cptup_leaderboard_shortcode'); 286 286 287 287 // Activity Widget Shortcode … … 302 302 return "<div style='margin: 20px auto; width: $width"."px; height: $height"."px;' class='captain-activity-widget' data-cpt-title='$title'></div>"; 303 303 } 304 add_shortcode('captain-activity', 'cptup_activity_shortcode' );304 add_shortcode('captain-activity', 'cptup_activity_shortcode'); 305 305 306 306 // Sign Up Link Shortcode … … 318 318 return "<a style='cursor: pointer' class='captain-sign-up-link'>$text</a>"; 319 319 } 320 add_shortcode('captain-sign-up', 'cptup_sign_up_link_shortcode' );320 add_shortcode('captain-sign-up', 'cptup_sign_up_link_shortcode'); 321 321 322 322 -
captain-up/trunk/readme.txt
r1776270 r1998656 1 1 === Captain Up === 2 2 Contributors: cptup 3 Tags: game-mechanics,captainup,gamification,engagement,comments,widget,plugin,twitter,facebook,google,social, communication3 Tags: game-mechanics,captainup,gamification,engagement,comments,widget,plugin,twitter,facebook,google,social,messaging 4 4 Requires at least: 3.0.1 5 Tested up to: 4.3.05 Tested up to: 5.0.1 6 6 Stable tag: trunk 7 7 License: GPLv2 or later … … 14 14 [Captain Up](https://captainup.com/) boosts engagement on your WordPress site using game mechanics. Plug it in and immediately start rewarding users for engaging with your content, using points, levels, badges, and leaderboards, and keep them coming back for more. 15 15 16 Note: You will need to connect your WordPress site to a Captain Up account. So if you don't have one yet contact us on <team@captainup.com>.16 Note: You will need to connect your WordPress site to a Captain Up account. If you don’t have one yet, contact us at team@captainup.com. 17 17 18 18 **NEW**: Rewards: Give your loyal users badges, trophies, coupons, and rewards. 19 19 20 **NEW**: Messaging: Communicate with your users, send them wel lcome messages, updatesand promotions.20 **NEW**: Messaging: Communicate with your users, send them welcome messages, updates, and promotions. 21 21 22 22 **Features**: … … 32 32 - **Tons of actions** – You can reward users for visiting your site regularly, Tweeting about it, Liking things, visiting specific pages, commenting, or watching videos on your site. Set up custom actions for anything our default actions don’t cover yet. 33 33 34 - **Mobile support** - Support for mobile and tablet devices. A new badge pack to select from. Brand new design. Support for custom actions. Ability to choose on which pages of the site Captain Up will appear on. Localization support for over 18 languages. Support for native WordPress comments. 35 36 - **Automatic support for WordPress User Integration** 34 - **Mobile support** - Support for mobile and tablet devices. 35 36 - **Localization** - out of the box support for over 18 languages. 37 38 - **Automatic support for WordPress User Integration and WordPress comments** 37 39 38 40 - **Deep analytics on user behavior** … … 42 44 - **Custom theme & design** 43 45 44 Pricing: 199 GBP - 2000 GBP, for more information contact us on <team@captainup.com>.45 46 47 46 **Shortcodes** 48 47 … … 94 93 1. Go to the new _Captain Up_ tab in your WordPress Admin Panel. 95 94 96 2. Add your Captain Up API Key and Save. You can find your API key in the [Settings tab in your Captain Up Admin Panel](https://captainup.com/manage/settings). If you don't have a Captain Up account yet you can contact us on <team@captainup.com>. 95 2. Add your Captain Up API Key and Save. You can find your API key in the [Settings tab in your Captain Up Admin Panel](https://captainup.com/manage/settings). If you don't have a Captain Up account yet you can contact us at team@captainup.com. 96 97 97 98 98 == Frequently Asked Questions == 99 99 100 100 = Do I need to create an account? = 101 Yes. In order for the plugin to work you need to contact us at (team@captainup.com)101 Yes. In order for the plugin to work you need to [sign up for Captain Up](http://captainup.com/). 102 102 103 103 = Does Captain Up work on my site's mobile/tablet versions? = 104 104 Yes. When visiting from mobile, our launcher widget will be automatically replaced with the mini launcher, optimized for the mobile experience. All of our overlays are responsive and will scale to fit the mobile screen. 105 106 = I have more questions! =107 Feel free to contact us with any question to <team@captainup.com>.108 105 109 106 … … 121 118 == Changelog == 122 119 120 = 3.0.3 = 121 122 * Support for WordPress 5.0.1. 123 124 = 3.0.2 = 125 126 * Version bump. 127 123 128 = 3.0.1 = 124 * Documentation updates 125 126 = 3.0.1 = 127 * Security improvements 128 129 130 * Documentation updates. 131 * Security improvements. 132 129 133 = 3.0.0 = 130 * Added client token to settings 134 135 * Added client token to settings. 131 136 132 137 = 2.3.0 = 133 * Support for BuddyPress avatars 134 * Support for Wordpress 4.3.0 138 139 * Support for BuddyPress avatars. 140 * Support for WordPress 4.3.0. 135 141 136 142 = 2.2.1 = 143 137 144 * Various bug fixes. 138 145 -
captain-up/trunk/site-embed.php
r1772341 r1998656 7 7 $captain_api_key = get_option('captain-api-key'); 8 8 $api_secret = get_option('captain-api-secret', false); 9 $client_token = get_option('captain-client-token', false); 9 $client_token = get_option('captain-client-token', false); 10 10 // Detect whether the user integration feature is enabled 11 11 $user_integration_enabled = get_option('captain-user-integration-checkbox') == 'checked'; … … 46 46 platform: 'wordpress', 47 47 cookie: true, 48 <?php if(is _array($captain_user)) { ?>48 <?php if(isset($captain_user) && is_array($captain_user)) { ?> 49 49 user: <?php echo json_encode($captain_user) ?>, 50 50 signed_user: "<?php echo CaptainUtils::sign_user($api_secret, $captain_user) ?>",
Note: See TracChangeset
for help on using the changeset viewer.