A Zayed Posted January 17, 2013 Posted January 17, 2013 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
TeamJesus Posted January 17, 2013 Posted January 17, 2013 Thank you for this, rather cool to have instead of just names :) epic
Adriano Faria Posted January 18, 2013 Posted January 18, 2013 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.
Passion Posted January 18, 2013 Posted January 18, 2013 so whats the outcome here as im looking at this
Van2 Posted January 19, 2013 Posted January 19, 2013 not working on my site, Must be a conflict with another hock
Recommended Posts
Archived
This topic is now archived and is closed to further replies.