Plugin Directory

Changeset 1998656


Ignore:
Timestamp:
12/20/2018 09:49:43 AM (7 years ago)
Author:
cptup
Message:

version 3.0.3

Location:
captain-up/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • captain-up/trunk/README.md

    r1776270 r1998656  
    77---
    88
    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)
    1010
    1111---
     
    1313[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.
    1414
    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 
     15Note: 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.
    1716
    1817**NEW**: Rewards: Give your loyal users badges, trophies, coupons, and rewards.
    1918
    20 **NEW**: Messaging: Communicate with your users, send them wellcome messages, updates and promotions.
     19**NEW**: Messaging: Communicate with your users, send them welcome messages, updates, and promotions.
    2120
    2221## Features
     
    4039- **Custom theme & design**
    4140
    42 Pricing: 199 GBP - 2000 GBP, for more information contact us on <team@captainup.com>.
    43 
    44 
    4541### Installing the Plugin
    4642
     
    77731. Go to the new _Captain Up_ tab in your WordPress Admin Panel.
    7874
    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>.
     752. 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.
    8476
    8577## Shortcodes
     
    9991## Changelog
    10092
     93###### 3.0.3
     94
     95* Support for WordPress 5.0.1
     96
    10197###### 3.0.2
     98
     99* Version bump.
     100
     101###### 3.0.1
     102
    102103* Documentation updates
    103 
    104 ###### 3.0.1
    105104* Security improvements
    106 
     105 
    107106###### 3.0.0
     107
    108108* Added client token to settings
    109109
    110110###### 2.3.0
     111
    111112* Support for BuddyPress avatars
    112 * Support for Wordpress 4.3.0
     113* Support for WordPress 4.3.0
    113114
    114115###### 2.2.1
     116
    115117* Various bug fixes.
    116118
     
    211213
    212214###### 1.0
     215
    213216* First Release.
    214 
  • captain-up/trunk/admin-settings.php

    r1775591 r1998656  
    55function cptup_admin_settings() {
    66
    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');
    99    }
    1010
     
    180180                                <h2>Configure Captain Up</h2>
    181181
    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>
    183183
    184184                                <div id='cpt-api'>
  • captain-up/trunk/captainup.php

    r1776271 r1998656  
    44Plugin URI: https://www.captainup.com
    55Description: 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.2
     6Version: 3.0.3
    77Author: Captain Up Team
    88License: GPL2
     
    145145    /** constructor */
    146146    function __construct() {
    147         parent::WP_Widget('cptup_widget', 'Captain Up Widget', array(
     147        parent::__construct('cptup_widget', 'Captain Up Widget', array(
    148148            'description' => 'Captain Up Leaderboards and Recent Activity'
    149149        ));
     
    283283    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>";
    284284}
    285 add_shortcode('captain-leaderboard', 'cptup_leaderboard_shortcode' );
     285add_shortcode('captain-leaderboard', 'cptup_leaderboard_shortcode');
    286286
    287287// Activity Widget Shortcode
     
    302302    return "<div style='margin: 20px auto; width: $width"."px; height: $height"."px;' class='captain-activity-widget' data-cpt-title='$title'></div>";
    303303}
    304 add_shortcode('captain-activity', 'cptup_activity_shortcode' );
     304add_shortcode('captain-activity', 'cptup_activity_shortcode');
    305305
    306306// Sign Up Link Shortcode
     
    318318    return "<a style='cursor: pointer' class='captain-sign-up-link'>$text</a>";
    319319}
    320 add_shortcode('captain-sign-up', 'cptup_sign_up_link_shortcode' );
     320add_shortcode('captain-sign-up', 'cptup_sign_up_link_shortcode');
    321321
    322322
  • captain-up/trunk/readme.txt

    r1776270 r1998656  
    11=== Captain Up ===
    22Contributors: cptup
    3 Tags: game-mechanics,captainup,gamification,engagement,comments,widget,plugin,twitter,facebook,google,social,communication
     3Tags: game-mechanics,captainup,gamification,engagement,comments,widget,plugin,twitter,facebook,google,social,messaging
    44Requires at least: 3.0.1
    5 Tested up to: 4.3.0
     5Tested up to: 5.0.1
    66Stable tag: trunk
    77License: GPLv2 or later
     
    1414[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.
    1515
    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>.
     16Note: 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.
    1717
    1818**NEW**: Rewards: Give your loyal users badges, trophies, coupons, and rewards.
    1919
    20 **NEW**: Messaging: Communicate with your users, send them wellcome messages, updates and promotions.
     20**NEW**: Messaging: Communicate with your users, send them welcome messages, updates, and promotions.
    2121
    2222**Features**:
     
    3232- **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.
    3333
    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**
    3739
    3840- **Deep analytics on user behavior**
     
    4244- **Custom theme & design**
    4345
    44 Pricing: 199 GBP - 2000 GBP, for more information contact us on <team@captainup.com>.
    45 
    46 
    4746**Shortcodes**
    4847
     
    94931. Go to the new _Captain Up_ tab in your WordPress Admin Panel.
    9594
    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>.
     952. 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
    9797
    9898== Frequently Asked Questions ==
    9999
    100100= 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)
     101Yes. In order for the plugin to work you need to [sign up for Captain Up](http://captainup.com/).
    102102
    103103= Does Captain Up work on my site's mobile/tablet versions? =
    104104Yes. 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>.
    108105
    109106
     
    121118== Changelog ==
    122119
     120= 3.0.3 =
     121
     122* Support for WordPress 5.0.1.
     123
     124= 3.0.2 =
     125
     126* Version bump.
     127
    123128= 3.0.1 =
    124 * Documentation updates
    125 
    126 = 3.0.1 =
    127 * Security improvements
    128 
     129
     130* Documentation updates.
     131* Security improvements.
     132 
    129133= 3.0.0 =
    130 * Added client token to settings
     134
     135* Added client token to settings.
    131136
    132137= 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.
    135141
    136142= 2.2.1 =
     143
    137144* Various bug fixes.
    138145
  • captain-up/trunk/site-embed.php

    r1772341 r1998656  
    77        $captain_api_key = get_option('captain-api-key');
    88        $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);
    1010        // Detect whether the user integration feature is enabled
    1111        $user_integration_enabled = get_option('captain-user-integration-checkbox') == 'checked';
     
    4646                platform: 'wordpress',
    4747                cookie: true,
    48                 <?php if(is_array($captain_user)) { ?>
     48                <?php if(isset($captain_user) && is_array($captain_user)) { ?>
    4949                user: <?php echo json_encode($captain_user) ?>,
    5050                signed_user: "<?php echo CaptainUtils::sign_user($api_secret, $captain_user) ?>",
Note: See TracChangeset for help on using the changeset viewer.