The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
Is there a condition that says <if not current user, display this?
Hope that makes sense.... |
|
#2
|
|||
|
|||
|
Are you comparing it to a set variable or something?
(For userids ![]() Code:
<if condition="$bbuserinfo['userid'] == 1">
CURRENT USER VIEWING PAGE HAS USERID OF 1
</if>
|
|
#3
|
|||
|
|||
|
No not quite,
I think this means current user: <if condition="$bbuserinfo[userid] == $userinfo[userid]"> So I guess I'm looking for the opposite, I want to show an 'add to buddylist' link on memberinfo show to everyone who is not that user. |
|
#4
|
|||
|
|||
|
If you want to do it in the memberinfo template, then you can just use:
Code:
<if condition="$show['addbuddylist']"> now for it to show to anyone, you can use: Code:
<if condition="$bbuserinfo[userid] != $userinfo[userid]"> Code:
<if condition="$bbuserinfo[userid] <> $userinfo[userid]"> |
|
#5
|
|||
|
|||
|
Thanks, I'll see if I can play around with that!
|
|
#6
|
||||
|
||||
|
Don't you have "Add x to Your Buddy List" in member profiles? That's a vBulletin default.
|
|
#7
|
|||
|
|||
|
Quite possibly, but I've changed my memberinfo template to beyond recognition.
I also have other uses for this sort of code. Quote:
Quote:
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|