if ($post['userid'] != $vbulletin->userinfo['userid']){ $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'] . '"><img src="YOUR IMAGE" alt="" border="0" /></a>'; }}