PDA

View Full Version : Custom User Field


nevetS
01-29-2006, 06:53 AM
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 (https://vborg.vbsupport.ru/showthread.php?t=91781) - I want the install to be easier for people.

PyroNET
02-09-2008, 07:04 PM
Old thread, but don't suppose anybody has an answer? I'm interested in this as well

Opserty
02-09-2008, 07:38 PM
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.