myCRED - Version 1.8.13.1

Version Description

Bug fixes release.

=

Download this release

Release Info

Developer wpexpertsio
Plugin Icon 128x128 myCRED
Version 1.8.13.1
Comparing to
See all releases

Code changes from version 1.8.13 to 1.8.13.1

assets/css/mycred-front.css CHANGED
@@ -1 +1 @@
1
- .widget .myCRED-rank { float:right; }.widget .myCRED-rank span { padding-right:4px; color:gray; }.widget .myCRED-balance { display:block; margin-bottom:24px; text-align:center; font-size:larger; }.widget .myCRED-leaderboard .cred { float:right; }.widget .myCRED-leaderboard .first-item { font-size:110%; }.widget .myCRED-history { padding:0; margin:0; list-style-type:none; }.widget .myCRED-history .creds { float:right; padding: 0; clear:left; } .mycred-nav-menu-item img { display: inline-block; }
1
+ .widget .myCRED-rank { float:right; }.widget .myCRED-rank span { padding-right:4px; color:gray; }.widget .myCRED-balance { display:block; margin-bottom:24px; text-align:center; font-size:larger; }.widget .myCRED-leaderboard .cred { float:right; }.widget .myCRED-leaderboard .first-item { font-size:110%; }.widget .myCRED-history { padding:0; margin:0; list-style-type:none; }.widget .myCRED-history .creds { float:right; padding: 0; clear:left; }.mycred-nav-rank img{display: inherit;}
includes/mycred-nav-menu.php CHANGED
@@ -100,11 +100,12 @@ if ( ! class_exists( 'myCRED_Nav_Menu' ) ) :
100
 
101
  public function display_mycred_menu_items( $item_output, $item ) {
102
 
103
- $template = $item->title;
104
-
105
  if ( ! is_object( $item ) || ! isset( $item->object ) ) {
106
  return $item_output;
107
  }
 
 
 
108
  if ( 'mycred_menu_balance' === $item->object ) {
109
 
110
  $balance = do_shortcode( '[mycred_my_balance wrapper=0 title_el="" balance_el="" type="'.$item->type.'"]' );
@@ -113,11 +114,19 @@ if ( ! class_exists( 'myCRED_Nav_Menu' ) ) :
113
  $template = str_replace( '%balance%', $balance, $template );
114
  $item_output = $template;
115
 
116
- }
117
- else if ( 'mycred_menu_rank' === $item->object ) {
 
118
 
119
  $account_object = mycred_get_account( get_current_user_id() );
120
- $rank_object = $account_object->balance[ $item->type ]->rank;
 
 
 
 
 
 
 
121
  if ( $rank_object !== false ) {
122
 
123
  $rank_title = '<span class="mycred-nav-rank-title">'.$rank_object->title.'</span>';
@@ -134,12 +143,14 @@ if ( ! class_exists( 'myCRED_Nav_Menu' ) ) :
134
 
135
  $item_output = $template;
136
 
 
137
  }
138
  else {
139
- $item_output = '';
140
  }
141
  }
142
- return '<div class="mycred-nav-menu-item">'.$item_output.'</div>';
 
143
  }
144
 
