View Full Version : conditional user on buddy list?
kpf1827
12-16-2008, 10:10 PM
Is there a conditional to find if another member is on your buddy list within the postbit_legacy template?
--------------- Added 1229554911 at 1229554911 ---------------
Someone has to know.
kpf1827
12-17-2008, 10:38 PM
.........
Lynne
12-17-2008, 10:49 PM
I don't know of any condition like the "is_member_of" type condition that does this. I think you have to do it in the php/plugin and then use the results from there to indicate a buddy. You might want to go look up some buddy sort of modification and see how they do it.
kpf1827
12-18-2008, 12:06 AM
Here is where I got the idea from, in whosonlinebit template there is this line...
<if condition="$show['loggedinuser']">
<a href="member.php?$session[sessionurl]u=$userinfo[userid]">$userinfo[musername]</a>$userinfo[hidden]<if condition="$show['buddy']">+</if>
<else />
<if condition="$show['spider']">$spidertype<else />$userinfo[musername]</if>
Which shows a + next to a person on your buddy list when viewing who's online, if I put this on postbit_legacy it does not function.
Lynne
12-18-2008, 03:10 AM
Except $show[buddy] is defined in the php code right before that templatebit is spit out. I don't know that that code is present in the showthread template or in postbit function, so you'd have to add it which is why I suggested lloking it up in a modification.
kpf1827
12-20-2008, 11:20 PM
I dont c a mod that has a feature like this, is there a way to call that function in postbit_legacy?
Lynne
12-20-2008, 11:32 PM
There is a mod right here that deals with buddy's in the postbit - Buddy & Ignore List Add/Remove in Postbit (https://vborg.vbsupport.ru/showthread.php?t=83227&highlight=buddy) He uses the global array which I hadn't thought of.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.