Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted January 17, 201312 yr File Name: (ZoZ) Members avatars in board index statsFile Submitter: ZaIeDFile Submitted: 17 Jan 2013File Category: Hooks and Plugins This hook displays members avatars in board index instead of their FORMATTED display names, including search bots.Click here to download this file
January 18, 201312 yr 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.
Archived
This topic is now archived and is closed to further replies.