Changeset 384401
- Timestamp:
- 05/13/2011 01:25:25 PM (14 years ago)
- Location:
- cubepoints/trunk
- Files:
-
- 6 added
- 1 deleted
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
cubepoints/trunk/cp_admin.php
r373336 r384401 6 6 /** Admin pages */ 7 7 function cp_admin() { 8 add_menu_page('CubePoints', 'CubePoints', 8, 'cp_admin_manage', 'cp_admin_manage');9 add_submenu_page('cp_admin_manage', 'CubePoints - ' .__('Manage','cp'), __('Manage','cp'), 8, 'cp_admin_manage', 'cp_admin_manage');10 add_submenu_page('cp_admin_manage', 'CubePoints - ' .__('Configure','cp'), __('Configure','cp'), 8, 'cp_admin_config', 'cp_admin_config');11 add_submenu_page('cp_admin_manage', 'CubePoints - ' .__('Logs','cp'), __('Logs','cp'), 8, 'cp_admin_logs', 'cp_admin_logs');8 add_menu_page('CubePoints', 'CubePoints', 'manage_options', 'cp_admin_manage', 'cp_admin_manage'); 9 add_submenu_page('cp_admin_manage', 'CubePoints - ' .__('Manage','cp'), __('Manage','cp'), 'manage_options', 'cp_admin_manage', 'cp_admin_manage'); 10 add_submenu_page('cp_admin_manage', 'CubePoints - ' .__('Configure','cp'), __('Configure','cp'), 'manage_options', 'cp_admin_config', 'cp_admin_config'); 11 add_submenu_page('cp_admin_manage', 'CubePoints - ' .__('Logs','cp'), __('Logs','cp'), 'manage_options', 'cp_admin_logs', 'cp_admin_logs'); 12 12 do_action('cp_admin_pages'); 13 add_submenu_page('cp_admin_manage', 'CubePoints - ' .__('Modules','cp'), __('Modules','cp'), 8, 'cp_admin_modules', 'cp_admin_modules');13 add_submenu_page('cp_admin_manage', 'CubePoints - ' .__('Modules','cp'), __('Modules','cp'), 'manage_options', 'cp_admin_modules', 'cp_admin_modules'); 14 14 } 15 15 -
cubepoints/trunk/cp_admin_config.php
r373336 r384401 7 7 { 8 8 // handles form submissions 9 if ( $_POST['cp_admin_form_submit'] == 'Y') {9 if ( isset($_POST['cp_admin_form_submit']) && $_POST['cp_admin_form_submit'] == 'Y' ) { 10 10 $cp_topfilter = explode(',',str_replace(array("\n","\r"),'',$_POST['cp_topfilter'])); 11 11 if(cp_topfilter==''){ -
cubepoints/trunk/cp_admin_modules.php
r373336 r384401 7 7 /** Make sure plugins get activated before page loads */ 8 8 function cp_admin_module_process(){ 9 if( $_POST['cp_module_activate']!=''&&$_POST['cp_module_name']!=''){9 if( isset($_POST['cp_module_activate']) && isset($_POST['cp_module_name']) ){ 10 10 cp_module_activation_set( $_POST['cp_module_activate'] , true ); 11 11 } 12 if( $_POST['cp_module_deactivate']!=''&&$_POST['cp_module_name']!=''){12 if( isset($_POST['cp_module_deactivate']) && isset($_POST['cp_module_name'])){ 13 13 cp_module_activation_set( $_POST['cp_module_deactivate'] , false ); 14 14 } … … 18 18 /** Do activation and deactivation hooks */ 19 19 function cp_admin_module_hooks(){ 20 if( $_POST['cp_module_activate']!=''&&$_POST['cp_module_name']!=''){20 if( isset($_POST['cp_module_activate']) && isset($_POST['cp_module_name'])){ 21 21 do_action('cp_module_'.$_POST['cp_module_activate'].'_activate'); 22 22 } 23 if( $_POST['cp_module_deactivate']!=''&&$_POST['cp_module_name']!=''){23 if( isset($_POST['cp_module_deactivate']) && isset($_POST['cp_module_name'])){ 24 24 do_action('cp_module_'.$_POST['cp_module_deactivate'].'_deactivate'); 25 25 } … … 36 36 37 37 <?php 38 if( $_POST['cp_module_activate']!=''&&$_POST['cp_module_name']!=''){38 if( isset($_POST['cp_module_activate']) && isset($_POST['cp_module_name']) ){ 39 39 echo '<div class="updated"><p><strong>'.__('Module', 'cp').' "'.$_POST['cp_module_name'].'"'.__(' activated','cp').'!</strong></p></div>'; 40 40 } 41 if( $_POST['cp_module_deactivate']!=''&&$_POST['cp_module_name']!=''){41 if( isset($_POST['cp_module_deactivate']) && isset($_POST['cp_module_name']) ){ 42 42 echo '<div class="updated"><p><strong>'.__('Module', 'cp').' "'.$_POST['cp_module_name'].'"'.__(' deactivated','cp').'!</strong></p></div>'; 43 43 } … … 63 63 } 64 64 else{ 65 $action ='<a href="javasc ipt:void(0);" onclick="alert(\''.__('This module cannot be deactivated through this page.', 'cp').'\n'.__('To deactive this module, remove it manually', 'cp').'.\')">'.__('Deactivate', 'cp').'</a>';65 $action ='<a href="javascript:void(0);" onclick="alert(\''.__('This module cannot be deactivated through this page.', 'cp').'\n'.__('To deactive this module, remove it manually', 'cp').'.\')">'.__('Deactivate', 'cp').'</a>'; 66 66 } 67 67 if($m['plugin_url']!=''){ -
cubepoints/trunk/cp_api.php
r373336 r384401 111 111 } 112 112 113 if( $_REQUEST['cp_api']!=''){113 if( isset($_REQUEST['cp_api']) ){ 114 114 add_action('init', 'cp_api'); 115 115 } -
cubepoints/trunk/cp_hooks.php
r373336 r384401 76 76 $count = (int) $wpdb->get_var("select count(id) from `".CP_DB."` where `type`='post' and `data`=". $pid); 77 77 if($count==0){ 78 cp_points('post', cp_currentUser(), apply_filters('cp_post_points',get_option('cp_post_points')), $pid);78 cp_points('post', $uid, apply_filters('cp_post_points',get_option('cp_post_points')), $pid); 79 79 } 80 80 } -
cubepoints/trunk/cp_logs.php
r373336 r384401 8 8 9 9 global $wpdb; 10 11 $q = ''; 12 $limitq = ''; 13 10 14 if($type!='all'){ 11 15 $uid = (int) $type; -
cubepoints/trunk/cubepoints.php
r375874 r384401 4 4 Plugin URI: http://cubepoints.com 5 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.0. 26 Version: 3.0.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.0. 2');14 define('CP_VER', '3.0.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__))); … … 20 20 21 21 /** Loads the plugin's translated strings */ 22 load_plugin_textdomain('cp', PLUGINDIR.'/'.dirname(plugin_basename(__FILE__)).'/languages');22 load_plugin_textdomain('cp', false, dirname(plugin_basename(__FILE__)).'/languages'); 23 23 24 24 /** Includes commons */ -
cubepoints/trunk/readme.txt
r375874 r384401 4 4 Tags: points, comments, post, admin, widget 5 5 Requires at least: 2.2 6 Tested up to: 3.1. 17 Stable tag: 3.0. 26 Tested up to: 3.1.2 7 Stable tag: 3.0.3 8 8 9 9 CubePoints is a point management system designed for WordPress blogs. … … 30 30 == Frequently Asked Questions == 31 31 32 = Wh y is the widget does not display correctly on my sidebar? =32 = Where can I find additional help and support for this plugin? = 33 33 34 Some themes are designed in a way that placing text in the sidebar looks weird. You might want to contact the designer of the theme or edit the widget manually as found in the documentation that came with the plugin.34 You may visit the CubePoints Forum (http://cubepoints.com/forums/) for additional community help and support. 35 35 36 36 = How do I activate other features? = … … 46 46 47 47 == Upgrade Notice == 48 49 = 3.0.3 = 50 New module (YouTube Video) added. Minor bugfixes made and improved code for XHTML validation. 48 51 49 52 = 3.0.2 = … … 72 75 73 76 == Changelog == 77 78 **Version 3.0.3** *(May 13th, 2011)* 79 80 + [Change] Improvement to code to improve XHTML Validation and less E_NOTICE errors when WordPress is in debug mode 81 + [Feature] New "YouTube Video" module added 82 + [Bugfix] Fixed a small JS bug for the module management page 74 83 75 84 **Version 3.0.2** *(April 22nd, 2011)*
Note: See TracChangeset
for help on using the changeset viewer.