frybread
Member
member_view template is not compatible with other addons. The fix is to add $0 at the end.
_data\template_modifications.xml
find
replace
This next one is not needed, but I like to keep $0 at the end:
find
replace
_data\template_modifications.xml
find
Code:
<modification type="public" template="member_view" modification_key="xfa_rm_dt_member_view_tab" description="Add member tab" execution_order="10" enabled="1" action="str_replace">
<find><![CDATA[<!--[XF:tabs:end]-->]]></find>
<replace><![CDATA[<xf:if is="{{ $xf.visitor.hasPermission('xfa_rm_dt', 'xfa_rm_dt_show') }} || ({{ $xf.visitor.hasPermission('xfa_rm_dt', 'xfa_rm_dt_show_own_down') }} && $user.user_id == $xf.visitor.user_id)">
<a href="{{ link('members/downloads', $user) }}"
class="tabs-tab"
id="downloads"
role="tab">{{ phrase('xfa_rm_dt_download_tracker') }}</a>
</xf:if>]]></replace>
</modification>
replace
Code:
<modification type="public" template="member_view" modification_key="xfa_rm_dt_member_view_tab" description="Add member tab" execution_order="10" enabled="1" action="str_replace">
<find><![CDATA[<!--[XF:tabs:end]-->]]></find>
<replace><![CDATA[<xf:if is="{{ $xf.visitor.hasPermission('xfa_rm_dt', 'xfa_rm_dt_show') }} || ({{ $xf.visitor.hasPermission('xfa_rm_dt', 'xfa_rm_dt_show_own_down') }} && $user.user_id == $xf.visitor.user_id)">
<a href="{{ link('members/downloads', $user) }}"
class="tabs-tab"
id="downloads"
role="tab">{{ phrase('xfa_rm_dt_download_tracker') }}</a>
</xf:if>
$0]]></replace>
</modification>
This next one is not needed, but I like to keep $0 at the end:
find
Code:
<modification type="public" template="member_view" modification_key="xfa_rm_dt_member_view_panes" description="Add member panes" execution_order="10" enabled="1" action="str_replace">
<find><![CDATA[<!--[XF:tab_panes:end]-->]]></find>
<replace><![CDATA[$0
<xf:if is="{{ $xf.visitor.hasPermission('xfa_rm_dt', 'xfa_rm_dt_show') }} || ({{ $xf.visitor.hasPermission('xfa_rm_dt', 'xfa_rm_dt_show_own_down') }} && $user.user_id == $xf.visitor.user_id)">
<li data-href="{{ link('members/downloads', $user) }}" role="tabpanel" aria-labelledby="downloads">
<div class="blockMessage">{{ phrase('loading...') }}</div>
</li>
</xf:if>]]></replace>
</modification>
replace
Code:
<modification type="public" template="member_view" modification_key="xfa_rm_dt_member_view_panes" description="Add member panes" execution_order="10" enabled="1" action="str_replace">
<find><![CDATA[<!--[XF:tab_panes:end]-->]]></find>
<replace><![CDATA[
<xf:if is="{{ $xf.visitor.hasPermission('xfa_rm_dt', 'xfa_rm_dt_show') }} || ({{ $xf.visitor.hasPermission('xfa_rm_dt', 'xfa_rm_dt_show_own_down') }} && $user.user_id == $xf.visitor.user_id)">
<li data-href="{{ link('members/downloads', $user) }}" role="tabpanel" aria-labelledby="downloads">
<div class="blockMessage">{{ phrase('loading...') }}</div>
</li>
</xf:if>
$0]]></replace>
</modification>
Last edited: