myCRED - Version beta2.2-3

Version Description

= 2.2 = New features and Bug fixes.

= 2.1.1 = New features and Bug fixes.

= 2.1 = New features and Bug fixes.

= 2.0 = The banking module have been replaced by Central deposite module, and interest related functionality has been removed. If you are using simple interest or compound interest related functionality, you will fine the respective functionalities missing after the update.

Download this release

Release Info

Developer wpexpertsio
Plugin Icon 128x128 myCRED
Version beta2.2-3
Comparing to
See all releases

Code changes from version beta2.2-2 to beta2.2-3

addons/buy-creds/modules/buycred-module-core.php CHANGED
@@ -245,6 +245,19 @@ if ( ! class_exists( 'myCRED_buyCRED_Module' ) ) :
245
 
246
  if ( $buycred_instance->is_ajax )
247
  die( json_encode( array( 'validationFail' => true , 'errors' => $buycred_instance->gateway->errors ) ) );
 
 
 
 
 
 
 
 
 
 
 
 
 
248
  }
249
 
250
  }
245
 
246
  if ( $buycred_instance->is_ajax )
247
  die( json_encode( array( 'validationFail' => true , 'errors' => $buycred_instance->gateway->errors ) ) );
248
+ else
249
+ {
250
+ foreach( $buycred_instance->gateway->errors as $error )
251
+ {
252
+ global $wp;
253
+ echo "
254
+ <script>
255
+ alert('".$error."');
256
+ location.replace( '".home_url( $wp->request )."' );
257
+ </script>
258
+ ";
259
+ }
260
+ }
261
  }
262
 
263
  }
addons/ranks/myCRED-addon-ranks.php CHANGED
@@ -899,7 +899,7 @@ if ( ! class_exists( 'myCRED_Ranks_Module' ) ) :
899
  /**
900
  * Insert Rank In bbPress Profile
901
  * @since 1.6
902
- * @version 1.0.1
903
  */
