![]() |
Automatically display certain value in user profile depending on usergroup
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? |
Couldn't you use Ranks?
|
Hey Lynne! Thanks for your response. Is there a way to make Ranks appear on members' profile pages (like, below the Personal/Biography information) and not beneath their usernames on their posts?
|
Ranks do show on the member.php page. If you don't want them to show on the posts, then you could write a plugin using the postbit_display_complete hook location:
PHP Code:
|
Thanks so much, Lynne! You're the best... no seriously. :)
|
All times are GMT. The time now is 12:34 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:
|