View Single Post
  #26  
Old 01 Jun 2008, 03:17
Kentaurus's Avatar
Kentaurus Kentaurus is offline
 
Join Date: Dec 2001
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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
Try MySmilies Mod - User-based, custom smilies for each user

CemZoo.com - Anime Community
CemZoo Forums - Anime Forums

Last edited by Kentaurus; 01 Jun 2008 at 03:34.
Reply With Quote