The Arcive of vBulletin Modifications Site. |
|
Who Am I A Buddy Of? 2.1 Details »»
|
|||||||||||||||||||||||||
[ Feature Description ]
This feature allows users to easily see who they are buddies of along with an easy way to add/remove buddies right from the page! This modification is a big upgrade from the one I made for vBulletin 2. It has proved to be a very useful tool for my members. As of this version, there are noother known performance optimization techniques, nobugs and no security problems. [ Screenshot ] ![]() Enjoy! Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
hey looking good, love your forums
|
|
#3
|
||||
|
||||
|
Nice hack, I actually used it when you first released it for the 3.0.x series. Cheers for the port.
|
|
#4
|
|||
|
|||
|
very useful
thanks < clicking install > |
|
#5
|
|||
|
|||
|
Just wondering if I can make a link and have the list to come up as a pop up window?
|
|
#6
|
||||
|
||||
|
Awesome port! I'll be using this one...
|
|
#7
|
||||
|
||||
|
anychance of adding the + or - to each post under the user name like their post count?
|
|
#8
|
||||
|
||||
|
I figured my own post out.
![]() open showthread.php find: Code:
'editor_jsoptions_size', Code:
'whobuddy', Code:
else
{
$fetchtype = 'post';
}
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: Code:
unset($post); 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> Code:
<if condition="$post['userid']"> <div>$post[whobuddybit]</div> </if> |
|
#9
|
||||
|
||||
|
also note, this DOESNT add an extra query. All info needed is already pulled from the main query for the posts!
|
|
#10
|
||||
|
||||
|
Isn't there a way to do a string replace for the file edit?
|
![]() |
|
|