The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Condition to check "own" member?
Does anyone knows what's the condition in template MEMBERINFO to check if the member is viewing their own profile page?
I want to make some buttons/options that only available if a member is looking at his/her own page, like avatar upload option only show for them if they are viewing their own profile! Any help is greating appreciated! |
#2
|
||||
|
||||
Try this:
<if condition="$userinfo['userid'] == $vbulletin->userinfo['userid']"> |
#3
|
||||
|
||||
template based?
<if condition="$userinfo[userid] == $bbuserinfo[userid]"> |
#4
|
|||
|
|||
Thanks Zachery & SirAdrian for the code. It worked!
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|