904
  public function insert_rank_bb_profile() {
905
 
@@ -907,7 +907,7 @@ if ( ! class_exists( 'myCRED_Ranks_Module' ) ) :
907
  $user_id = bbp_get_displayed_user_id();
908
  $mycred_types = mycred_get_usable_types( $user_id );
909
 
910
- foreach ( $mycred_types as $type_id => $label ) {
911
 
912
  // Load type
913
  $mycred = mycred( $type_id );
899
  /**
900
  * Insert Rank In bbPress Profile
901
  * @since 1.6
902
+ * @version 1.0.2
903
  */
904
  public function insert_rank_bb_profile() {
905
 
907
  $user_id = bbp_get_displayed_user_id();
908
  $mycred_types = mycred_get_usable_types( $user_id );
909
 
910
+ foreach ( $mycred_types as $key => $type_id ) {
911
 
912
  // Load type
913
  $mycred = mycred( $type_id );
addons/transfer/includes/mycred-transfer-functions.php CHANGED
@@ -319,7 +319,7 @@ if ( ! function_exists( 'mycred_transfer_render_message' ) ) :
319
 
320
  // Get saved message
321
  if ( ! empty( $data ) && array_key_exists( 'message', $data ) && ! empty( $data['message'] ) )
322
- $message = $data['message'];
323
 
324
  $content = str_replace( '%transfer_message%', $message, $original );
325
 
319
 
320
  // Get saved message
321
  if ( ! empty( $data ) && array_key_exists( 'message', $data ) && ! empty( $data['message'] ) )
322
+ $original .= ' - ' . $data['message'];
323
 
324
  $content = str_replace( '%transfer_message%', $message, $original );
325
 
addons/transfer/myCRED-addon-transfer.php CHANGED
@@ -202,7 +202,7 @@ if ( ! class_exists( 'myCRED_Transfer_Module' ) ) :
202
 
203
  }
204
 
205
- $results = apply_filters( 'mycred_transfer_users_list' , $results, $user_id, $this->transfer['autofill'] );
206
 
207
  wp_send_json( $results );
208
 
202
 
203
  }
204
 
205
+ $results = apply_filters( 'mycred_transfer_users_list' , $results, $user_id, $this->transfers['autofill'] );
206
 
207
  wp_send_json( $results );
208
 
includes/classes/class.query-leaderboard.php CHANGED
@@ -1007,7 +1007,7 @@ if ( ! class_exists( 'myCRED_Query_Leaderboard' ) ) :
1007
  $layout = $this->core->template_tags_user( $layout, $user['ID'] );
1008
 
1009
  //Point type Image
1010
- if( $args['image'] )
1011
  $layout = str_replace( '%image%', "<img src='{$mycred->image_url}' style='margin-right: 5px;' class='mycred-my-balance-image-".$args["type"]."' width='20px' />", $layout );
1012
  else
1013
  $layout = str_replace( '%image%', '', $layout );
1007
  $layout = $this->core->template_tags_user( $layout, $user['ID'] );
1008
 
1009
  //Point type Image
1010
+ if( $args['image'] && $mycred->image_url )
1011
  $layout = str_replace( '%image%', "<img src='{$mycred->image_url}' style='margin-right: 5px;' class='mycred-my-balance-image-".$args["type"]."' width='20px' />", $layout );
1012
  else
1013
  $layout = str_replace( '%image%', '', $layout );
includes/shortcodes/mycred_my_balance.php CHANGED
@@ -65,7 +65,7 @@ if ( ! function_exists( 'mycred_render_shortcode_my_balance' ) ) :
65
  $output .= '<' . $balance_el . '>';
66
 
67
  //Image
68
- if( $image )
69
  $output .= "<img src='{$mycred->image_url}' style='margin-right: 5px;' class='mycred-my-balance-image-{$type}' width='20px' />";
70
 
71
  if ( $formatted )
65
  $output .= '<' . $balance_el . '>';
66
 
67
  //Image
68
+ if( $image && $mycred->image_url)
69
  $output .= "<img src='{$mycred->image_url}' style='margin-right: 5px;' class='mycred-my-balance-image-{$type}' width='20px' />";
70
 
71
  if ( $formatted )
modules/mycred-module-br-social-share.php CHANGED
@@ -69,7 +69,7 @@ if ( ! class_exists( 'myCRED_Module_OB_Social_Share' ) ) :
69
  <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
70
  <div class="form-group">
71
  <div class="checkbox" style="padding-top: 4px;">
72
- <label for="<?php echo $this->field_id( 'enable_fb' ) ?>"><input type="checkbox" name="<?php echo $this->field_name( 'enable_fb' ) ?>" id="<?php echo $this->field_id( 'enable_fb' ) ?>" <?php checked( $settings['enable_fb'], 1 ); ?> value="1">Show Faceebook button</label>
73
  </div>
74
  </div>
75
  <div class="form-group">
69
  <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
70
  <div class="form-group">
71
  <div class="checkbox" style="padding-top: 4px;">
72
+ <label for="<?php echo $this->field_id( 'enable_fb' ) ?>"><input type="checkbox" name="<?php echo $this->field_name( 'enable_fb' ) ?>" id="<?php echo $this->field_id( 'enable_fb' ) ?>" <?php checked( $settings['enable_fb'], 1 ); ?> value="1">Show Facebook button</label>
73
  </div>
74
  </div>
75
  <div class="form-group">
readme.txt CHANGED
@@ -189,7 +189,7 @@ Power your WordPress website with 50+ add-ons ranging from categories like **Gam
189
 
190
  myCred supports some of the most popular WordPress plugins like **BuddyPress, WooCommerce, Jetpack, Contact Form 7, Disqus, Gravity Forms,** among countless others.
191
 
192
- **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.
193
 
194
 
195
  = INTEGRATED WITH THE MOST POPULAR LEARNING MANAGEMENT SYSTEMS =
@@ -348,7 +348,7 @@ The banking module have been replaced by Central deposite module, and interest r
348
  - **FIX** - Backend logs are not being exported whether the export raw/formatted log option is set.
349
  - **FIX** - Incorrect achieved badge level image in [mycred_badges] shortcode.
350
  - **FIX** - In the Ranks list page All/Published/Trash links not working properly.
351
- - **FIX** - Unable to revoke badge from the User profile page. FIX Added some security validations in the transfer form.
352
  - **FIX** - MYSQL 8 syntax error in the leaderboard shortcode.
353
  - **FIX** - Added compatibility with BuddyPress version 8.0.
354
  - **TWEAK** - When a user deletes the log of buy_content, the sales count does not get updated. So, we have Introduced the "Update Sales Count" button in the settings.
@@ -431,4 +431,4 @@ Improvement - Code optimization
431
  - **TWEAK** - myCred Central Deposit
432
 
433
  = Previous Versions =
434
- https://mycred.me/support/changelog/
189
 
190
  myCred supports some of the most popular WordPress plugins like **BuddyPress, WooCommerce, Jetpack, Contact Form 7, Disqus, Gravity Forms,** among countless others.
191
 
192
+ **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.
193
 
194
 
195
  = INTEGRATED WITH THE MOST POPULAR LEARNING MANAGEMENT SYSTEMS =
348
  - **FIX** - Backend logs are not being exported whether the export raw/formatted log option is set.
349
  - **FIX** - Incorrect achieved badge level image in [mycred_badges] shortcode.
350
  - **FIX** - In the Ranks list page All/Published/Trash links not working properly.
351
+ - **FIX** - Unable to revoke badge from the User profile page. FIX – Added some security validations in the transfer form.
352
  - **FIX** - MYSQL 8 syntax error in the leaderboard shortcode.
353
  - **FIX** - Added compatibility with BuddyPress version 8.0.
354
  - **TWEAK** - When a user deletes the log of buy_content, the sales count does not get updated. So, we have Introduced the "Update Sales Count" button in the settings.
431
  - **TWEAK** - myCred Central Deposit
432
 
433
  = Previous Versions =
434
+ https://mycred.me/support/changelog/