Commit 6dd41c75 authored by Chris Graham's avatar Chris Graham
Browse files

Fixed MANTIS-4299 (Member directory too slow)

parent ce9f94cd
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -370,7 +370,11 @@ class Block_main_members
        $member_boxes = array();
        foreach ($rows as $row) {
            $member_id = $row['id'];
            if ($display_mode != 'listing') {
                $box = render_member_box($member_id, true, $hooks, $hook_objects, $show_avatar, null, false);
            } else {
                $box = null;
            }

            if ($display_mode == 'media') {
                $gallery_sql = 'SELECT name,fullname FROM ' . get_table_prefix() . 'galleries WHERE';
@@ -401,7 +405,7 @@ class Block_main_members
                $member_boxes[$member_id] = array(
                    'I' => strval($cnt + 1),
                    'BREAK' => (!is_null($per_row)) && (($cnt + 1) % $per_row == 0),
                    'BOX' => $box,
                    'BOX' => ($display_mode != 'listing') ? $box : null,
                    'MEMBER_ID' => strval($member_id),
                    'GALLERY_NAME' => '',
                    'GALLERY_TITLE' => '',
@@ -448,7 +452,6 @@ class Block_main_members
                    'PHOTO_THUMB_URL' => $row['m_photo_thumb_url'],
                    'VALIDATED' => ($row['m_validated'] == 1),
                    'CONFIRMED' => ($row['m_validated_email_confirm_code'] == ''),
                    'BOX' => $member_boxes[$row['id']]['BOX'],
                ));

                $member_primary_group = cns_get_member_primary_group($row['id']);
+0 −1
Original line number Diff line number Diff line
@@ -790,7 +790,6 @@ class Hook_addon_registry_core_cns
                'PHOTO_THUMB_URL' => placeholder_image_url(),
                'VALIDATED' => true,
                'CONFIRMED' => true,
                'BOX' => lorem_paragraph_html(),
            )), null, '', true)
        );
    }
+1 −1
Original line number Diff line number Diff line
<span class="vertical_alignment">
	<img onmouseover="if (typeof window.activate_tooltip!='undefined') activate_tooltip(this,event,'{BOX;^*}','auto');" src="{$THUMBNAIL*,{$?,{$IS_EMPTY,{AVATAR_URL}},{$IMG,cns_default_avatars/default},{AVATAR_URL}},18x18,,,{$IMG,cns_default_avatars/default}}" alt="" />
	{+START,INCLUDE,MEMBER_TOOLTIP}SUBMITTER={ID}{+END}

	<a href="{URL*}">{$DISPLAYED_USERNAME*,{USERNAME}}</a>