2
Hello. This is an interesting post. If I understand what you are saying, then I think the answer to your question is this:
If you have a custom profile form, how can you use that information in other modules?
OK, imagine that your profile form is form number 3, we will use that in this example. You will need to use the actual number from your site. If your profile form is 5, use that number. If it is 1, use that number.
Also, imagine that the "age" question is number 12. Each question in a form has a unique number. You can find this number by editing the question and looking in the URL. The "ele_id" in the URL is the question number.
Last...you need to know the user ID number (uid). Each user has their own number, and you need to know the user you want to get information for.
You will need to work with the PHP code in your module. Once you are working with PHP code, you can do what you need.
In PHP, do this:
$uid = $xoopsUser->getVar('uid'); // or you could get the $uid another way
$form = 3; // your profile form
$ageQuestion = 12; // the "age" question
// get this user's profile
$profile = getData("", $form, "uid/**/$uid");
// get this user's age
$age = display($profile, $ageQuestion);
print $xoopsUser->getVar('name') . ": $age years";
Does that answer your question at all?
You can get more information about Formulize here (including documentation about the PHP functions):
http://www.freeformsolutions.ca/formulize--Julian