Changeset 2156086
- Timestamp:
- 09/13/2019 11:08:36 AM (7 years ago)
- Location:
- bp-group-analytics/trunk
- Files:
-
- 5 edited
-
buddypress-group-analytics.php (modified) (5 diffs)
-
history.txt (modified) (1 diff)
-
include/admin.php (modified) (4 diffs)
-
loader.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
bp-group-analytics/trunk/buddypress-group-analytics.php
r1643037 r2156086 7 7 * @author Vivek Sharma 8 8 * @since 1.0 9 * @version 1. 09 * @version 1.1 10 10 */ 11 11 if (class_exists('BP_Group_Extension')) : // Recommended, to prevent problems during upgrade or when Groups are disabled … … 32 32 $this->admin_slug = BP_GROUP_ANALYTICS_SLUG; 33 33 34 $this->members = $this->_get_group_members(); 34 if(!is_admin()) 35 $this->members = $this->_get_group_members(); 35 36 } 36 37 … … 51 52 'group_id' => $group_id, 52 53 'per_page' => 0, 53 'exclude_admin _mods' => 0,54 'exclude_admins_mods' => 0, 54 55 ); 55 56 … … 142 143 /** 143 144 * @version 1.0 144 * @since version 1. 0145 * @since version 1.1 145 146 * @author Vivek Sharma 146 147 */ … … 171 172 * @author Vivek Sharma 172 173 * @since 1.0 173 * @version 1. 0174 * @version 1.1 174 175 */ 175 176 function bp_group_analytics_include_files() { -
bp-group-analytics/trunk/history.txt
r1643037 r2156086 2 2 Get chart by xprofile fields. 3 3 4 -1.1- 5 Update according to the latest version of WordPress and BuddyPress -
bp-group-analytics/trunk/include/admin.php
r1643043 r2156086 17 17 /* If the form has been submitted and the admin referrer checks out, save the settings */ 18 18 if (!empty($_POST) && check_admin_referer('bpgroup-analytics-settings-save', 'bpgroup-analytics-settings-nonce_field')) { 19 bp_group_analytics_import_install(); 19 20 if (isset($_POST['xprofile_selected_fields'])) { 20 21 $post_xprofile_selected_fields = sanitize_option(BP_GROUP_ANALYTICS_OPTIONS_META_TITLE, $_POST['xprofile_selected_fields']); … … 33 34 $xprofile_selected_fields = explode(",",$xprofile_selected_fields_value); 34 35 35 $profile_groups = BP_XProfile_Group::get( array( 'fetch_fields' => true ) );36 $profile_groups = BP_XProfile_Group::get( array( 'fetch_fields' => true ) ); 36 37 37 38 ?> … … 145 146 146 147 //get possible profile fields values 147 $profile_groups = BP_XProfile_Group::get( array( 'fetch_fields' => true ) );148 $profile_groups = BP_XProfile_Group::get( array( 'fetch_fields' => true ) ); 148 149 $profile_fields = array(); 149 150 if ( !empty( $profile_groups ) ) { … … 175 176 } 176 177 177 add_filter( 'sanitize_option_bp_group_analytics_xprofile_selected_fields', 'bp_group_analytics_xprofile_selected_fields' );178 add_filter( 'sanitize_option_bp_group_analytics_xprofile_selected_fields', 'bp_group_analytics_xprofile_selected_fields', 10, 2 ); 178 179 /// Add link to settings page 179 180 add_filter('plugin_action_links', 'bp_group_analytics_settings_link', 10, 2); -
bp-group-analytics/trunk/loader.php
r1640380 r2156086 6 6 7 7 Description: BP Group Analytics. 8 Version: 1. 09 Revision Date: April 11,20178 Version: 1.1 9 Revision Date: September 13,2019 10 10 Requires at least: WP 3.5.1, BuddyPress 1.6.5 11 Tested up to: WP 3.7.1, BuddyPress 1.911 Tested up to: WP 5.2.3, BuddyPress 4.4.0 12 12 License: GNU General Public License 3.0 or newer (GPL) http://www.gnu.org/licenses/gpl.html 13 13 Author: Vivek Sharma … … 20 20 21 21 //some constants that can be checked when extending this plugin 22 define('BP_GROUP_ANALYTICS_IS_INSTALLED', 1 );23 define('BP_GROUP_ANALYTICS_VERSION', '1. 0');22 define('BP_GROUP_ANALYTICS_IS_INSTALLED', 1.1); 23 define('BP_GROUP_ANALYTICS_VERSION', '1.1'); 24 24 25 25 … … 88 88 } 89 89 } 90 91 # check required wordpress plugins 92 register_activation_hook( __FILE__, 'bp_group_analytics_import_install' ); 93 function bp_group_analytics_import_install() { 94 global $bp; 95 96 # Check whether BP is active and whether Groups component is loaded, and throw error if not 97 if(!(function_exists('BuddyPress') || is_a($bp,'BuddyPress')) || !bp_is_active('groups')) { 98 echo 'BuddyPress is not installed or the Groups component is not activated. Cannot continue.'; 99 exit; 100 } 101 } -
bp-group-analytics/trunk/readme.txt
r1643042 r2156086 2 2 Contributors: erviveksharma2008 3 3 Tags: BuddyPress, group, xprofile fields, plugin, charts 4 Version: 1. 05 Revision Date: April 11,20174 Version: 1.1 5 Revision Date: September 13, 2019 6 6 Requires at least: WP 3.5.1, BuddyPress 1.6.5 7 Tested up to: WP 3.7.1, BuddyPress 1.97 Tested up to: WP 5.2.3, BuddyPress 4.4.0 8 8 License: GNU General Public License 3.0 or newer (GPL) http://www.gnu.org/licenses/gpl.html 9 9 Author: Vivek Sharma … … 11 11 Website: http://ProvisTechnologies.com 12 12 Stable tag: trunk 13 Description: Pie charts for xprofile fields. 13 14 Pie charts for xprofile fields. 15 16 == Description == 17 Due to the presence of large number of groups and members, it becomes difficult to manage and procure relevant information about them. BP group analytics plugin helps solves this problem by providing an overview of the group members by using their xprofile fields. 18 This plugin helps to understand the relevant information easily through its graphical representation. 14 19 15 20 == Notes ==
Note: See TracChangeset
for help on using the changeset viewer.