![]() |
Custom User Field
I have a plugin, and part of that plugin requires a user to enter data into their profile.
Adding custom user fields is easy, but i would like to take care of that as part of the install. Is there a way to add a user field as part of a product, then reference that field in the plugin? Currently, I make a simple template modification that references $userinfo[field5] - where in my system field5 is my new field. But if someone installs this, and they have other custom user fields, it could be $userinfo[field12]. Alternatively, can I create a new table as part of a product and reference data that way? This question is for my blog entry in postbit plugin - I want the install to be easier for people. |
Old thread, but don't suppose anybody has an answer? I'm interested in this as well
|
Why not add an option...I don't think you can associate a profile field with a product so you will be best just getting the user to do it. Then you can make a setting in vB Options where the user enters their fieldID. Then for the variable you use $userinfo[$vboptions['somesetting']].
Otherwise you have to extend the user table or make a new table and take the data from there. |
All times are GMT. The time now is 08:58 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:
|