myCRED - Version 1.0.7

Version Description

  • Adjusted Social Media CSS Styling.
  • Fixed Bug #12 - Leaderboard Widget Title is not shown.
  • Fixed Bug #13 - PayPal Payment Standard uses a reference that does not exist causing verified IPN calls to fail.
Download this release

Release Info

Developer designbymerovingi
Plugin Icon 128x128 myCRED
Version 1.0.7
Comparing to
See all releases

Code changes from version 1.0.6 to 1.0.7

addons/buy-creds/gateways/paypal-standard.php CHANGED
@@ -157,7 +157,7 @@ if ( !class_exists( 'myCRED_PayPal_Standard' ) ) {
157
  // Handle Payment Status
158
  if ( $error === false ) {
159
  // Completed transaction
160
- if ( $payment_status == 'Completed' ) {
161
  $entry = $this->get_entry( $_to, $_from );
162
  if ( $this->prefs['sandbox'] ) $entry = 'TEST ' . $entry;
163
 
@@ -184,14 +184,14 @@ if ( !class_exists( 'myCRED_PayPal_Standard' ) ) {
184
  }
185
 
186
  // Pending transaction
187
- elseif ( $payment_status == 'Pending' ) {
188
  $log_entry[] = 'Transaction Pending';
189
  do_action( "mycred_buy_cred_{$id}_pending", $data );
190
  }
191
 
192
  // Failed transaction
193
  else {
194
- $log_entry[] = 'Transaction Failed';
195
  do_action( "mycred_buy_cred_{$id}_failed", $data );
196
  }
197
  }
157
  // Handle Payment Status
158
  if ( $error === false ) {
159
  // Completed transaction
160
+ if ( $data['payment_status'] == 'Completed' ) {
161
  $entry = $this->get_entry( $_to, $_from );
162
  if ( $this->prefs['sandbox'] ) $entry = 'TEST ' . $entry;
163
 
184
  }
185
 
186
  // Pending transaction
187
+ elseif ( $data['payment_status'] == 'Pending' ) {
188
  $log_entry[] = 'Transaction Pending';
189
  do_action( "mycred_buy_cred_{$id}_pending", $data );
190
  }
191
 
192
  // Failed transaction
193
  else {
194
+ $log_entry[] = 'Transaction Failed. PayPal replied: ' . $data['payment_status'];
195
  do_action( "mycred_buy_cred_{$id}_failed", $data );
196
  }
197
  }
assets/css/admin.css CHANGED
@@ -20,6 +20,7 @@
20
  /* Specifics */
21
  #icon-myCRED { background-image: url(../images/cred-icon32.png); background-repeat: no-repeat; background-position: 0 0; }
22
  #myCRED-wrap p.submit { margin-top: 0; padding-top: 0; }
 
23
 
24
  /* General */
25
  #myCRED-wrap .h2 { font-family: "HelveticaNeue-Light","Helvetica Neue Light","Helvetica Neue",sans-serif; font-size: 22px; line-height: 29px; font-weight: normal; text-shadow: #fff 0 1px 0; }
20
  /* Specifics */
21
  #icon-myCRED { background-image: url(../images/cred-icon32.png); background-repeat: no-repeat; background-position: 0 0; }
22
  #myCRED-wrap p.submit { margin-top: 0; padding-top: 0; }
23
+ #mycred-social { text-align: right; }
24
 
25
  /* General */
26
  #myCRED-wrap .h2 { font-family: "HelveticaNeue-Light","Helvetica Neue Light","Helvetica Neue",sans-serif; font-size: 22px; line-height: 29px; font-weight: normal; text-shadow: #fff 0 1px 0; }
includes/mycred-widgets.php CHANGED
@@ -303,7 +303,7 @@ if ( !class_exists( 'myCRED_Widget_List' ) ) {
303
  echo $before_widget;
304
 
305
  // Title
306
- if ( !empty( $title ) ) {
307
  echo $before_title;
308
  echo $mycred->template_tags_general( $instance['title'] );
309
  echo $after_title;
303
  echo $before_widget;
304
 
305
  // Title
306
+ if ( !empty( $instance['title'] ) ) {
307
  echo $before_title;
308
  echo $mycred->template_tags_general( $instance['title'] );
309
  echo $after_title;
mycred.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: myCRED
4
  Plugin URI: http://mycred.merovingi.com
5
  Description: <strong>my</strong>CRED is an adaptive points management system for WordPress powered websites, giving you full control on how points are gained, used, traded, managed, logged or presented.
6
- Version: 1.0.6
7
  Tags: points, tokens, credit, management, reward, charge
8
  Author: Gabriel S Merovingi
9
  Author URI: http://www.merovingi.com
@@ -13,7 +13,7 @@ Tested up to: WP 3.5.1
13
  License: GPLv2 or later
14
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
15
  */
16
- define( 'myCRED_VERSION', '1.0.6' );
17
  define( 'myCRED_SLUG', 'mycred' );
18
 
19
  define( 'myCRED_THIS', __FILE__ );
3
  Plugin Name: myCRED
4
  Plugin URI: http://mycred.merovingi.com
5
  Description: <strong>my</strong>CRED is an adaptive points management system for WordPress powered websites, giving you full control on how points are gained, used, traded, managed, logged or presented.
6
+ Version: 1.0.7
7
  Tags: points, tokens, credit, management, reward, charge
8
  Author: Gabriel S Merovingi
9
  Author URI: http://www.merovingi.com
13
  License: GPLv2 or later
14
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
15
  */
16
+ define( 'myCRED_VERSION', '1.0.7' );
17
  define( 'myCRED_SLUG', 'mycred' );
18
 
19
  define( 'myCRED_THIS', __FILE__ );
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate Link: http://mycred.merovingi.com/donate/
4
  Tags:points, tokens, credit, management, reward, charge, community
5
  Requires at least: 3.1
6
  Tested up to: 3.5.1
7
- Stable tag: 1.0.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -105,6 +105,10 @@ Yes. You can set a negative value for either "Creating Group" or "Joining Group"
105
 
106
  You can always disable parts of a hook by awarding zero points. Hooks that have zero points are ignored.
107
 
 
 
 
 
108
 
109
  == Screenshots ==
110
 
@@ -117,6 +121,11 @@ You can always disable parts of a hook by awarding zero points. Hooks that have
117
 
118
  == Changelog ==
119
 
 
 
 
 
 
120
  = 1.0.6 =
121
  * Fixed Bug #10 - Incorrect call of Ranking class.
122
  * Added Social Media Links to Settings Page.
4
  Tags:points, tokens, credit, management, reward, charge, community
5
  Requires at least: 3.1
6
  Tested up to: 3.5.1
7
+ Stable tag: 1.0.7
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
105
 
106
  You can always disable parts of a hook by awarding zero points. Hooks that have zero points are ignored.
107
 
108
+ = Can I use the mycred_sell_this shortcode multiple times in a post?
109
+
110
+ Yes but if one of them is bought, all is shown. The mycred_sell_this shortcode was created so you can show "teaser" content before someone purchases the post / page / custom post type. It was not built to sell multiple items on a single page.
111
+
112
 
113
  == Screenshots ==
114
 
121
 
122
  == Changelog ==
123
 
124
+ = 1.0.7 =
125
+ * Adjusted Social Media CSS Styling.
126
+ * Fixed Bug #12 - Leaderboard Widget Title is not shown.
127
+ * Fixed Bug #13 - PayPal Payment Standard uses a reference that does not exist causing verified IPN calls to fail.
128
+
129
  = 1.0.6 =
130
  * Fixed Bug #10 - Incorrect call of Ranking class.
131
  * Added Social Media Links to Settings Page.