Thanks. Nice hack.
Some comments:
Instead of
$userid=intval($_GET[u]);
You should use:
$userid = $this->profile->userinfo['userid'];
========
Instead of
mysql_fetch_array(
you should use
$db->fetch_array(
========
Instead of
$vbulletin->db->
you should use
$this->registry->db->
anything $vbulletin-> could be accomplished with $this->registry
and you eliminate the use of a global variable and instead use the encapsulated class reference
========
The template is not cached. That is an additional query in all profiles. Add a pluging for 'cache_templates' with this code:
Code:
if (THIS_SCRIPT == 'member')
{
$globaltemplates[] = 'memberinfo_block_userlog';
}