I have made an addon in my localhost installation where I used template modification to replace the following in message_user_info template
This works perfectly in my localhost where I use default style. However, it does not work in my website where I use EDGE because the above part is changed as
So, obviously, my template modification does not find the part I am searching for.
What is the solution? Should I just create 2 template modifications - one for default style and one for EDGE? I never made an addon before, so I don't know how to handle such situation.
Code:
<xen:if is="@messageShowCustomFields AND {$user.customFields}">
<xen:hook name="message_user_info_custom_fields" params="{xen:array 'user={$user}', 'isQuickReply={$isQuickReply}'}">
<xen:foreach loop="$userFieldsInfo" key="$fieldId" value="$fieldInfo">
<xen:if is="{$fieldInfo.viewable_message} AND ({$fieldInfo.display_group} != 'contact' OR {$user.allow_view_identities} == 'everyone' OR ({$user.allow_view_identities} == 'members' AND {$visitor.user_id}))">
<xen:if hascontent="true">
<dl class="pairsJustified userField_{$fieldId}">
<dt>{xen:helper userFieldTitle, $fieldId}:</dt>
<dd><xen:contentcheck>{xen:helper userFieldValue, $fieldInfo, $user, {$user.customFields.{$fieldId}}}</xen:contentcheck></dd>
</dl>
</xen:if>
</xen:if>
</xen:foreach>
</xen:hook>
</xen:if>
This works perfectly in my localhost where I use default style. However, it does not work in my website where I use EDGE because the above part is changed as
Code:
<xen:if is="@messageShowCustomFields AND {$user.customFields}">
<xen:hook name="message_user_info_custom_fields" params="{xen:array 'user={$user}', 'isQuickReply={$isQuickReply}'}">
<xen:foreach loop="$userFieldsInfo" key="$fieldId" value="$fieldInfo">
<xen:if is="{$fieldInfo.viewable_message} AND ({$fieldInfo.display_group} != 'contact' OR {$user.allow_view_identities} == 'everyone' OR ({$user.allow_view_identities} == 'members' AND {$visitor.user_id}))">
<xen:if hascontent="true">
<dl class="pairsJustified userField_{$fieldId} xbCustomField">
<dt><xen:if is="@xb_fa_messageUserInfo"><i class="fa fa-cog fa-fw Tooltip" title="{xen:helper userFieldTitle, $fieldId}" data-offsetX="-6" data-offsetY="0"></i><xen:else />{xen:helper userFieldTitle, $fieldId}:</xen:if></dt>
<dd><xen:contentcheck>{xen:helper userFieldValue, $fieldInfo, $user, {$user.customFields.{$fieldId}}}</xen:contentcheck></dd>
</dl>
</xen:if>
</xen:if>
</xen:foreach>
</xen:hook>
</xen:if>
So, obviously, my template modification does not find the part I am searching for.
What is the solution? Should I just create 2 template modifications - one for default style and one for EDGE? I never made an addon before, so I don't know how to handle such situation.