WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Incompatible with Groups plugin

[Resolved] Incompatible with Groups plugin

Viewing 3 replies - 1 through 3 (of 3 total)
  • Groups is ‘doing it wrong’

    Edit groups/lib/admin/class-groups-admin-users.php

    On line 237 there’s a function that needs to be this:

    public static function manage_users_custom_column( $foo, $column_name, $user_id ) {
    		$output = '';
    		if ( self::GROUPS == $column_name ) {
    				$groups_user = new Groups_User( $user_id );
    				$groups = $groups_user->groups;
    				if ( count( $groups ) > 0 ) {
    					$output .= '<ul>';
    					foreach( $groups as $group ) {
    						$output .= '<li>';
    						$output .= wp_filter_nohtml_kses( $group->name );
    						$output .= '</li>';
    					}
    					$output .= '</ul>';
    				}
    				return $output;
    		}
    
    		return $foo;
    	}

    Basically they’re forcing $output to show no matter what, which whomps other plugins (like mine). By changing it so $output ONLY gets called on their column, and the $foo (i.e. whatever else it was, like in my column) is showed correctly. I tested the change and it works.

    I’ll push a change to mine that makes my plugin (which does it RIGHT) to run first, so that the other plugin stops messing with me.

    Thanks Mika, you rock! Made the change and we’re back in business. Just sent you a beer via your wepay link 🙂

    Resolved.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Incompatible with Groups plugin’ is closed to new replies.