____________________________
OPEN admincp/image.php
(1)
FIND :
-----------
case 'smilie':
$itemtype = 'smilie';
$itemtypeplural = 'smilies';
$catid = 3;
break;----------
ADD BELOW:
----------
case 'userbar':
$itemtype = 'userbar';
$itemtypeplural = 'userbars';
$catid = 4;
break;
----------
(2)
FIND:
----------
$tables = array('avatar' => $vbphrase['avatar'], 'icon' => $vbphrase['post_icon'], 'smilie' => $vbphrase['smilie']);
---------
REPLACE WITH:
----------
$tables = array('avatar' => $vbphrase['avatar'], 'icon' => $vbphrase['post_icon'], 'smilie' => $vbphrase['smilie'], 'userbar' => $vbphrase['userbar']);
----------
(3)
FIND:
----------
'avatarid' => TYPE_INT,
'iconid' => TYPE_INT,
'smilieid' => TYPE_INT,
----------
ADD BELOW:
----------
'userbarid' => TYPE_INT,
----------
(4)
FIND:
----------
if ($vbulletin->GPC['avatarid'])
{
$id = $vbulletin->GPC['avatarid'];
}
else if ($vbulletin->GPC['iconid'])
{
$id = $vbulletin->GPC['iconid'];
}
else if ($vbulletin->GPC['smilieid'])
{
$id = $vbulletin->GPC['smilieid'];
}
----------
ADD BELOW:
----------
else if ($vbulletin->GPC['userbarid'])
{
$id = $vbulletin->GPC['userbarid'];
}
----------
Save & Close