Quote:
Originally Posted by Cloudrunner
Well crap dude, I'm stuck then....
Not quite sure where to go from there...
|
Hey no problem, man. I'm not really sure what to do either. This seems like it would be such a simple thing... thanks for giving it a shot anyway.
Okay I stumbled on a solution, so here it is for posterity.
I'm not gonna bother posting it in mini-mods since there's probably an easier way:
Find in
includes/functions_showthread.php:
PHP Code:
$show['messageicon'] = iif($post['iconpath'], true, false);
Add above:
PHP Code:
// set-up for buddylist conditional - postbit
$isbuddy = explode(' ', $bbuserinfo['buddylist']);
if (in_array($post['userid'], $isbuddy))
{
$isbuddy = true;
}
else
{
$isbuddy = false;
}
Find in
postbit template:
HTML Code:
<if condition="$post['userid']">
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&userlist=buddy&u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase></a></td></tr>
</if>
Replace with:
HTML Code:
<if condition="($bbuserinfo['userid'] AND ($post[userid] != $bbuserinfo['userid']))">
<if condition="($isbuddy == false)">
<tr><td class="vbmenu_option"><a href="$vboptions[bburl]/profile.php?$session[sessionurl]do=addlist&userlist=buddy&u=$userinfo[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase></a></td></tr>
<else />
<tr><td class="vbmenu_option"><a href="$vboptions[bburl]/profile.php?$session[sessionurl]do=removelist&userlist=buddy&u=$userinfo[userid]"><phrase 1="$post[username]">$vbphrase[remove_x_from_buddy_list]</phrase></a></td></tr>
</if>
</if>
Add this
postbit phrase:
remove_x_from_buddy_list
Remove {1} from your Buddy List