Plugin Directory

Changeset 571698


Ignore:
Timestamp:
07/13/2012 10:49:25 AM (13 years ago)
Author:
lauweijie7715
Message:

3.1.1

Location:
cubepoints/trunk
Files:
11 added
8 edited

Legend:

Unmodified
Added
Removed
  • cubepoints/trunk/cp_admin.php

    r445086 r571698  
    2525add_action('admin_menu', 'cp_admin');
    2626
    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');
     27add_action('admin_enqueue_scripts', 'cp_admin_register_scripts');
     28function 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}
    3343
    3444/** Enqueue datatables */
     
    4757add_action('admin_print_styles-cubepoints_page_cp_admin_modules', 'cp_datatables_style');
    4858
    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 
    5659/** Enqueue autocomplete */
    5760function cp_autocomplete_script(){
  • cubepoints/trunk/cp_hooks.php

    r445086 r571698  
    4242add_action('comment_approved_to_spam', 'cp_commentUnapprove', 10, 1);
    4343function 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    }
    4449    do_action('cp_comment_remove', $cdata->comment_ID);
    4550    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  
    159159            echo __('Number of points', 'cp') . ' - %points%' . '<br />';
    160160            echo __('Points (number only)', 'cp') . ' - %npoints%' . '<br />';
    161             echo __('User display name', 'cp') . ' - %user%' . '<br />';
    162             echo __('User login ID', 'cp') . ' - %username%' . '<br />';
     161            echo __('User display name', 'cp') . ' - %username%' . '<br />';
     162            echo __('User login ID', 'cp') . ' - %user%' . '<br />';
    163163            echo __('User ID', 'cp') . ' - %userid%' . '<br />';
    164164            echo __('User ranking', 'cp') . ' - %place%' . '<br />';
  • cubepoints/trunk/cubepoints.php

    r445086 r571698  
    33Plugin Name: CubePoints
    44Plugin URI: http://cubepoints.com
    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>&lt;?php cp_displayPoints(); ?&gt;</code> in your template or activate the sidebar widget.
    6 Version: 3.1
     5Description: 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>&lt;?php cp_displayPoints(); ?&gt;</code> in your template or activate the sidebar widget.
     6Version: 3.1.1
    77Author: Jonathan Lau & Peter Zhang
    88Author URI: http://cubepoints.com
     
    1212
    1313/** Define constants */
    14 define('CP_VER', '3.1');
     14define('CP_VER', '3.1.1');
    1515define('CP_DB', $wpdb->base_prefix . 'cp');
    1616define('CP_PATH', WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__)));
  • cubepoints/trunk/modules/comment_spam_control.php

    r445086 r571698  
    33/** Comment Spam Control Module */
    44
    5 cp_module_register(__('Comment Spam Control', 'cp') , 'cp_csc' , '1.0', 'CubePoints', 'http://cubepoints.com', 'http://cubepoints.com' , __('When enabled, this plugin would only allow users to receive points for one comment per post.', 'cp'), 1);
     5cp_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);
    66
    77if(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');
    109    function cp_module_csc_newComment($cid) {
    1110        if (is_user_logged_in()) {
  • cubepoints/trunk/modules/paypal/paypal.php

    r373336 r571698  
    339339    // check that txn_id has not been previously processed
    340340        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
    342343        foreach($results as $result){
    343344            $data = $result->data;
  • cubepoints/trunk/modules/points_multiplier.php

    r373336 r571698  
    33/** Points Multiplier Module */
    44
    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 activiy in a particular week. You may also use this module to temporarily disable points from being earned.', 'cp'), 1);
     5cp_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);
    66
    77function cp_module_pmultiply_install(){
  • cubepoints/trunk/readme.txt

    r445086 r571698  
    44Tags: points, comments, post, admin, widget
    55Requires at least: 2.2
    6 Tested up to: 3.2.1
    7 Stable tag: 3.1
     6Tested up to: 3.4.1
     7Stable tag: 3.1.1
     8License: GPLv2 or later
     9License URI: http://www.gnu.org/licenses/gpl-2.0.html
    810
    911CubePoints is a point management system designed for WordPress blogs.
     
    3234= Where can I find additional help and support for this plugin? =
    3335
    34 You may visit the CubePoints Forum (http://cubepoints.com/forums/) for additional community help and support.
     36You may visit the [CubePoints Forum](http://cubepoints.com/forums/) for additional community help and support.
    3537
    3638= How do I activate other features? =
     
    4749== Upgrade Notice ==
    4850
    49 = 3.0.3 =
     51= 3.1.1 =
     52Translations for 11 locales added. Problems with RTL support, "PayPal Top-up" module & "Comment Spam Control" module fixed.
     53
     54= 3.1 =
    5055New features and modules added. Several bugs fixed as well.
    5156
     
    7883
    7984== 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
    8092
    8193**Version 3.1** *(September 29th, 2011)*
     
    8799+ [Change] Updates to the CubePoints modules system
    88100+ [Bugfix] Fixed bug where the donate module would not work if unicode characters are entered in the message
    89 
    90101
    91102**Version 3.0.3** *(May 13th, 2011)*
Note: See TracChangeset for help on using the changeset viewer.