![]() |
If conditional for when it's not current user??
Is there a condition that says <if not current user, display this?
Hope that makes sense.... |
Are you comparing it to a set variable or something?
(For userids:) Code:
<if condition="$bbuserinfo['userid'] == 1"> |
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. |
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]"> |
Thanks, I'll see if I can play around with that!
|
Quote:
|
Quite possibly, but I've changed my memberinfo template to beyond recognition.
I also have other uses for this sort of code. Quote:
Quote:
|
All times are GMT. The time now is 07:07 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|