• kyp83

    (@kyp83)


    It seems that the user ID’s have disappeared and I can’t seem to get them to show anywhere. Anyone have any idea how to tell what the user ID’s are now?

Viewing 3 replies - 16 through 18 (of 18 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    I suppose you could write a plugin to put ’em back in if you really wanted to, but they didn’t serve much purpose to most users, that I’m aware of.

    The NUMBER was always arbitrary, so it just confused people. And we had numerous people (OCD like me) who itched and wanted to see them all in a nice order, 1-2-3 etc. But when you deleted one, BOOM, they went awry.

    The primary thing site ID’s help in is associating the directory in blogs.dir with the site. Having that info handy is helpful in my opinion.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    This is the work of about 45 minutes (much of which was teaching my mom about Twitter).

    Toss it in mu-plugins and use at your own risk. No, you cannot sort by ID.

    <?php
    
    /*
    Plugin Name: Show Site ID
    Description: Show Site ID
    Version: 0.1
    Author: Ipstenu
    Author URI: https://www.ipstenu.org/
    
            This plugin is free software; you can redistribute it and/or modify
            it under the terms of the GNU General Public License as published by
            the Free Software Foundation; either version 2 of the License, or
            (at your option) any later version.
    
            This plugin is distributed in the hope that it will be useful,
            but WITHOUT ANY WARRANTY; without even the implied warranty of
            MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
            GNU General Public License for more details.
    
    */
    
    function siteid_columns($column, $blog_id) {
            global $wpdb;
            if ( $column == 'site_id' ) {
                    echo $blog_id;
            }
            return $value;
    }
    
    // Add in a column header
    function site_id($columns) {
        $columns['site_id'] = __('ID', 'site_id');
        return $columns;
    }
    
            add_filter( 'wpmu_blogs_columns', 'site_id' );
            add_action('manage_sites_custom_column',  'siteid_columns', 10, 3);
            add_action('manage_blogs_custom_column',  'siteid_columns', 10, 3);
    ?>
Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘User Id's missing in 3.1’ is closed to new replies.