Abe1 I have view the "fetch_musername" function and this is new coding:
PHP Code:
$thanks = $vbulletin->db->query_read("SELECT * FROM " .TABLE_PREFIX. "post_thanks AS ps INNER JOIN " .TABLE_PREFIX. "user AS u ON (u.userid = ps.userid) WHERE ps.postid IN (" . $post_ids . ") ORDER BY ps.username ASC");
For query.
For get musername use this method:
PHP Code:
//$cache[$thank['postid']][$thank['userid']]['username'] = $thank['username'];
// Get vBulletin User Group ID
$cache[$thank['postid']][$thank['userid']]['username'] = fetch_musername($thank);
Now the problem in vb 3.7 beta3 is solutioned by vbulletin team into vbulletin 3.7 beta4

.
Thanks.