PDA

View Full Version : Custom Profile Field Option Piping


vbresults
03-28-2011, 02:36 PM
Does vBulletin include any sort of piping functionality for the options in select or check fields? I would like to be able to specify the key and value for each option, but I am having a hard time finding the documentation for it.

Boofo
03-28-2011, 02:45 PM
Well, there is this for forums:

select:eval
$options = construct_forum_chooser_options(1);


And this for other options types:
select:piped
0|do nothing
1|do something
2|do something else


Both use numeric for data type.

Is that what you are looking for?

vbresults
04-03-2011, 08:03 PM
Sorry I was not clear; I want to use syntax similar to what you provided to specify the key and value for each option in the profile field manager's editor, not in custom AdminCP options. I wanted to know if such functionality exists and if it does, how I can use it.

Thanks. :)

Boofo
04-03-2011, 08:16 PM
AFAIK, it doesn't exists there so there would be no way to use that. You can make a drop-down that will allow you to pick from a set of fields, though. Check out the Profile Field Type when you make a new profile field.