::::: الهاكات :::::
WPTR Advanced-Userbars-Hack-v1.0 nds-andor-Buddies-on-Profile
::::: التعديلات :::::
Installation:
->Install product_userbars.xml
->Upload all files (userbar images, bitfield xml, cpnav xml)
->CHMOD 777 ./images/userbars/
->rebuild bitfields
->set usergroup permissions : UserGroups > Userbar permissions > Can have a Userbar? > Yes and Save
->Do file edits
->Do template edits
->Show your support click "Mark As Installed", nominate for MOTM, rate this modification, and/or donate.
____________________________
FILE EDITS (4 edits in 1 file)
____________________________
OPEN admincp/image.php
(1)
FIND :
-----------
كود PHP:
case 'smilie':
$itemtype = 'smilie';
$itemtypeplural = 'smilies';
$catid = 3;
break;
----------
ADD BELOW:
----------
كود PHP:
case 'userbar':
$itemtype = 'userbar';
$itemtypeplural = 'userbars';
$catid = 4;
break;
----------
(2)
FIND:
----------
كود PHP:
$tables = array('avatar' => $vbphrase['avatar'], 'icon' => $vbphrase['post_icon'], 'smilie' => $vbphrase['smilie']);
---------
REPLACE WITH:
----------
كود PHP:
$tables = array('avatar' => $vbphrase['avatar'], 'icon' => $vbphrase['post_icon'], 'smilie' => $vbphrase['smilie'], 'userbar' => $vbphrase['userbar']);
----------
(3)
FIND:
----------
كود PHP:
'avatarid' => TYPE_INT,
'iconid' => TYPE_INT,
'smilieid' => TYPE_INT,
----------
ADD BELOW:
----------
كود PHP:
'userbarid' => TYPE_INT,
----------
(4)
FIND:
----------
كود PHP:
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:
----------
كود PHP:
else if ($vbulletin->GPC['userbarid'])
{
$id = $vbulletin->GPC['userbarid'];
}
----------
Save & Close
_________________________
Template Edits (2)
_________________________
OPEN MEMBERINFO TEMPLATE
FIND:
------------------------------------------------------------
كود بلغة HTML:
<if condition="$show['usernotes']">
------------------------------------------------------------
ADD ABOVE:
-----------------------------------------------------------
كود بلغة HTML:
<if condition="$userinfo[userbar]"> <fieldset><legend>$userinfo[username]-s Userbar:</legend><table><tr><td> <b>$userbar[title]</b> <img src="$userbar[userbarpath]" border="0"> </td></tr> </table></fieldset> </if>
-----------------------------------------------------------
Save & Close
OPEN USERCP_SHELL TEMPLATE AND FIND:
----------------------------------------------------------
كود بلغة HTML:
<if condition="$show['siglink']"> <tr> <td class="$navclass[signature]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=editsignature">$vbphrase[edit_signature]</a></td> </tr> </if>
-----------------------------------------------------------
ADD BELOW:
-----------------------------------------------------------
كود بلغة HTML:
<tr> <td class="alt2" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=selectuserbar">$vbphrase[select_userbar_picture]</a></td> </tr>
------------------------------------------------------------
Save & Close
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
هاك Friends and/or Buddies on Profile :-
INSTALLATION
Install with product manager.
Set your preferences in the acp (vBulletin options)
Add
somewhere in your MEMBERINFO template. Whereever you'd like to show up the friends or buddies. If you're not sure what to do, search for
كود:
<if condition="$show['signature']">
in your MEMBERINFO template and add it before that line.
OPTIONAL (User selectable)
If you want to have this user-selectable you need to add a custom profile field. Create the new field as a radiobutton, give it a name and description of your choice, the options yes and no and use the following code instead of only $FNB_HTML:
كود بلغة HTML:
<if condition="$userinfo[fieldXX] == yes">$FNB_HTML</if>
(if user wishes to show up)
or
كود بلغة HTML:
<if condition="$userinfo[fieldXX] != no">$FNB_HTML</if>
(show by default, user can deactivate it)
Remember to replace XX with the number of the new profilefield!