I figured my own post out.
open showthread.php
find:
Code:
'editor_jsoptions_size',
add after:
find:
Code:
else
{
$fetchtype = 'post';
}
add after:
Code:
//******************************************************************************************************
//------ buddy mod
//******************************************************************************************************
$bbuserinfo['userid'] = $vbulletin->userinfo['userid'];
$bbuserinfo['buddylist'] = $vbulletin->userinfo['buddylist'];
$buddyarray = explode(" ", $bbuserinfo['buddylist']);
//$post['whobuddybit']= "";
foreach($buddyarray as $buddyid)
{
if(strstr(" $buddyid "," $post[userid] "))
{
//$post['whobuddybit'].= "Buddy ID: ". $buddyid ." matches";
$currentpostbuddyid = $buddyid;
}
}
if ($currentpostbuddyid == $post[userid]) {
$mutualbuddybit = "<a href=\"profile.php?$session[sessionurl]do=removelist&userlist=buddy&u=$post[userid]\">[Remove from Buddy List]</a>";
} else {
$mutualbuddybit = "<a href=\"profile.php?$session[sessionurl]do=addlist&userlist=buddy&u=$post[userid]\">[Add to Buddy List]</a>";
}
$post['whobuddybit'] .= $mutualbuddybit;
//$post['whobuddybit'] .= "bbuserinfo[userid]= " . $bbuserinfo['userid'] ." bbuserinfo[buddylist]= ". $bbuserinfo['buddylist'];
//******************************************************************************************************
//------ end buddy mod
//******************************************************************************************************
find:
add after:
Code:
unset($whobuddybit);
unset($mutualbuddybit);
TEMPLATES:
go to edit templates, postbit_legacy (this is the one i use... you may use the new postbit, and i don't know exaclty where you want to add this horizontally... i'm sure you can find a spot on your own. it's the same paste code.
find:
Code:
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
add after:
Code:
<if condition="$post['userid']">
<div>$post[whobuddybit]</div>
</if>
and i think thats it. let me know if anyone has trouble with it.