WordPress.org

Ready to get started?Download WordPress

Forums

Recently Registered
[resolved] Incompatible with Groups plugin (4 posts)

  1. Razorfrog Web Design
    Member
    Posted 1 year ago #

    No data is displayed in the Registered column when the Groups plugin is installed.

    http://wordpress.org/extend/plugins/recently-registered/

  2. Ipstenu (Mika Epstein)
    Half-Elf Support Rogue & Mod
    Plugin Author

    Posted 1 year ago #

    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.

  3. Razorfrog Web Design
    Member
    Posted 1 year ago #

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

  4. Razorfrog Web Design
    Member
    Posted 1 year ago #

    Resolved.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags