The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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? |
#2
|
||||
|
||||
Couldn't you use Ranks?
|
#3
|
|||
|
|||
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?
|
#4
|
||||
|
||||
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:
|
#5
|
|||
|
|||
Thanks so much, Lynne! You're the best... no seriously.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|