Hi [you] Hi Bob
/you is here * Bob is here
Download Now
Screenshots
1.JPG (47.8 KB, 0 views)
Show Your Support
Edit plugin: /you replacement for postbit PHP Code: if ($post['usergroupid'] == 6) { global $vbulletin; $post['message'] = explode ("\n", $post['message']); $yourusername = '* ' . $vbulletin->userinfo['username'] . ' '; foreach ($post['message'] as &$postmessageline) { if (substr($postmessageline, 0, 5) == '/you ') { if (substr($postmessageline, -4) == '<br>') { $postmessageline = substr($postmessageline, 0, -4); $addbr = true; } else { $addbr = false; } $postmessageline = '<font color="red">' . $postmessageline . '</font>'; $postmessageline = str_replace('/you ', $yourusername, $postmessageline); if ($addbr) { $postmessageline = $postmessageline . "<br>"; } } } unset($postmessageline); $post['message'] = implode ("\n", $post['message']); }
if ($post['usergroupid'] == 6) { global $vbulletin; $post['message'] = explode ("\n", $post['message']); $yourusername = '* ' . $vbulletin->userinfo['username'] . ' '; foreach ($post['message'] as &$postmessageline) { if (substr($postmessageline, 0, 5) == '/you ') { if (substr($postmessageline, -4) == '<br>') { $postmessageline = substr($postmessageline, 0, -4); $addbr = true; } else { $addbr = false; } $postmessageline = '<font color="red">' . $postmessageline . '</font>'; $postmessageline = str_replace('/you ', $yourusername, $postmessageline); if ($addbr) { $postmessageline = $postmessageline . "<br>"; } } } unset($postmessageline); $post['message'] = implode ("\n", $post['message']); }