PDA

View Full Version : Default Avatar Mod Addon - Sidebar


ssdevious
03-24-2012, 03:54 PM
Hello again,

I've stumbled onto this mod, which gives you a default avatar in;

1. Member List:

<phpcode><![CDATA[if ($show['avatar'] != true && $vbulletin->options['avatarenabled']) {
$avatarurl = $vbulletin->options['gd_davatar_file'];
$show['avatar'] = true;
}]]></phpcode>


2. Postbit:

<phpcode><![CDATA[if ($show['avatar'] != true && $this->registry->options['avatarenabled'] && !($this->registry->userinfo['userid'] > 0 AND !$this->registry->userinfo['showavatars'])) {
$post['avatarurl'] = $this->registry->options['gd_davatar_file'];
$show['avatar'] = true;
}]]></phpcode>


3. Profile:

<phpcode><![CDATA[if ($this->registry->options['avatarenabled']) {
$this->userinfo['avatarurl'] = $this->registry->options['gd_davatar_file'];
$this->userinfo['avatarwidth'] = FIXED_SIZE_AVATAR_WIDTH;
}]]></phpcode>

Question is, how to add a parameter for sidebar as well?

Info on "<hookname>" would help too!

Best Regards,
~tEh'P?r4d0x