Jump to content

Download: (ZoZ) Members avatars in board index stats

Featured Replies

Posted

File Name: (ZoZ) Members avatars in board index stats
File Submitter: ZaIeD
File Submitted: 17 Jan 2013
File Category: Hooks and Plugins

This hook displays members avatars in board index instead of their FORMATTED display names, including search bots.

%7Boption%7D

Click here to download this file

Thank you for this, rather cool to have instead of just names :) epic

will this work on 3.3.4?

  • Author

will this work on 3.3.4?

Yes

Nice hook! :smile:


EDIT: Uninstalled. It added 4 new queries to my board index! :o

Also you're overriding all the getActiveUserDetails function, so other hooks in that function won't work.

EDIT 2: in other forum I support, goes from 8 to 66 queries.

The problem is probably here:

$result['member_name'] = IPSMember::buildProfilePhoto( $result['member_id'], $size=mini, $noCache=false );

buildProfilePhoto has a IPSMember::load. I think this problem won't happen if you add a join to profile_portal table on this function query:

            $this->DB->build( array('select' => 'id, member_id, member_name, seo_name, login_type, running_time, member_group, uagent_type',
                                    'from'   => 'sessions',
                                    'where'  => "running_time > {$time}" )    );

So you can use buildDisplayData to grab the photo.

Untested, of course.

  • Author

Thanks Adriano,

Going to check that

so whats the outcome here as im looking at this

not working on my site, Must be a conflict with another hock

Archived

This topic is now archived and is closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.