Here's what you can do:
1.) Create a new phrase:
Language: MASTER LANGUAGE
Phrase Type: GLOBAL
Product: vBulletin
Varname: m_started_by_x_y_z_a
Text:
HTML Code:
<span class="label">Started by <a href="{1}" class="username understate" title="Started by {2} on {4} {5}">{3}</a>{6}, {4} {5}</span>
Click "Save"
2.) Create new plugins:
First plugin:
Product: vBulletin
Hook Location: threadbit_display
Title: Username Markup In Threadbit (threadbit)
Execution Order: 5
Plugin PHP Code:
PHP Code:
global $db, $vbulletin;
$authors = $vbulletin->db->query_read("
SELECT user.*
FROM " . TABLE_PREFIX . "user AS user
WHERE userid = " . $thread['postuserid']
);
$author = $db->fetch_array($authors);
if ($author['displaygroupid'])
{
$groupid = $author['displaygroupid'];
}
else
{
$groupid = $author['usergroupid'];
}
$open_tag = $vbulletin->usergroupcache[$groupid]['opentag'];
$close_tag = $vbulletin->usergroupcache[$groupid]['closetag'];
$thread['postmusername'] = ($open_tag . $thread['postusername'] . $close_tag);
Plugin is Active: Yes
Click "Save"
Second Plugin:
Product: vBulletin
Hook Location: search_results_threadbit
Title: Username Markup In Threadbit (search_results)
Execution Order: 5
Plugin PHP Code:
PHP Code:
global $db, $vbulletin;
$authors = $vbulletin->db->query_read("
SELECT user.*
FROM " . TABLE_PREFIX . "user AS user
WHERE userid = " . $thread['postuserid']
);
$author = $db->fetch_array($authors);
if ($author['displaygroupid'])
{
$groupid = $author['displaygroupid'];
}
else
{
$groupid = $author['usergroupid'];
}
$open_tag = $vbulletin->usergroupcache[$groupid]['opentag'];
$close_tag = $vbulletin->usergroupcache[$groupid]['closetag'];
$thread['postmusername'] = ($open_tag . $thread['postusername'] . $close_tag);
Plugin is Active: Yes
Click "Save"
3.) Edit templates (for each style you want to change): threadbit, threadbit_deleted, search_threadbit
Find each instance of:
HTML Code:
{vb:rawphrase started_by_x_y_z_a, {vb:link member, {vb:raw thread}, null, 'postuserid', 'postusername'}, {vb:raw thread.postusername}, {vb:raw thread.startdate}, {vb:raw thread.starttime}, {vb:stylevar dirmark}}
and change it to:
HTML Code:
{vb:rawphrase m_started_by_x_y_z_a, {vb:link member, {vb:raw thread}, null, 'postuserid', 'postusername'}, {vb:raw thread.postusername}, {vb:raw thread.postmusername}, {vb:raw thread.startdate}, {vb:raw thread.starttime}, {vb:stylevar dirmark}}