WordPress.org

Forums

BP Checkins
Bug - Creating a lot of default groups (2 posts)

  1. pixelartist
    Member
    Posted 2 years ago #

    Hello there,

    for all of you who encounter the same problem, here is what i did.

    History:
    - Installed Plugin (newest version) on Buddypress (newest version).
    - Checked settings and create my own group

    Problem:
    - the script creates a lot of "default" groups

    Issue Focus:
    - Find bp-chekins-component.php in "bp-checkins\includes\"

    around line 285:

    //Let's insert a default category if none is set !
    		$bp_checkins_check_taxo = get_terms('places_category');
    		if( empty( $bp_checkins_check_taxo ) )
    			wp_insert_term( __('Default', 'bp-checkins'), 'places_category', array('slug' => 'default') );
    
    		parent::register_taxonomies();
    	}

    Quick Hack Solution:

    //Let's insert a default category if none is set !
    		$bp_checkins_check_taxo = get_terms('places_category');
    		if( empty( $bp_checkins_check_taxo ) )
    			//wp_insert_term( __('Default', 'bp-checkins'), 'places_category', array('slug' => 'default') );
    
    		parent::register_taxonomies();
    	}

    I know it is no pretty but it at least stops injecting defaults into the categories. Hopefully the plugin author can trace the error and recreate this function.

    http://wordpress.org/extend/plugins/bp-checkins/

  2. imath
    Member
    Plugin Author

    Posted 2 years ago #

    HI,

    I'm sorry, as it's specified in the plugin description, it requires 3.4.1 and BuddyPress 1.5+.
    I haven't tested this plugin with your WordPress version (3.3.1).

    I've ran some tests from 3.4.2 to 3.5 RC 5 and wasn't able to do what you achieved ?!?

    I've looked for default groups, default categories, default place categories. It only creates 1 default place category if none is defined.

    I'll check on WP 3.3.1, meanwhile, thanks for your 'quick hack solution'

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • BP Checkins
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic