1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Custom field value in message body

Discussion in 'Styling and Customization Questions' started by Nudaii, Mar 25, 2013.

  1. Nudaii

    Nudaii Well-Known Member

    Is there a way to set it so a member preferences can be used in the message body?

    example say they set "Red" font color

    would there be any way to make their posts show in red?

    I tried this but it didn't work

    Code:
    <font color="{$user.customFields.font_color}">
     
                        {xen:raw $message.messageHtml}
    </font>
    yet hardcoded did

    Code:
    <font color="red">
     
                        {xen:raw $message.messageHtml}
    </font>
     
  2. Nudaii

    Nudaii Well-Known Member

    Code:
    <font color="{$user.customFields.font_color}">
     
                        {xen:raw $message.messageHtml}
    </font>
    that was the code:)
     

Share This Page