Using value in a Custom Profile field in a javascript
I would like to use a setting in a custom profile field to affect the behavior of a javascript. I am now calling the javascript from a vbulletin template, passing a variable defined in the template to call the script.
All I need to figure out is how to equate that variable to "fieldX" for the logged in user (or a default if nobody is logged in). Are there any hints or FAQ's I've missed that could get me moving in the right direction?