msmayz
06-03-2014, 05:26 PM
Hi guys. How can I create a custom user profile field that will automatically display a certain value based on the member's usergroup?
For instance, let's say I have three usergroups: Registered Users (id 2), Custom Group A (id 9), and Custom Group B (id 10). And let's say I want to have a custom user profile field labeled Animal. I want all members in usergroup 2 to automatically show "Owl" in that field; usergroup 9 to show "Rabbit"; and usergroup 10 to show "Monkey." I also want this field to automatically update when members get promoted, so a member who is promoted from usergroup 2 to usergroup 9 will see that this field in their profile has automatically changed from "Owl" to "Rabbit."
(For ease of comprehension, this is, obviously, a hypothetical version of what I want to do, but it functions exactly the same way.)
Any ideas?
For instance, let's say I have three usergroups: Registered Users (id 2), Custom Group A (id 9), and Custom Group B (id 10). And let's say I want to have a custom user profile field labeled Animal. I want all members in usergroup 2 to automatically show "Owl" in that field; usergroup 9 to show "Rabbit"; and usergroup 10 to show "Monkey." I also want this field to automatically update when members get promoted, so a member who is promoted from usergroup 2 to usergroup 9 will see that this field in their profile has automatically changed from "Owl" to "Rabbit."
(For ease of comprehension, this is, obviously, a hypothetical version of what I want to do, but it functions exactly the same way.)
Any ideas?