![]() |
vbulletin display if my profile only
I am adding a new section to my users profile.
I want the user to be able to see/edit information but only if the user is logged in and viewing their own profile. I created a new tab in memberinfo_block and the tab shows up... http://immortalarg.com/Capture1.PNG The problem is hiding the highlighted information below. http://immortalarg.com/Capture2.PNG Here is what I've tried to use to hide the info. Code:
<vb:if condition="$userinfo['userid'] == $bbuserinfo['userid']"> Code:
<vb:if condition="$prepared['myprofile']"> |
<vb:if condition="$prepared['userid'] == $userinfo['userid']">
or <vb:if condition="$prepared['userid'] == $bbuserinfo['userid']"> :D |
Thanks for the extra options... here are my results.
With: Code:
<vb:if condition="$prepared['userid'] == $userinfo['userid']"> Member A looks at Member B's profile and can see the info I'm trying to hide. With: Code:
<vb:if condition="$prepared['userid'] == $bbuserinfo['userid']"> With: Code:
<vb:if condition="$prepared['userid'] != $bbuserinfo['userid']"> With: Code:
<vb:if condition="$prepared['userid'] != $userinfo['userid']"> I do know that the "==" is telling me that it must match for it to show and that "!=" is telling me that if the two variables do not match then it will show up. --------------- Added [DATE]1377983647[/DATE] at [TIME]1377983647[/TIME] --------------- To help this is my template code. Code:
<vb:if condition="$prepared['userid'] != $userinfo['userid']"> Code:
if (isset($vbulletin->GPC['tab'])) |
All times are GMT. The time now is 10:35 PM. |
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:
|