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

  1. Razorfrog Web Design
    Posted 3 years ago #

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


  2. Ipstenu (Mika Epstein)
    Lead Plugin Wrangler
    Plugin Author

    Posted 3 years 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
    Posted 3 years 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
    Posted 3 years ago #


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Recently Registered
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic