TruthElixirX
Member
I am trying to reference a user's custom profile field in the post itself. What I am trying to do is let them set a color in their user control panel by adding a custom field and then referencing that in their post to allow them to set a default color.
I am currently in the post_macros template and am trying to insert:
Right after
[/code]
But {$xf.post.User.customFields.defaultBBcode_start.value} doesn't seem to be the right thing I need. Is this even possible in the template I am in?
I am currently in the post_macros template and am trying to insert:
Code:
<font color="{$xf.post.User.customFields.defaultBBcode_start.value}">
Code:
<div class="message-userContent lbContainer js-lbContainer {{ $isIgnored ? 'is-ignored' : '' }}"
data-lb-id="post-{$post.post_id}"
data-lb-caption-desc="{{ $post.User ? $post.User.username : $post.username }} · {{ date_time($post.post_date) }}">
But {$xf.post.User.customFields.defaultBBcode_start.value} doesn't seem to be the right thing I need. Is this even possible in the template I am in?