XF 1.2 Adding custom fields to signatures

WhoIsDo

Active member
I'm rather familiar with adding custom fields into the Message User Info section, but is it possible to add them into a user's signature instead?
 
Can't you just add it to the template for signatures manually?

I'm probably just asking incorrectly, so my apologies for that.

Essentially, I'm just looking to have it so that when a user fills out X, Y, & Z fields in their profile... I can add code (like I do manually now) into a template for the signature. I think it'll be fairly easy, but I'm just not sure what template to use. Any advice?
 
It's towards the bottom:

Code:
</xen:if>
       
        <xen:if is="{$visitor.content_show_signature} && {$message.signature}">
            <div class="baseHtml signature messageText ugc{xen:if $message.isIgnored, ' ignored'}"><aside>{xen:raw $message.signatureHtml}</aside></div>
        </xen:if>
       
        {xen:raw $messageAfterTemplate}

I assume that is the area you are looking for.
 
@Douglas Veney (and I guess @Sheldon), came across this thread while helping someone else out and thought I'd provide the quick and dirty solution (no styling):
Rich (BB code):
{xen:helper userFieldTitle, 'your_id'}: {xen:helper userFieldValue, {$userFieldsInfo.your_id},  $message, {$message.customFields.your_id}}

Replace your_id with the id of the profile field (all 3 are the same).

note: this only works in the message template.
 
Back
Top Bottom