Version Description
Bug fixes release.
=
Download this release
Release Info
Developer | wpexpertsio |
Plugin | myCRED |
Version | 1.8.3 |
Comparing to | |
See all releases |
Code changes from version 1.8.2 to 1.8.3
- includes/hooks/external/mycred-hook-bbPress.php +1 -1
- includes/hooks/mycred-hook-referrals.php +15 -1
- includes/mycred-functions.php +1 -0
- mycred.php +2 -2
- readme.txt +11 -2
includes/hooks/external/mycred-hook-bbPress.php
CHANGED
@@ -547,7 +547,7 @@ function mycred_load_bbpress_hook() {
|
|
547 |
</div>
|
548 |
</div>
|
549 |
<div class="hook-instance">
|
550 |
-
<h3><?php _e( '
|
551 |
<div class="row">
|
552 |
<div class="col-lg-2 col-md-6 col-sm-12 col-xs-12">
|
553 |
<div class="form-group">
|
547 |
</div>
|
548 |
</div>
|
549 |
<div class="hook-instance">
|
550 |
+
<h3><?php _e( 'Forum Reply', 'mycred' ); ?></h3>
|
551 |
<div class="row">
|
552 |
<div class="col-lg-2 col-md-6 col-sm-12 col-xs-12">
|
553 |
<div class="form-group">
|
includes/hooks/mycred-hook-referrals.php
CHANGED
@@ -55,6 +55,7 @@ if ( ! class_exists( 'myCRED_Hook_Affiliate' ) ) :
|
|
55 |
$this->ref_key = apply_filters( 'mycred_affiliate_key', 'mref', $this );
|
56 |
|
57 |
add_filter( 'mycred_parse_log_entry_signup_referral', array( $this, 'parse_log_entry' ), 10, 2 );
|
|
|
58 |
|
59 |
}
|
60 |
|
@@ -207,7 +208,7 @@ if ( ! class_exists( 'myCRED_Hook_Affiliate' ) ) :
|
|
207 |
|
208 |
// Table
|
209 |
$output .= '<table class="profile-fields">';
|
210 |
-
$output .= sprintf( '<tr class="field_1 field_ref_link"><td class="label">%s</td><td
|
211 |
|
212 |
// Show Visitor referral count
|
213 |
if ( $this->prefs['visit']['creds'] != 0 )
|
@@ -796,3 +797,16 @@ if ( ! function_exists( 'mycred_detect_bp_user_activation' ) ) :
|
|
796 |
|
797 |
}
|
798 |
endif;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
$this->ref_key = apply_filters( 'mycred_affiliate_key', 'mref', $this );
|
56 |
|
57 |
add_filter( 'mycred_parse_log_entry_signup_referral', array( $this, 'parse_log_entry' ), 10, 2 );
|
58 |
+
add_action( 'wp_footer', 'copy_ref_link' );
|
59 |
|
60 |
}
|
61 |
|
208 |
|
209 |
// Table
|
210 |
$output .= '<table class="profile-fields">';
|
211 |
+
$output .= sprintf( '<tr class="field_1 field_ref_link"><td class="label">%s</td><td><input type="text" value="%s" id="mref-link-buddypress-profile" readonly><button onclick="copy_to_clipBoard()">Copy</button></td></tr>', __( 'Link', 'mycred' ), $users_ref_link );
|
212 |
|
213 |
// Show Visitor referral count
|
214 |
if ( $this->prefs['visit']['creds'] != 0 )
|
797 |
|
798 |
}
|
799 |
endif;
|
800 |
+
|
801 |
+
if ( ! function_exists( 'copy_ref_link' ) ) :
|
802 |
+
function copy_ref_link() {?>
|
803 |
+
<script>
|
804 |
+
function copy_to_clipBoard() {
|
805 |
+
var copyText = document.getElementById("mref-link-buddypress-profile");
|
806 |
+
copyText.select();
|
807 |
+
document.execCommand("copy");
|
808 |
+
}
|
809 |
+
</script>
|
810 |
+
<?php
|
811 |
+
}
|
812 |
+
endif;
|
includes/mycred-functions.php
CHANGED
@@ -100,6 +100,7 @@ if ( ! class_exists( 'myCRED_Settings' ) ) :
|
|
100 |
public function defaults() {
|
101 |
|
102 |
return array(
|
|
|
103 |
'format' => array(
|
104 |
'type' => 'bigint',
|
105 |
'decimals' => 0,
|
100 |
public function defaults() {
|
101 |
|
102 |
return array(
|
103 |
+
'cred_id' => MYCRED_DEFAULT_TYPE_KEY,
|
104 |
'format' => array(
|
105 |
'type' => 'bigint',
|
106 |
'decimals' => 0,
|
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.
|
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.
|
23 |
|
24 |
// Instnace
|
25 |
protected static $_instance = NULL;
|
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.3
|
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.3';
|
23 |
|
24 |
// Instnace
|
25 |
protected static $_instance = NULL;
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: mycred,wpexpertsio
|
|
3 |
Tags: point, credit, loyalty program, engagement, reward
|
4 |
Requires at least: 4.8
|
5 |
Tested up to: 5.1
|
6 |
-
Stable tag: 1.8.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -95,11 +95,14 @@ You can find a list of [frequently asked questions](https://mycred.me/about/faq/
|
|
95 |
Major release(Make sure to take backup before updating)
|
96 |
|
97 |
= 1.8.1 =
|
98 |
-
Bug fixes.
|
99 |
|
100 |
= 1.8.2 =
|
101 |
Bug fixes release.
|
102 |
|
|
|
|
|
|
|
103 |
|
104 |
== Other Notes ==
|
105 |
|
@@ -122,6 +125,12 @@ Bug fixes release.
|
|
122 |
|
123 |
== Changelog ==
|
124 |
|
|
|
|
|
|
|
|
|
|
|
|
|
125 |
= 1.8.2 =
|
126 |
FIX - [mycred_best_user] shortcode fixed.
|
127 |
FIX - Post related template tags fixed.
|
3 |
Tags: point, credit, loyalty program, engagement, reward
|
4 |
Requires at least: 4.8
|
5 |
Tested up to: 5.1
|
6 |
+
Stable tag: 1.8.3
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
95 |
Major release(Make sure to take backup before updating)
|
96 |
|
97 |
= 1.8.1 =
|
98 |
+
Bug fixes release.
|
99 |
|
100 |
= 1.8.2 =
|
101 |
Bug fixes release.
|
102 |
|
103 |
+
= 1.8.3 =
|
104 |
+
Bug fixes release.
|
105 |
+
|
106 |
|
107 |
== Other Notes ==
|
108 |
|
125 |
|
126 |
== Changelog ==
|
127 |
|
128 |
+
= 1.8.3 =
|
129 |
+
FIX - Fixed Woocommerce checkout errors.
|
130 |
+
FIX - Fixed get_users_balance function.
|
131 |
+
FIX - Fixed typo error in bbPress hook.
|
132 |
+
NEW - Added new feature to copy to clipboard referral link in BuddyPress profile page
|
133 |
+
|
134 |
= 1.8.2 =
|
135 |
FIX - [mycred_best_user] shortcode fixed.
|
136 |
FIX - Post related template tags fixed.
|