145
  public function setup_item( $item ) {
100
 
101
  public function display_mycred_menu_items( $item_output, $item ) {
102
 
 
 
103
  if ( ! is_object( $item ) || ! isset( $item->object ) ) {
104
  return $item_output;
105
  }
106
+
107
+ $template = $item->title;
108
+
109
  if ( 'mycred_menu_balance' === $item->object ) {
110
 
111
  $balance = do_shortcode( '[mycred_my_balance wrapper=0 title_el="" balance_el="" type="'.$item->type.'"]' );
114
  $template = str_replace( '%balance%', $balance, $template );
115
  $item_output = $template;
116
 
117
+ return $item_output;
118
+
119
+ } else if ( 'mycred_menu_rank' === $item->object ) {
120
 
121
  $account_object = mycred_get_account( get_current_user_id() );
122
+
123
+ $rank_object = false;
124
+ if( isset( $account_object->balance[ $item->type ]->rank ) && is_object( $account_object->balance[ $item->type ]->rank ) ) {
125
+ $rank_object = $account_object->balance[ $item->type ]->rank;
126
+ }
127
+
128
+ //var_dump( $rank_object );die;
129
+
130
  if ( $rank_object !== false ) {
131
 
132
  $rank_title = '<span class="mycred-nav-rank-title">'.$rank_object->title.'</span>';
143
 
144
  $item_output = $template;
145
 
146
+ return '<span class="mycred-nav-rank">'.$item_output.'</span>';
147
  }
148
  else {
149
+ return '';
150
  }
151
  }
152
+
153
+ return $item_output;
154
  }
155
 
156
  public function setup_item( $item ) {
membership/mycred-connect-membership.php CHANGED
@@ -8,18 +8,18 @@
8
 
9
  // If this file is called directly, abort.
10
  if ( ! defined( 'ABSPATH' ) ) {
11
- exit;
12
  }
13
 
14
  if ( ! class_exists( 'myCRED_Connect_Membership' ) ) :
15
  Class myCRED_Connect_Membership {
16
 
17
  /**
18
- * Construct
19
- */
20
  public function __construct() {
21
  add_action( 'admin_menu', array( $this, 'mycred_membership_menu' ) );
22
- add_action( 'init', array( $this, 'add_styles' ) );
23
  add_action( 'mycred_admin_init', array( $this, 'mycred_review_notice' ) );
24
  add_action( 'mycred_admin_init', array( $this, 'membership_addon_actions' ) );
25
  }
@@ -27,20 +27,24 @@ if ( ! class_exists( 'myCRED_Connect_Membership' ) ) :
27
  function add_styles() {
28
 
29
  wp_register_style('admin-subscription-css', plugins_url( 'assets/css/admin-subscription.css', myCRED_THIS ), array(), '1.2', 'all');
30
- wp_enqueue_style( 'mycred-bootstrap-grid' );
 
 
 
 
31
  wp_enqueue_style('admin-subscription-css');
32
  }
33
 
34
  /**
35
- * Register membership menu
36
- */
37
  public function mycred_membership_menu() {
38
  add_submenu_page( 'mycred', 'Membership', 'Membership<span class="mycred-membership-menu-label">New</span>', 'manage_options', 'mycred-membership',array($this,'mycred_membership_callback'));
39
  }
40
 
41
  /**
42
- * Membership menu callback
43
- */
44
  public function mycred_membership_callback() {
45
  $user_id = get_current_user_id();
46
  $this->mycred_save_license();
@@ -53,7 +57,7 @@ if ( ! class_exists( 'myCRED_Connect_Membership' ) ) :
53
  <div class="mmc_welcome">
54
  <div class="mmc_welcome_content">
55
  <div class="mmc_title"><?php _e( 'Welcome to myCred Membership Club', 'mycred' ); ?></div>
56
- <form action="#" method="post">
57
  <?php
58
  if(mycred_is_membership_active()) {
59
  echo '<span class="dashicons dashicons-yes-alt membership-license-activated"></span>';
@@ -65,10 +69,10 @@ if ( ! class_exists( 'myCRED_Connect_Membership' ) ) :
65
 
66
  ?>
67
 
68
- <input type="text" name="mmc_lincense_key" class="mmc_lincense_key" placeholder="<?php _e( 'Add Your Membership License', 'mycred' ); ?>" value="<?php echo $membership_key?>">
69
- <input type="submit" class="mmc_save_license button-primary" value="Save"/>
70
- <div class="mmc_license_link"><a href="https://mycred.me/redirect-to-membership/" target="_blank"><span class="dashicons dashicons-editor-help"></span><?php _e('Click here to get your Membership License','mycred') ?></a></div>
71
- </form>
72
  </div>
73
 
74
  </div>
@@ -87,8 +91,8 @@ if ( ! class_exists( 'myCRED_Connect_Membership' ) ) :
87
  }
88
 
89
  /**
90
- * Saving user membership key
91
- */
92
  public function mycred_save_license() {
93
 
94
  if( !isset($_POST['mmc_lincense_key']) ) return;
@@ -222,7 +226,7 @@ if ( ! class_exists( 'myCRED_Connect_Membership' ) ) :
222
  jQuery("span.slider_btn.round").click(function(){
223
  jQuery(".show_one_year").toggleClass("active_pkg");
224
  jQuery(".show_three_year").toggleClass("active_pkg");
225
- });
226
 
227
  jQuery("span.slider_btn.round").click(function(){
228
  jQuery(".three_year").toggleClass("show_cont");
@@ -234,25 +238,25 @@ if ( ! class_exists( 'myCRED_Connect_Membership' ) ) :
234
 
235
  jQuery(".show_three_year").click(function(){
236
  jQuery(".switch_btn input").prop("checked", true);
237
- jQuery(".show_one_year").removeClass("active_pkg");
238
- jQuery(".show_three_year").addClass("active_pkg");
239
- jQuery("div.three_year").addClass("show_cont");
240
- jQuery("span.three_year").addClass("show_cont");
241
  jQuery(".one_year").addClass("hide");
242
  jQuery(".three_year").removeClass("hide");
243
- jQuery("div.one_year").addClass("hide_cont");
244
  });
245
  jQuery(".show_one_year").click(function(){
246
  jQuery(".switch_btn input").prop("checked", false);
247
- jQuery(".show_one_year").addClass("active_pkg");
248
- jQuery(".show_three_year").removeClass("active_pkg");
249
-
250
- jQuery("div.three_year").removeClass("show_cont");
251
- jQuery("span.three_year").removeClass("show_cont");
252
  jQuery(".one_year").removeClass("hide");
253
  jQuery(".three_year").addClass("hide");
254
- jQuery("div.one_year").removeClass("hide_cont");
255
-
256
  });
257
  });
258
  </script>
@@ -568,7 +572,7 @@ if ( ! class_exists( 'myCRED_Connect_Membership' ) ) :
568
  $link_text = __( 'Install', 'mycred' );
569
  $network_active = false;
570
 
571
- if(is_multisite() && $this->is_addon_network_active( $addon_folder )){
572
 
573
  $link_url = "";
574
  $link_text = __( 'Network Active', 'mycred' );
@@ -576,17 +580,17 @@ if ( ! class_exists( 'myCRED_Connect_Membership' ) ) :
576
 
577
  } else if ( $this->is_addon_active( $addon_folder ) ) {
578
 
579
- $link_url = $this->get_membership_addon_action_url( $addon_folder, 'deactivate' );
580
- $link_text = __( 'Deactivate', 'mycred' );
581
 
582
- } else if($this->is_addon_installed( $addon_folder )){
583
 
584
  $link_url = $this->get_membership_addon_action_url( $addon_folder, 'activate' );
585
  $link_text = __( 'Activate', 'mycred' );
586
 
587
  }
588
 
589
- return '<a href="' . esc_url_raw( $link_url ) . '" title="' . esc_attr( $link_text ) . '" class="button button-primary mycred-action ' . esc_attr( $addon_folder ) . ' ' . ($network_active ? 'mycred-addon-network-active' : '') . '">' . esc_html( $link_text ) . '</a>';
590
 
591
  }
592
 
@@ -613,14 +617,14 @@ if ( ! class_exists( 'myCRED_Connect_Membership' ) ) :
613
  // Important - Here we need to add a check, if the plugin on which action is being performed really belongs to mycred membership (because user can modify plugin folder name from URL)
614
  // also need to test for multisite as well
615
 
616
- if ( isset( $_GET['addon_action'] ) && isset( $_GET['addon_folder'] ) && isset( $_GET['_token'] ) && wp_verify_nonce( $_GET['_token'], 'mycred-membership-addon-action' ) ) {
617
 
618
- $addon_folder = sanitize_text_field( $_GET['addon_folder'] );
619
- $action = sanitize_text_field( $_GET['addon_action'] );
620
 
621
  $result = 0; // 0 = fail, 1 = success
622
- // Activation
623
- if ( $action == 'activate' ) {
624
  $installed_plugins = get_plugins();
625
 
626
  foreach( $installed_plugins as $folder_name => $installed_plugin ){
@@ -634,7 +638,7 @@ if ( ! class_exists( 'myCRED_Connect_Membership' ) ) :
634
  }
635
  }
636
 
637
- } else if ( $action == 'deactivate' ) {
638
 
639
  $active_plugins = get_option('active_plugins');
640
 
@@ -661,12 +665,12 @@ if ( ! class_exists( 'myCRED_Connect_Membership' ) ) :
661
 
662
  }
663
 
664
- $url = add_query_arg( array( 'page' => MYCRED_SLUG . '-membership', 'success' => $result, 'addon_action' => $action ), admin_url( 'admin.php' ) );
665
 
666
- wp_safe_redirect( $url );
667
- exit;
668
 
669
- }
670
 
671
  }
672
 
8
 
9
  // If this file is called directly, abort.
10
  if ( ! defined( 'ABSPATH' ) ) {
11
+ exit;
12
  }
13
 
14
  if ( ! class_exists( 'myCRED_Connect_Membership' ) ) :
15
  Class myCRED_Connect_Membership {
16
 
17
  /**
18
+ * Construct
19
+ */
20
  public function __construct() {
21
  add_action( 'admin_menu', array( $this, 'mycred_membership_menu' ) );
22
+ add_action( 'admin_init', array( $this, 'add_styles' ) );
23
  add_action( 'mycred_admin_init', array( $this, 'mycred_review_notice' ) );
24
  add_action( 'mycred_admin_init', array( $this, 'membership_addon_actions' ) );
25
  }
27
  function add_styles() {
28
 
29
  wp_register_style('admin-subscription-css', plugins_url( 'assets/css/admin-subscription.css', myCRED_THIS ), array(), '1.2', 'all');
30
+
31
+ if( isset($_GET['page']) && $_GET['page'] == 'mycred-membership' ) {
32
+ wp_enqueue_style( 'mycred-bootstrap-grid' );
33
+ }
34
+
35
  wp_enqueue_style('admin-subscription-css');
36
  }
37
 
38
  /**
39
+ * Register membership menu
40
+ */
41
  public function mycred_membership_menu() {
42
  add_submenu_page( 'mycred', 'Membership', 'Membership<span class="mycred-membership-menu-label">New</span>', 'manage_options', 'mycred-membership',array($this,'mycred_membership_callback'));
43
  }
44
 
45
  /**
46
+ * Membership menu callback
47
+ */
48
  public function mycred_membership_callback() {
49
  $user_id = get_current_user_id();
50
  $this->mycred_save_license();
57
  <div class="mmc_welcome">
58
  <div class="mmc_welcome_content">
59
  <div class="mmc_title"><?php _e( 'Welcome to myCred Membership Club', 'mycred' ); ?></div>
60
+ <form action="#" method="post">
61
  <?php
62
  if(mycred_is_membership_active()) {
63
  echo '<span class="dashicons dashicons-yes-alt membership-license-activated"></span>';
69
 
70
  ?>
71
 
72
+ <input type="text" name="mmc_lincense_key" class="mmc_lincense_key" placeholder="<?php _e( 'Add Your Membership License', 'mycred' ); ?>" value="<?php echo $membership_key?>">
73
+ <input type="submit" class="mmc_save_license button-primary" value="Save"/>
74
+ <div class="mmc_license_link"><a href="https://mycred.me/redirect-to-membership/" target="_blank"><span class="dashicons dashicons-editor-help"></span><?php _e('Click here to get your Membership License','mycred') ?></a></div>
75
+ </form>
76
  </div>
77
 
78
  </div>
91
  }
92
 
93
  /**
94
+ * Saving user membership key
95
+ */
96
  public function mycred_save_license() {
97
 
98
  if( !isset($_POST['mmc_lincense_key']) ) return;
226
  jQuery("span.slider_btn.round").click(function(){
227
  jQuery(".show_one_year").toggleClass("active_pkg");
228
  jQuery(".show_three_year").toggleClass("active_pkg");
229
+ });
230
 
231
  jQuery("span.slider_btn.round").click(function(){
232
  jQuery(".three_year").toggleClass("show_cont");
238
 
239
  jQuery(".show_three_year").click(function(){
240
  jQuery(".switch_btn input").prop("checked", true);
241
+ jQuery(".show_one_year").removeClass("active_pkg");
242
+ jQuery(".show_three_year").addClass("active_pkg");
243
+ jQuery("div.three_year").addClass("show_cont");
244
+ jQuery("span.three_year").addClass("show_cont");
245
  jQuery(".one_year").addClass("hide");
246
  jQuery(".three_year").removeClass("hide");
247
+ jQuery("div.one_year").addClass("hide_cont");
248
  });
249
  jQuery(".show_one_year").click(function(){
250
  jQuery(".switch_btn input").prop("checked", false);
251
+ jQuery(".show_one_year").addClass("active_pkg");
252
+ jQuery(".show_three_year").removeClass("active_pkg");
253
+
254
+ jQuery("div.three_year").removeClass("show_cont");
255
+ jQuery("span.three_year").removeClass("show_cont");
256
  jQuery(".one_year").removeClass("hide");
257
  jQuery(".three_year").addClass("hide");
258
+ jQuery("div.one_year").removeClass("hide_cont");
259
+
260
  });
261
  });
262
  </script>
572
  $link_text = __( 'Install', 'mycred' );
573
  $network_active = false;
574
 
575
+ if(is_multisite() && $this->is_addon_network_active( $addon_folder )){
576
 
577
  $link_url = "";
578
  $link_text = __( 'Network Active', 'mycred' );
580
 
581
  } else if ( $this->is_addon_active( $addon_folder ) ) {
582
 
583
+ $link_url = $this->get_membership_addon_action_url( $addon_folder, 'deactivate' );
584
+ $link_text = __( 'Deactivate', 'mycred' );
585
 
586
+ } else if($this->is_addon_installed( $addon_folder )){
587
 
588
  $link_url = $this->get_membership_addon_action_url( $addon_folder, 'activate' );
589
  $link_text = __( 'Activate', 'mycred' );
590
 
591
  }
592
 
593
+ return '<a href="' . esc_url_raw( $link_url ) . '" title="' . esc_attr( $link_text ) . '" class="button button-primary mycred-action ' . esc_attr( $addon_folder ) . ' ' . ($network_active ? 'mycred-addon-network-active' : '') . '">' . esc_html( $link_text ) . '</a>';
594
 
595
  }
596
 
617
  // Important - Here we need to add a check, if the plugin on which action is being performed really belongs to mycred membership (because user can modify plugin folder name from URL)
618
  // also need to test for multisite as well
619
 
620
+ if ( isset( $_GET['addon_action'] ) && isset( $_GET['addon_folder'] ) && isset( $_GET['_token'] ) && wp_verify_nonce( $_GET['_token'], 'mycred-membership-addon-action' ) ) {
621
 
622
+ $addon_folder = sanitize_text_field( $_GET['addon_folder'] );
623
+ $action = sanitize_text_field( $_GET['addon_action'] );
624
 
625
  $result = 0; // 0 = fail, 1 = success
626
+ // Activation
627
+ if ( $action == 'activate' ) {
628
  $installed_plugins = get_plugins();
629
 
630
  foreach( $installed_plugins as $folder_name => $installed_plugin ){
638
  }
639
  }
640
 
641
+ } else if ( $action == 'deactivate' ) {
642
 
643
  $active_plugins = get_option('active_plugins');
644
 
665
 
666
  }
667
 
668
+ $url = add_query_arg( array( 'page' => MYCRED_SLUG . '-membership', 'success' => $result, 'addon_action' => $action ), admin_url( 'admin.php' ) );
669
 
670
+ wp_safe_redirect( $url );
671
+ exit;
672
 
673
+ }
674
 
675
  }
676
 
membership/subscription-functions.php CHANGED
@@ -239,7 +239,7 @@ if( !function_exists('mycred_get_membership_details') ) {
239
 
240
  if( false === $membership_details ) {
241
 
242
- $url = 'https://mycred.me/wp-json/membership/v1/member/'.mycred_get_my_id().'/?time='.time();
243
  $data = wp_remote_get( $url );
244
 
245
  if( is_array( $data ) && ! is_wp_error( $data ) && ! empty( $data['response']['code'] ) && $data['response']['code'] == 200 ) {
239
 
240
  if( false === $membership_details ) {
241
 
242
+ $url = 'https://mycred.me/wp-json/membership/v1/member/'.mycred_get_my_id().'?time='.time();
243
  $data = wp_remote_get( $url );
244
 
245
  if( is_array( $data ) && ! is_wp_error( $data ) && ! empty( $data['response']['code'] ) && $data['response']['code'] == 200 ) {
mycred.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: myCred
4
  * Plugin URI: https://mycred.me
5
  * Description: An adaptive points management system for WordPress powered websites.
6
- * Version: 1.8.13
7
  * Tags: point, credit, loyalty program, engagement, reward, woocommerce rewards
8
  * Author: myCred
9
  * Author URI: https://mycred.me
@@ -19,7 +19,7 @@ if ( ! class_exists( 'myCRED_Core' ) ) :
19
  final class myCRED_Core {
20
 
21
  // Plugin Version
22
- public $version = '1.8.13';
23
 
24
  // Instnace
25
  protected static $_instance = NULL;
@@ -53,14 +53,14 @@ if ( ! class_exists( 'myCRED_Core' ) ) :
53
  * @since 1.7
54
  * @version 1.0
55
  */
56
- public function __clone() { _doing_it_wrong( __FUNCTION__, 'Cheatin&#8217; huh?', '1.8.13' ); }
57
 
58
  /**
59
  * Not allowed
60
  * @since 1.7
61
  * @version 1.0
62
  */
63
- public function __wakeup() { _doing_it_wrong( __FUNCTION__, 'Cheatin&#8217; huh?', '1.8.13' ); }
64
 
65
  /**
66
  * Get
@@ -81,7 +81,7 @@ if ( ! class_exists( 'myCRED_Core' ) ) :
81
  if ( ! defined( $name ) )
82
  define( $name, $value );
83
  elseif ( ! $definable && defined( $name ) )
84
- _doing_it_wrong( 'myCRED_Core->define()', 'Could not define: ' . $name . ' as it is already defined somewhere else!', '1.8.13' );
85
  }
86
 
87
  /**
@@ -93,7 +93,7 @@ if ( ! class_exists( 'myCRED_Core' ) ) :
93
  if ( file_exists( $required_file ) )
94
  require_once $required_file;
95
  else
96
- _doing_it_wrong( 'myCRED_Core->file()', 'Requested file ' . $required_file . ' not found.', '1.8.13' );
97
  }
98
 
99
  /**
3
  * Plugin Name: myCred
4
  * Plugin URI: https://mycred.me
5
  * Description: An adaptive points management system for WordPress powered websites.
6
+ * Version: 1.8.13.1
7
  * Tags: point, credit, loyalty program, engagement, reward, woocommerce rewards
8
  * Author: myCred
9
  * Author URI: https://mycred.me
19
  final class myCRED_Core {
20
 
21
  // Plugin Version
22
+ public $version = '1.8.13.1';
23
 
24
  // Instnace
25
  protected static $_instance = NULL;
53
  * @since 1.7
54
  * @version 1.0
55
  */
56
+ public function __clone() { _doing_it_wrong( __FUNCTION__, 'Cheatin&#8217; huh?', '1.8.13.1' ); }
57
 
58
  /**
59
  * Not allowed
60
  * @since 1.7
61
  * @version 1.0
62
  */
63
+ public function __wakeup() { _doing_it_wrong( __FUNCTION__, 'Cheatin&#8217; huh?', '1.8.13.1' ); }
64
 
65
  /**
66
  * Get
81
  if ( ! defined( $name ) )
82
  define( $name, $value );
83
  elseif ( ! $definable && defined( $name ) )
84
+ _doing_it_wrong( 'myCRED_Core->define()', 'Could not define: ' . $name . ' as it is already defined somewhere else!', '1.8.11' );
85
  }
86
 
87
  /**
93
  if ( file_exists( $required_file ) )
94
  require_once $required_file;
95
  else
96
+ _doing_it_wrong( 'myCRED_Core->file()', 'Requested file ' . $required_file . ' not found.', '1.8.13.1' );
97
  }
98
 
99
  /**
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: mycred,wpexpertsio
3
  Tags: badges, gamification, loyalty, points, rewards
4
  Requires at least: 4.8
5
  Tested up to: 5.5
6
- Stable tag: 1.8.13
7
  Requires PHP: 7.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -14,9 +14,9 @@ An adaptive and powerful points management system for WordPress powered websites
14
 
15
  myCred is an intelligent and adaptive **points management system** that allows you to build and manage a broad range of digital rewards including points, ranks and, badges on your WordPress/WooCommerce powered website.
16
 
17
- Build **brand loyalty** by rewarding your customers through store reward systems, community leaderboards, monetizing your website content, etc. – The possibilities are endless.
18
 
19
- **Increase customer engagement tenfold – Rewarding your users for community engagement will help your business grow.**
20
 
21
  = AMAZING AWARD SYSTEMS TO ENGAGE AND REWARD LOYAL CUSTOMERS =
22
 
@@ -24,9 +24,9 @@ myCred allows **THREE different ways** through which you can award your users:
24
 
25
  * **Points -** Set events and triggers to allow real-time tracking and automatically award your users with points.
26
 
27
- * **Ranks –** Set ranks within your leaderboards and reward your users with significant perks after they reach a certain milestone.
28
 
29
- * **Badges -** Boost your users’ participation by rewarding them for their exceptional performance.
30
 
31
  = BECOME A VIP MEMBER OF THE MYCRED MEMBERSHIP CLUB =
32
 
@@ -44,27 +44,27 @@ Join the myCred membership club today and take advantage of premium services tha
44
 
45
  = Features =
46
 
47
- **- Point Balances:** Each user on your website will have their own point balance, where they’ll be able to view points that were gained/lost.
48
  **- Account History:** Each time a user gains or loses points on your website, the transaction is logged into a central log for accountability.
49
- **- Points Management:** You have full control over your users’ point balances; You can adjust your user/s balance by adding or removing points with or without a log entry.
50
  **- White-Labeling:** myCred has built-in support for white-labeling - This allows you to rename the plugin in your admin area to anything you like.
51
  **- Import & Export:** myCred comes with three built-in import tools allowing you to import points, log entries, or migrate your CubePoints installation.
52
- **- Automatic Points:** Automatically award or deduct points from your user’s balance for their interaction on your Wordpress/WooCommerce website.
53
  **- Multiple Point Types:** Create multiple point types through the admin area to manage things easily. There is no limit to the number of point types you can have at your disposal.
54
  **- Multi-Site Support:** myCred has built-in support for multi-sites, allowing you to choose between using a unique myCred installation or centralize balances across your network.
55
- **- Leaderboards:** Generate leaderboards based on your user’s balance or points history - display users with the most points for a particular instance.
56
  **- Badges:** Award badges to your users based on their points history. You can set certain requirements for this feature so that myCred automatically awards them to the deserving users.
57
  **- Buy Points:** The buyCred add-on allows your users to purchase points using real money using some of the most popular payment gateways available in the market today.
58
  **- Coupons:** Create and share coupon codes with your users, which can be redeemed when they have generated a certain amount of points.
59
  **- Notifications:** The notifications add-on allows you to show popup notifications each time a user gains or loses points on your website.
60
- **- Ranks:** Ranks are based on how well your user balance is performing. As a user’s balance changes, so do their rank.
61
  **- Store Payments:** myCred supports some of the most popular store plugins for WordPress, allowing your users to pay for orders/tickets using their point balance instead of real money.
62
  **- Reward Purchases:** You can opt to reward your users with points that they can use to buy products in your store.
63
  **- Sell Content:** The Sell Content add-on allows you to sell access to the content field of posts/pages or custom post types on your website.
64
  **- Statistics:** The statistics add-on will convert your log data into charts to help visualize points usage and circulation on your website.
65
  **- Transfers:** The transfer add-on allows your users to transfer points to other users on your website.
66
  **- Theme Independent:** The myCred plugin is theme independent - Your theme needs to support widgets and shortcodes in order to run myCred.
67
- **- BuddyPress Ready:** myCred has had built-in support for BuddyPress through which you can access BuddyPress related features like Insert point balances/badges/ranks into your user’s profiles.
68
  **- Bootstrap Ready:** myCred comes with minimal CSS styling to give you the freedom to style everything according to your needs.
69
  **- Translation Ready:** You can add your own language translation or adjust the built-in translation support.
70
 
@@ -77,25 +77,25 @@ Not only will you be able to manually adjust the point balance system at any tim
77
 
78
  = AWARD OR DEDUCT POINTS AUTOMATICALLY =
79
 
80
- **myCred** supports an extensive set of WordPress interactions through which you can automatically give/take points from a user. These actions can be as simple as logging in, publishing content, or leaving a comment. These automatic adjustments are managed by a feature called “[Hooks](https://mycred.me/about/features/#automatic-points)” that can be set up in your admin area.
81
 
82
 
83
  = DEDICATED LOG =
84
 
85
- Each time **myCred** adds or deducts points from a user, the adjustment is [logged](https://mycred.me/about/features/#account-history) in a dedicated log, allowing your users to browse their history. This log keeps a record of your users’ accountability, badges, and ranks, among other useful statistics.
86
 
87
  This log data can be converted into charts to help you visualize the usage and circulation of points on your website.
88
 
89
  You can achieve the following features by using a dedicated log for your points system:
90
 
91
  * Set a limit to the maximum number of times each hook can give out points to your user.
92
- * Badges will use the log’s data to determine which user has earned a badge.
93
- * Add-ons such as “Sell Content” use the log to keep track of users who have purchased posts from your website.
94
  * Add-ons use the log to make sure that a user does not gain repetitive points for the same interaction within a given time frame.
95
 
96
  = BUILT-IN ADD-ONS =
97
 
98
- myCred is much more than just a point management system – The plugin comes with several [built-in add-ons](https://www.mycred.me/add-ons/) that enable you to perform complex tasks such as transfer or buy points for real money, allow payments in stores, etc.
99
 
100
  **- Badges:** Award your users badges based on their points history.
101
  **- buyCred:** Let your users buy points in exchange for real money.
@@ -103,7 +103,7 @@ myCred is much more than just a point management system – The plugin come
103
  **- Email notifications:** Setup email notifications for status updates.
104
  **- Gateway:** Let users pay with points in your store.
105
  **- Notifications:** Enable popup notifications that display status updates.
106
- **- Ranks:** Create ranks based on the user’s point balance.
107
  **- Sell Content:** Sell your content in exchange for points.
108
  **- Statistics:** Get a statistical overview of points in circulation, etc.
109
  **- Transfers:** Allow your users to transfer points to other users.
@@ -114,7 +114,7 @@ Power your WordPress website with 50+ add-ons ranging from categories like **Gam
114
 
115
  myCred supports some of the most popular WordPress plugins like **BuddyPress, WooCommerce, Jetpack, Contact Form 7, Disqus, Gravity Forms,** among countless others.
116
 
117
- **Simple & organized –** To keep your admin area organized, myCred will only show features and setting for those third-party plugins that are installed and enabled.
118
 
119
 
120
  = INTEGRATED WITH THE MOST POPULAR LEARNING MANAGEMENT SYSTEMS =
@@ -142,10 +142,10 @@ myCred is integrated with a large number of popular learning management systems,
142
  [Explore to find out more...](https://www.mycred.me/product-category/freebies/)
143
 
144
 
145
- = MYCRED’S THIRD-PARTY BRIDGES PLUGINS: =
146
 
147
- - [Stripe – buyCred Gateway](https://www.mycred.me/store/buycred-stripe/)
148
- - [Easy Digital Downloads – myCred Gateway](https://www.mycred.me/store/mycred-for-easy-digital-downloads/)
149
  - [myCred Zapier Addon](https://mycred.me/store/mycred-zapier-addon/)
150
  - [myCred Dokan](https://www.mycred.me/store/mycred-dokan/)
151
  - [myCred WCVendors](https://www.mycred.me/store/mycred-wc-vendors/)
@@ -153,13 +153,13 @@ myCred is integrated with a large number of popular learning management systems,
153
  - [myCred for Users Ultra](https://www.mycred.me/store/mycred-for-users-ultra/)
154
  - [myCred for User Pro](https://www.mycred.me/store/mycred-for-user-pro/)
155
 
156
- = MYCRED’S GAMIFICATION PLUGINS: =
157
 
158
  - [myCred PacMan](https://www.mycred.me/store/mycred-pacman/)
159
  - [Wheel of Fortune Add-On](https://www.mycred.me/store/wheel-of-fortune-add-on/)
160
 
161
 
162
- = MYCRED’S ENHANCEMENT PLUGINS: =
163
 
164
  - [myCred WooCommerce Plus](https://www.mycred.me/store/mycred-woocommerce-plus/)
165
  - [myCred Email Digest](https://mycred.me/store/mycred-email-digest/)
@@ -167,7 +167,7 @@ myCred is integrated with a large number of popular learning management systems,
167
  - [myCred Points Cap](https://mycred.me/store/mycred-points-cap/)
168
  - [myCred Level Cred](https://www.mycred.me/store/mycred-level-cred/)
169
  - [myCred Social Proof](https://www.mycred.me/store/mycred-social-proof/)
170
- - [myCred SMS Payments – Twilio Transfers](https://www.mycred.me/store/sms-payments/)
171
  - [myCred Expiration Add on](https://www.mycred.me/store/mycred-expiration-add-on/)
172
  - [myCred Social Share Add on](https://www.mycred.me/store/mycred-social-share-add-on/)
173
  - [myCred Progress Bar Add on](https://www.mycred.me/store/mycred-progress-bar-add-on/)
@@ -186,16 +186,16 @@ You can find extensive [documentation](http://codex.mycred.me/) on myCred relate
186
 
187
  = Customizations =
188
 
189
- myCred has the ability to “do-it-all” because we have put in a lot of effort to make sure that the supported plugins are as developer-friendly as possible. If you need to build a custom feature, simply submit a [request for a quote](https://mycred.me/customize/request-quote/) via the myCred website.
190
 
191
 
192
  = Support =
193
 
194
- We offer support on our [myCred website](https://mycred.me/support/) from 9 AM – 5 PM, Monday to Friday (GMT+5).
195
 
196
- You can either submit a [customization request](https://mycred.me/customize/request-quote/) or open a [support ticket](https://mycred.me/support/) any time you’re facing trouble with myCred.
197
 
198
- If you’re facing a problem that is not described in our technical documentation, we suggest that you consult myCred’s [online community](https://mycred.me/support/forums/) with your question. We pay users through myCred Store Tokens as a reward for reporting bugs and even their fixes.
199
 
200
  == Installation ==
201
 
@@ -277,6 +277,8 @@ Bug fixes release.
277
  = 1.8.13 =
278
  Bug fixes release.
279
 
 
 
280
 
281
  == Other Notes ==
282
 
@@ -299,6 +301,11 @@ Bug fixes release.
299
 
300
  == Changelog ==
301
 
 
 
 
 
 
302
  = 1.8.13 =
303
  - **NEW** - Introduce a decimal attribute in mycred_my_balance_converted shortcode
304
  - **NEW** - Introduce a filter mycred_woocommerce_gateway_supports
@@ -422,7 +429,7 @@ Bug fixes release.
422
  - **FIX** - setCookie function error when adding new hook.
423
 
424
  = 1.8.4 =
425
- - **NEW** - Introduce a new filter “mycred_option_id” for manipulating hooks.
426
  - **NEW** - Add new action "mycred_pref_hooks" on mycred hooks page
427
  - **TWEAK** - Limits are showing for Approved comments hook in [mycred_hook_table] shortcode.
428
  - **FIX** - Sell content undefined offset in Backend Pages & Posts.
@@ -485,6 +492,5 @@ IMPROVEMENT - Added check for existing logs getting disappeared.
485
  - **TWEAK** - issue related to email not getting send on transfer in and out triggers in transfer addon
486
  - **TWEAK** - Rank excerpt fix
487
 
488
-
489
  = Previous Versions =
490
  https://mycred.me/support/changelog/
3
  Tags: badges, gamification, loyalty, points, rewards
4
  Requires at least: 4.8
5
  Tested up to: 5.5
6
+ Stable tag: 1.8.13.1
7
  Requires PHP: 7.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
14
 
15
  myCred is an intelligent and adaptive **points management system** that allows you to build and manage a broad range of digital rewards including points, ranks and, badges on your WordPress/WooCommerce powered website.
16
 
17
+ Build **brand loyalty** by rewarding your customers through store reward systems, community leaderboards, monetizing your website content, etc. The possibilities are endless.
18
 
19
+ **Increase customer engagement tenfold Rewarding your users for community engagement will help your business grow.**
20
 
21
  = AMAZING AWARD SYSTEMS TO ENGAGE AND REWARD LOYAL CUSTOMERS =
22
 
24
 
25
  * **Points -** Set events and triggers to allow real-time tracking and automatically award your users with points.
26
 
27
+ * **Ranks –** Set ranks within your leaderboards and reward your users with significant perks after they reach a certain milestone.
28
 
29
+ * **Badges -** Boost your users participation by rewarding them for their exceptional performance.
30
 
31
  = BECOME A VIP MEMBER OF THE MYCRED MEMBERSHIP CLUB =
32
 
44
 
45
  = Features =
46
 
47
+ **- Point Balances:** Each user on your website will have their own point balance, where theyll be able to view points that were gained/lost.
48
  **- Account History:** Each time a user gains or loses points on your website, the transaction is logged into a central log for accountability.
49
+ **- Points Management:** You have full control over your users point balances; You can adjust your user/s balance by adding or removing points with or without a log entry.
50
  **- White-Labeling:** myCred has built-in support for white-labeling - This allows you to rename the plugin in your admin area to anything you like.
51
  **- Import & Export:** myCred comes with three built-in import tools allowing you to import points, log entries, or migrate your CubePoints installation.
52
+ **- Automatic Points:** Automatically award or deduct points from your users balance for their interaction on your Wordpress/WooCommerce website.
53
  **- Multiple Point Types:** Create multiple point types through the admin area to manage things easily. There is no limit to the number of point types you can have at your disposal.
54
  **- Multi-Site Support:** myCred has built-in support for multi-sites, allowing you to choose between using a unique myCred installation or centralize balances across your network.
55
+ **- Leaderboards:** Generate leaderboards based on your users balance or points history - display users with the most points for a particular instance.
56
  **- Badges:** Award badges to your users based on their points history. You can set certain requirements for this feature so that myCred automatically awards them to the deserving users.
57
  **- Buy Points:** The buyCred add-on allows your users to purchase points using real money using some of the most popular payment gateways available in the market today.
58
  **- Coupons:** Create and share coupon codes with your users, which can be redeemed when they have generated a certain amount of points.
59
  **- Notifications:** The notifications add-on allows you to show popup notifications each time a user gains or loses points on your website.
60
+ **- Ranks:** Ranks are based on how well your user balance is performing. As a users balance changes, so do their rank.
61
  **- Store Payments:** myCred supports some of the most popular store plugins for WordPress, allowing your users to pay for orders/tickets using their point balance instead of real money.
62
  **- Reward Purchases:** You can opt to reward your users with points that they can use to buy products in your store.
63
  **- Sell Content:** The Sell Content add-on allows you to sell access to the content field of posts/pages or custom post types on your website.
64
  **- Statistics:** The statistics add-on will convert your log data into charts to help visualize points usage and circulation on your website.
65
  **- Transfers:** The transfer add-on allows your users to transfer points to other users on your website.
66
  **- Theme Independent:** The myCred plugin is theme independent - Your theme needs to support widgets and shortcodes in order to run myCred.
67
+ **- BuddyPress Ready:** myCred has had built-in support for BuddyPress through which you can access BuddyPress related features like Insert point balances/badges/ranks into your users profiles.
68
  **- Bootstrap Ready:** myCred comes with minimal CSS styling to give you the freedom to style everything according to your needs.
69
  **- Translation Ready:** You can add your own language translation or adjust the built-in translation support.
70
 
77
 
78
  = AWARD OR DEDUCT POINTS AUTOMATICALLY =
79
 
80
+ **myCred** supports an extensive set of WordPress interactions through which you can automatically give/take points from a user. These actions can be as simple as logging in, publishing content, or leaving a comment. These automatic adjustments are managed by a feature called [Hooks](https://mycred.me/about/features/#automatic-points) that can be set up in your admin area.
81
 
82
 
83
  = DEDICATED LOG =
84
 
85
+ Each time **myCred** adds or deducts points from a user, the adjustment is [logged](https://mycred.me/about/features/#account-history) in a dedicated log, allowing your users to browse their history. This log keeps a record of your users accountability, badges, and ranks, among other useful statistics.
86
 
87
  This log data can be converted into charts to help you visualize the usage and circulation of points on your website.
88
 
89
  You can achieve the following features by using a dedicated log for your points system:
90
 
91
  * Set a limit to the maximum number of times each hook can give out points to your user.
92
+ * Badges will use the logs data to determine which user has earned a badge.
93
+ * Add-ons such as Sell Content use the log to keep track of users who have purchased posts from your website.
94
  * Add-ons use the log to make sure that a user does not gain repetitive points for the same interaction within a given time frame.
95
 
96
  = BUILT-IN ADD-ONS =
97
 
98
+ myCred is much more than just a point management system The plugin comes with several [built-in add-ons](https://www.mycred.me/add-ons/) that enable you to perform complex tasks such as transfer or buy points for real money, allow payments in stores, etc.
99
 
100
  **- Badges:** Award your users badges based on their points history.
101
  **- buyCred:** Let your users buy points in exchange for real money.
103
  **- Email notifications:** Setup email notifications for status updates.
104
  **- Gateway:** Let users pay with points in your store.
105
  **- Notifications:** Enable popup notifications that display status updates.
106
+ **- Ranks:** Create ranks based on the users point balance.
107
  **- Sell Content:** Sell your content in exchange for points.
108
  **- Statistics:** Get a statistical overview of points in circulation, etc.
109
  **- Transfers:** Allow your users to transfer points to other users.
114
 
115
  myCred supports some of the most popular WordPress plugins like **BuddyPress, WooCommerce, Jetpack, Contact Form 7, Disqus, Gravity Forms,** among countless others.
116
 
117
+ **Simple & organized –** To keep your admin area organized, myCred will only show features and setting for those third-party plugins that are installed and enabled.
118
 
119
 
120
  = INTEGRATED WITH THE MOST POPULAR LEARNING MANAGEMENT SYSTEMS =
142
  [Explore to find out more...](https://www.mycred.me/product-category/freebies/)
143
 
144
 
145
+ = MYCREDS THIRD-PARTY BRIDGES PLUGINS: =
146
 
147
+ - [Stripe buyCred Gateway](https://www.mycred.me/store/buycred-stripe/)
148
+ - [Easy Digital Downloads myCred Gateway](https://www.mycred.me/store/mycred-for-easy-digital-downloads/)
149
  - [myCred Zapier Addon](https://mycred.me/store/mycred-zapier-addon/)
150
  - [myCred Dokan](https://www.mycred.me/store/mycred-dokan/)
151
  - [myCred WCVendors](https://www.mycred.me/store/mycred-wc-vendors/)
153
  - [myCred for Users Ultra](https://www.mycred.me/store/mycred-for-users-ultra/)
154
  - [myCred for User Pro](https://www.mycred.me/store/mycred-for-user-pro/)
155
 
156
+ = MYCREDS GAMIFICATION PLUGINS: =
157
 
158
  - [myCred PacMan](https://www.mycred.me/store/mycred-pacman/)
159
  - [Wheel of Fortune Add-On](https://www.mycred.me/store/wheel-of-fortune-add-on/)
160
 
161
 
162
+ = MYCREDS ENHANCEMENT PLUGINS: =
163
 
164
  - [myCred WooCommerce Plus](https://www.mycred.me/store/mycred-woocommerce-plus/)
165
  - [myCred Email Digest](https://mycred.me/store/mycred-email-digest/)
167
  - [myCred Points Cap](https://mycred.me/store/mycred-points-cap/)
168
  - [myCred Level Cred](https://www.mycred.me/store/mycred-level-cred/)
169
  - [myCred Social Proof](https://www.mycred.me/store/mycred-social-proof/)
170
+ - [myCred SMS Payments Twilio Transfers](https://www.mycred.me/store/sms-payments/)
171
  - [myCred Expiration Add on](https://www.mycred.me/store/mycred-expiration-add-on/)
172
  - [myCred Social Share Add on](https://www.mycred.me/store/mycred-social-share-add-on/)
173
  - [myCred Progress Bar Add on](https://www.mycred.me/store/mycred-progress-bar-add-on/)
186
 
187
  = Customizations =
188
 
189
+ myCred has the ability to do-it-all because we have put in a lot of effort to make sure that the supported plugins are as developer-friendly as possible. If you need to build a custom feature, simply submit a [request for a quote](https://mycred.me/customize/request-quote/) via the myCred website.
190
 
191
 
192
  = Support =
193
 
194
+ We offer support on our [myCred website](https://mycred.me/support/) from 9 AM 5 PM, Monday to Friday (GMT+5).
195
 
196
+ You can either submit a [customization request](https://mycred.me/customize/request-quote/) or open a [support ticket](https://mycred.me/support/) any time youre facing trouble with myCred.
197
 
198
+ If youre facing a problem that is not described in our technical documentation, we suggest that you consult myCreds [online community](https://mycred.me/support/forums/) with your question. We pay users through myCred Store Tokens as a reward for reporting bugs and even their fixes.
199
 
200
  == Installation ==
201
 
277
  = 1.8.13 =
278
  Bug fixes release.
279
 
280
+ = 1.8.13.1 =
281
+ Bug fixes release.
282
 
283
  == Other Notes ==
284
 
301
 
302
  == Changelog ==
303
 
304
+ = 1.8.13.1 =
305
+ - **FIX** - Site menu broken issue on frontend
306
+ - **FIX** - Style glitches on some themes
307
+ - **FIX** - Hide myCred rank menu when user doesn't have any rank
308
+
309
  = 1.8.13 =
310
  - **NEW** - Introduce a decimal attribute in mycred_my_balance_converted shortcode
311
  - **NEW** - Introduce a filter mycred_woocommerce_gateway_supports
429
  - **FIX** - setCookie function error when adding new hook.
430
 
431
  = 1.8.4 =
432
+ - **NEW** - Introduce a new filter mycred_option_id for manipulating hooks.
433
  - **NEW** - Add new action "mycred_pref_hooks" on mycred hooks page
434
  - **TWEAK** - Limits are showing for Approved comments hook in [mycred_hook_table] shortcode.
435
  - **FIX** - Sell content undefined offset in Backend Pages & Posts.
492
  - **TWEAK** - issue related to email not getting send on transfer in and out triggers in transfer addon
493
  - **TWEAK** - Rank excerpt fix
494
 
 
495
  = Previous Versions =
496
  https://mycred.me/support/changelog/