Freelancer
Well-known member
I was trying to insert more stats from other add-ons into the sidebar visitor panel but it seems that I can not find the correct way to do it because the replacement can not be inserted into the right place.
Looking at the template I think I found a bug. </xen:hook> and </div> tags are not in correct order. I compared it with the "member_view" template and there the </xen:hook> comes before the </div> which makes great sense because otherwise you would not be able to insert tags if they will always be placed outside the <div>.
Am I wrong?
ALSO: I am looking to make a template mod and changed the template for my style but the template mod created always draws the code from the master template? Is this intentional?
Looking at the template I think I found a bug. </xen:hook> and </div> tags are not in correct order. I compared it with the "member_view" template and there the </xen:hook> comes before the </div> which makes great sense because otherwise you would not be able to insert tags if they will always be placed outside the <div>.
Am I wrong?
Code:
<div class="visitorText">
<h2>{xen:phrase signed_in_as_x_sidebar, 'name={xen:helper username, $visitor, 'NoOverlay'}'}</h2>
<div class="stats">
<xen:hook name="sidebar_visitor_panel_stats">
<dl class="pairsJustified"><dt>{xen:phrase messages}:</dt> <dd>{xen:number $visitor.message_count}</dd></dl>
<dl class="pairsJustified"><dt>{xen:phrase likes}:</dt> <dd>{xen:number $visitor.like_count}</dd></dl>
<xen:if is="{$xenOptions.enableTrophies}">
<dl class="pairsJustified"><dt>{xen:phrase points}:</dt> <dd>{xen:number $visitor.trophy_points}</dd></dl>
</xen:if>
</div>
</xen:hook>
</div>
ALSO: I am looking to make a template mod and changed the template for my style but the template mod created always draws the code from the master template? Is this intentional?
Last edited: