Changeset 571698
- Timestamp:
- 07/13/2012 10:49:25 AM (13 years ago)
- Location:
- cubepoints/trunk
- Files:
-
- 11 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
cubepoints/trunk/cp_admin.php
r445086 r571698 25 25 add_action('admin_menu', 'cp_admin'); 26 26 27 /** Register datatables script and stylesheet for admin pages */ 28 wp_register_script('datatables', 29 CP_PATH . 'assets/datatables/js/jquery.dataTables.min.js', 30 array('jquery'), 31 '1.7.4' ); 32 wp_register_style('datatables', CP_PATH . 'assets/datatables/css/style.css'); 27 add_action('admin_enqueue_scripts', 'cp_admin_register_scripts'); 28 function cp_admin_register_scripts() { 29 /** Register datatables script and stylesheet for admin pages */ 30 wp_register_script('datatables', 31 CP_PATH . 'assets/datatables/js/jquery.dataTables.min.js', 32 array('jquery'), 33 '1.7.4' ); 34 wp_register_style('datatables', CP_PATH . 'assets/datatables/css/style.css'); 35 36 /** Register autocomplete script and stylesheet for admin pages */ 37 wp_register_script('autocomplete', 38 CP_PATH . 'assets/autocomplete/jquery.autocomplete.js', 39 array('jquery'), 40 '3.2.2' ); 41 wp_register_style('autocomplete', CP_PATH . 'assets/autocomplete/jquery.autocomplete.css'); 42 } 33 43 34 44 /** Enqueue datatables */ … … 47 57 add_action('admin_print_styles-cubepoints_page_cp_admin_modules', 'cp_datatables_style'); 48 58 49 /** Register autocomplete script and stylesheet for admin pages */50 wp_register_script('autocomplete',51 CP_PATH . 'assets/autocomplete/jquery.autocomplete.js',52 array('jquery'),53 '3.2.2' );54 wp_register_style('autocomplete', CP_PATH . 'assets/autocomplete/jquery.autocomplete.css');55 56 59 /** Enqueue autocomplete */ 57 60 function cp_autocomplete_script(){ -
cubepoints/trunk/cp_hooks.php
r445086 r571698 42 42 add_action('comment_approved_to_spam', 'cp_commentUnapprove', 10, 1); 43 43 function cp_commentUnapprove($cdata){ 44 // check if points were indeed awarded for this comment 45 global $wpdb; 46 if($wpdb->get_var('SELECT COUNT(*) FROM ' . CP_DB . ' WHERE type = \'comment\' AND data = ' . $cdata->comment_ID)==0){ 47 return; 48 } 44 49 do_action('cp_comment_remove', $cdata->comment_ID); 45 50 cp_points('comment_remove', $cdata->user_id, apply_filters('cp_del_comment_points',-get_option('cp_del_comment_points')), $cdata->comment_ID); -
cubepoints/trunk/cp_widgets.php
r445086 r571698 159 159 echo __('Number of points', 'cp') . ' - %points%' . '<br />'; 160 160 echo __('Points (number only)', 'cp') . ' - %npoints%' . '<br />'; 161 echo __('User display name', 'cp') . ' - %user %' . '<br />';162 echo __('User login ID', 'cp') . ' - %user name%' . '<br />';161 echo __('User display name', 'cp') . ' - %username%' . '<br />'; 162 echo __('User login ID', 'cp') . ' - %user%' . '<br />'; 163 163 echo __('User ID', 'cp') . ' - %userid%' . '<br />'; 164 164 echo __('User ranking', 'cp') . ' - %place%' . '<br />'; -
cubepoints/trunk/cubepoints.php
r445086 r571698 3 3 Plugin Name: CubePoints 4 4 Plugin URI: http://cubepoints.com 5 Description: CubePoints is a point management system designed for Word press blogs. Users can earn points by posting comments on your site. To display user's points, just put <code><?php cp_displayPoints(); ?></code> in your template or activate the sidebar widget.6 Version: 3.1 5 Description: CubePoints is a point management system designed for WordPress blogs. Users can earn points by posting comments on your site. To display user's points, just put <code><?php cp_displayPoints(); ?></code> in your template or activate the sidebar widget. 6 Version: 3.1.1 7 7 Author: Jonathan Lau & Peter Zhang 8 8 Author URI: http://cubepoints.com … … 12 12 13 13 /** Define constants */ 14 define('CP_VER', '3.1 ');14 define('CP_VER', '3.1.1'); 15 15 define('CP_DB', $wpdb->base_prefix . 'cp'); 16 16 define('CP_PATH', WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__))); -
cubepoints/trunk/modules/comment_spam_control.php
r445086 r571698 3 3 /** Comment Spam Control Module */ 4 4 5 cp_module_register(__('Comment Spam Control', 'cp') , 'cp_csc' , '1. 0', 'CubePoints', 'http://cubepoints.com', 'http://cubepoints.com' , __('When enabled, this pluginwould only allow users to receive points for one comment per post.', 'cp'), 1);5 cp_module_register(__('Comment Spam Control', 'cp') , 'cp_csc' , '1.1', 'CubePoints', 'http://cubepoints.com', 'http://cubepoints.com' , __('When enabled, this module would only allow users to receive points for one comment per post.', 'cp'), 1); 6 6 7 7 if(cp_module_activated('cp_csc')){ 8 add_action('cp_newComment', 'cp_module_csc_newComment'); 9 add_action('cp_approvedComment', 'cp_module_csc_newComment'); 8 add_action('cp_comment_add', 'cp_module_csc_newComment'); 10 9 function cp_module_csc_newComment($cid) { 11 10 if (is_user_logged_in()) { -
cubepoints/trunk/modules/paypal/paypal.php
r373336 r571698 339 339 // check that txn_id has not been previously processed 340 340 global $wpdb; 341 $results = $wpdb->get_results('SELECT * FROM `'.CP_DB.'` WHERE `tyle`=\'paypal\''); 341 $results = $wpdb->get_results('SELECT * FROM `'.CP_DB.'` WHERE `type`=\'paypal\''); 342 342 343 foreach($results as $result){ 343 344 $data = $result->data; -
cubepoints/trunk/modules/points_multiplier.php
r373336 r571698 3 3 /** Points Multiplier Module */ 4 4 5 cp_module_register(__('Points Multiplier', 'cp') , 'pmultiply' , '1.0', 'CubePoints', 'http://cubepoints.com', 'http://cubepoints.com' , __('This module allows you to temporarily double, triple points earned by users. Useful if you wish to increase user activi y in a particular week. You may also use this module to temporarily disable points from being earned.', 'cp'), 1);5 cp_module_register(__('Points Multiplier', 'cp') , 'pmultiply' , '1.0', 'CubePoints', 'http://cubepoints.com', 'http://cubepoints.com' , __('This module allows you to temporarily double, triple points earned by users. Useful if you wish to increase user activity in a particular week. You may also use this module to temporarily disable points from being earned.', 'cp'), 1); 6 6 7 7 function cp_module_pmultiply_install(){ -
cubepoints/trunk/readme.txt
r445086 r571698 4 4 Tags: points, comments, post, admin, widget 5 5 Requires at least: 2.2 6 Tested up to: 3.2.1 7 Stable tag: 3.1 6 Tested up to: 3.4.1 7 Stable tag: 3.1.1 8 License: GPLv2 or later 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html 8 10 9 11 CubePoints is a point management system designed for WordPress blogs. … … 32 34 = Where can I find additional help and support for this plugin? = 33 35 34 You may visit the CubePoints Forum(http://cubepoints.com/forums/) for additional community help and support.36 You may visit the [CubePoints Forum](http://cubepoints.com/forums/) for additional community help and support. 35 37 36 38 = How do I activate other features? = … … 47 49 == Upgrade Notice == 48 50 49 = 3.0.3 = 51 = 3.1.1 = 52 Translations for 11 locales added. Problems with RTL support, "PayPal Top-up" module & "Comment Spam Control" module fixed. 53 54 = 3.1 = 50 55 New features and modules added. Several bugs fixed as well. 51 56 … … 78 83 79 84 == Changelog == 85 86 **Version 3.1.1** *(July 13th, 2012)* 87 88 + [Translation] Added I18n for 11 locales: Arabic (ar), German (de_DE), Spanish (es_ES), French (fr_FR), Hungarian (hu_HU), Italian (it_IT), Polish (pl_PL), Portuguese (pt_BR), Romanian (ro_RO), Russianb (ru_RU), Ukrainian (uk) 89 + [Bugfix] Fixed the issue where points do not get added after a successful payment in the "PayPal Top-up" module 90 + [Bugfix] Fixed RTL Language support 91 + [Bugfix] Fixed problem with the "Comment Spam Control" module 80 92 81 93 **Version 3.1** *(September 29th, 2011)* … … 87 99 + [Change] Updates to the CubePoints modules system 88 100 + [Bugfix] Fixed bug where the donate module would not work if unicode characters are entered in the message 89 90 101 91 102 **Version 3.0.3** *(May 13th, 2011)*
Note: See TracChangeset
for help on using the changeset viewer.