Plugin Directory

Changeset 2156086


Ignore:
Timestamp:
09/13/2019 11:08:36 AM (7 years ago)
Author:
er.viveksharma2008
Message:

minor fixes with new assets

Location:
bp-group-analytics/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • bp-group-analytics/trunk/buddypress-group-analytics.php

    r1643037 r2156086  
    77 * @author Vivek Sharma
    88 * @since  1.0
    9  * @version 1.0
     9 * @version 1.1
    1010 */
    1111if (class_exists('BP_Group_Extension')) : // Recommended, to prevent problems during upgrade or when Groups are disabled
     
    3232            $this->admin_slug = BP_GROUP_ANALYTICS_SLUG;
    3333
    34             $this->members = $this->_get_group_members();
     34            if(!is_admin())
     35                $this->members = $this->_get_group_members();
    3536        }
    3637
     
    5152                'group_id' => $group_id,
    5253                'per_page' => 0,
    53                 'exclude_admin_mods' => 0,
     54                'exclude_admins_mods' => 0,
    5455            );
    5556
     
    142143        /**
    143144         * @version 1.0
    144          * @since version 1.0
     145         * @since version 1.1
    145146         * @author Vivek Sharma
    146147         */
     
    171172     * @author Vivek Sharma
    172173     * @since 1.0
    173      * @version 1.0
     174     * @version 1.1
    174175     */
    175176    function bp_group_analytics_include_files() {
  • bp-group-analytics/trunk/history.txt

    r1643037 r2156086  
    22Get chart by xprofile fields.
    33
     4-1.1-
     5Update according to the latest version of WordPress and BuddyPress
  • bp-group-analytics/trunk/include/admin.php

    r1643043 r2156086  
    1717    /* If the form has been submitted and the admin referrer checks out, save the settings */
    1818    if (!empty($_POST) && check_admin_referer('bpgroup-analytics-settings-save', 'bpgroup-analytics-settings-nonce_field')) {
     19        bp_group_analytics_import_install();
    1920        if (isset($_POST['xprofile_selected_fields'])) {
    2021            $post_xprofile_selected_fields = sanitize_option(BP_GROUP_ANALYTICS_OPTIONS_META_TITLE, $_POST['xprofile_selected_fields']);
     
    3334        $xprofile_selected_fields = explode(",",$xprofile_selected_fields_value);
    3435
    35     $profile_groups = BP_XProfile_Group::get( array( 'fetch_fields' => true ) );
     36    $profile_groups = BP_XProfile_Group::get( array( 'fetch_fields' => true ) );
    3637
    3738    ?>
     
    145146
    146147    //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 ) );
    148149    $profile_fields = array();
    149150    if ( !empty( $profile_groups ) ) {
     
    175176}
    176177
    177 add_filter( 'sanitize_option_bp_group_analytics_xprofile_selected_fields', 'bp_group_analytics_xprofile_selected_fields' );
     178add_filter( 'sanitize_option_bp_group_analytics_xprofile_selected_fields', 'bp_group_analytics_xprofile_selected_fields', 10, 2 );
    178179/// Add link to settings page
    179180add_filter('plugin_action_links', 'bp_group_analytics_settings_link', 10, 2);
  • bp-group-analytics/trunk/loader.php

    r1640380 r2156086  
    66
    77  Description: BP Group Analytics.
    8   Version: 1.0
    9   Revision Date: April 11,2017
     8  Version: 1.1
     9  Revision Date: September 13,2019
    1010  Requires at least: WP 3.5.1, BuddyPress 1.6.5
    11   Tested up to: WP 3.7.1, BuddyPress 1.9
     11  Tested up to: WP 5.2.3, BuddyPress 4.4.0
    1212  License:  GNU General Public License 3.0 or newer (GPL) http://www.gnu.org/licenses/gpl.html
    1313  Author: Vivek Sharma
     
    2020
    2121//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');
     22define('BP_GROUP_ANALYTICS_IS_INSTALLED', 1.1);
     23define('BP_GROUP_ANALYTICS_VERSION', '1.1');
    2424
    2525
     
    8888    }
    8989}
     90
     91# check required wordpress plugins
     92register_activation_hook( __FILE__, 'bp_group_analytics_import_install' );
     93function 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  
    22Contributors: erviveksharma2008
    33Tags: BuddyPress, group, xprofile fields, plugin, charts
    4 Version: 1.0
    5 Revision Date: April 11,2017
     4Version: 1.1
     5Revision Date: September 13, 2019
    66Requires at least: WP 3.5.1, BuddyPress 1.6.5
    7 Tested up to: WP 3.7.1, BuddyPress 1.9
     7Tested up to: WP 5.2.3, BuddyPress 4.4.0
    88License:  GNU General Public License 3.0 or newer (GPL) http://www.gnu.org/licenses/gpl.html
    99Author: Vivek Sharma
     
    1111Website: http://ProvisTechnologies.com
    1212Stable tag: trunk
    13 Description: Pie charts for xprofile fields.
     13
     14Pie charts for xprofile fields.
     15
     16== Description ==
     17Due 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.
     18This plugin helps to understand the relevant information easily through its graphical representation.
    1419
    1520== Notes ==
Note: See TracChangeset for help on using the changeset viewer.