Jake B.
Well-known member
Not sure if this is intentional or not, but in template 'sidebar_visitor_panel' there are the following lines:
It seems a bit odd that the hook starts inside the <div> tag, but ends after the </div> Not sure if this is intentional, but it makes it a bit weird to add in new stats, still entirely possible to do, but a bit odd. Just was curious what the purpose of this was, perhaps @Jake Bunce or @Brogan knows, since they seems to know everything
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>
<dl class="pairsJustified"><dt>{xen:phrase points}:</dt> <dd>{xen:number $visitor.trophy_points}</dd></dl>
</div>
</xen:hook>
</div>
It seems a bit odd that the hook starts inside the <div> tag, but ends after the </div> Not sure if this is intentional, but it makes it a bit weird to add in new stats, still entirely possible to do, but a bit odd. Just was curious what the purpose of this was, perhaps @Jake Bunce or @Brogan knows, since they seems to know everything
