Quote:
Originally Posted by Yellow Slider
Create a new plugin using the hook location postbit_display_complete.
PHP Code:
$postuserinfo = fetch_userinfo($post['userid'], 128);
$isfriend = $postuserinfo['isfriend'];
if (!$isfriend)
{
$template_hook['postbit_userinfo_right'] .= '<a href="profile.php? ' . $vbulletin->session->vars['sessionurl'] . 'do=addlist&userlist=friend&u=' . $post['userid'] . '">' . construct_phrase($vbphrase['befriend_x'], $post['username']) . '</a>';
}
|
$postuserinfo = fetch_userinfo($post['userid'],
128); 128 what is?