User Profile Fields

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jrcal
    Member
    • Apr 2004
    • 46
    • 3.8.x

    User Profile Fields

    Hello,
    I'm sorry if this is redundant, but I haven't been able to find an answer to this all afternoon.

    Right now, I have a few profile fields on my forum that only allow numerical inputs - such as height and weight.

    Similar to using math in PHP, is there any way to multiply two of the profile field values and echo them in the postbit template?

    For example: $post[field10] * $post[field11]

    Thank you!
    JR
  • calorie
    Senior Member
    • May 2003
    • 407

    #2
    You would need to do that in the PHP code, either directly by file edit or via a plugin, something like this: $my_var = $post['field10'] * $post['field11'];

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...