The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Is he/she is my buddy? (Template conditional)
How to make a conditional if the user viewing my profile is my buddy or not?
Any help is greatly appreciated. |
#2
|
|||
|
|||
*bump
OK, I really get stuck with this. So far this is what I have tried. On member.php, I add the following code: PHP Code:
HTML Code:
<if condition="$isbuddy"> I'm on $userinfo[username]'s buddy list. <else /> I'm not on $userinfo[username]'s buddy list </if> |
#4
|
|||
|
|||
Ok, I've figure it out. On member.php, add
PHP Code:
HTML Code:
<if condition="in_array($bbuserinfo['userid'], $mybuddies)"> I'm one of his buddy <else /> I'm not his buddy </if> |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|