Quote:
Originally Posted by Dave
Can you copypaste the code here?
|
The code is in the first post.
I tried this:
Code:
$postuserinfo = fetch_userinfo($post['userid'], 128);
$isfriend = $postuserinfo['isfriend'];
if (!$isfriend)
if ($vbulletin->userinfo['userid'])
{
$template_hook['postbit_controls'] .= '<span class="addfriend"><a href="profile.php? ' . $vbulletin->session->vars['sessionurl'] . 'do=addlist&userlist=friend&u=' . $post['userid'] . '">' . construct_phrase($vbphrase['add_as_friend'], $post['username']) . '<img class="addimg" alt="Add as Friend" src="images/site_icons/add.png"></a><span class="seperator"></span></span>';
And that removes the "Add Friend" button completely from the postbit, so no usergroups can see it.