PDA

View Full Version : Hiding Profiles


billrini
09-24-2010, 05:08 AM
I don't like to delete profiles on my site because there's a very, very strong tendency for people to calm down after a few days, weeks, or months and want their profile back.

I'm planning on putting people into a specific usergroup with no permissions. I called it "Profile Disabled" and the ID is 10.

I'm trying to put a wrapper around the display in MEMBERINFO which would prevent the profile from displaying. What I have right now is:

<vb:if condition="is_member_of($prepared, 10)">
This profile is no longer active.
<vb:else />

What is the correct value to pass is_member_of? $bbuserinfo is the info on the browsing user not the profile being displayed so I know that's wrong. But I've tried $prepared, $prepared[userinfo], $prepared['userid'] but nothing seems to work here.

--------------- Added 1285311485 at 1285311485 ---------------

I think I found the answer. $userinfo