![]() |
Hide custom fields by usergroup?
Can someone give me a hand in creating a small plugin for vB 3.8.7? I want to hide/show the custom profile fields in usercp/editprofile by usergroup.
I guess the plugin should look something like this: Code:
if (!is_member_of($vbulletin->userinfo, array(X, Y, Z))) |
I think I can help a little - I think you'd want:
Code:
Edit: do you mean that you don't want to show the fields if it's the profile of a user in one of those groups, or do you mean you don't want to show anyone's field1, field2, etc to someone of one of those usergroups? |
Quote:
|
Quote:
Edit: I haven't tried it, but hook member_profileblock_fetch_unwrapped might work for that. |
Hey hey Kh99, will this work on V4?
I want to hide some custom profile fields from all registered users in their usercp/editprofile ... How would I do that for v4? Thanks in advance! |
All times are GMT. The time now is 07:40 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:
|