The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
How to add a user profile field when installing a plugin
How can I add a user profile field when installing a plugin?
I'm working on a plugin and as part of the plugin, it needs to create a user profile field and then save what field number it is for internal use. So when the plugin gets installed, it creates the field, sees that it's field8 and saves "field8" to a config option for the plugin. Is this possible? Thanks, |
#2
|
||||
|
||||
Try hard coding the field name.
ie: "newfieldname" What is the purpose of the field? You may want to add it to the user table. |
#3
|
||||
|
||||
Thanks for the answer Reeve.
Hard coding the fieldname makes sense.... If I add the field to the user or userfield tables during the installation of the product/plugin, how can I add the additional information such as the title and description/instructions that appear by the field when the user is looking at their profile? What this is for is simply a plugin/product that adds a field to the user profile (the users fill it in) and the plugin automatically modifies the postbit to add that field to be displayed. You can do the same thing by adding a custom user field manually and modifying the template. I just want to automate the process by providing a product/plugin to do it all in one shot. Thanks. |
#4
|
||||
|
||||
Quote:
I try to do this using admincp/profilefield.php process. field will be added to the database but will not displayed in user profile or the admincp field list. any one have any idea about this? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|