PDA

View Full Version : Condition to check "own" member?


ConKien
03-11-2006, 12:01 AM
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!

Adrian Schneider
03-11-2006, 12:19 AM
Try this:
<if condition="$userinfo['userid'] == $vbulletin->userinfo['userid']">

Zachery
03-11-2006, 12:59 AM
template based?

<if condition="$userinfo[userid] == $bbuserinfo[userid]">

ConKien
03-11-2006, 09:12 PM
Thanks Zachery & SirAdrian for the code. It worked!