XF 1.2 Can't add resource count to visitor panel

Matthew Hawley

Well-known member
I added this to the visitor panel and it didn't work. Here is what I have.

Code:
<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>
                <xen:if is="{$user.resource_count}"><dl class="pairsJustified"><dt>{xen:phrase resources}:</dt> <dd><a href="{xen:link resources/authors, $user}">{xen:number $user.resource_count}</a></dd></dl></xen:if>
            </div>
 

Jeremy

Well-known member
Rich (BB code):
<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>
                <xen:if is="{$user.resource_count}"><dl class="pairsJustified"><dt>{xen:phrase resources}:</dt> <dd><a href="{xen:link resources/authors, $user}">{xen:number $user.resource_count}</a></dd></dl></xen:if>
            </div>
Everything you need is in the code snippet you posted above.
 

le-melvin

Member
Rich (BB code):
<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>
                <xen:if is="{$user.resource_count}"><dl class="pairsJustified"><dt>{xen:phrase resources}:</dt> <dd><a href="{xen:link resources/authors, $user}">{xen:number $user.resource_count}</a></dd></dl></xen:if>
            </div>
Everything you need is in the code snippet you posted above.
Hello, me its not working

Code:
<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>J'aime:</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>
                <dl class="pairsJustified"><dt>Télechargements:</dt> <dd>{xen:number $author.resource_count}</dd></dl>
                </div></xen:hook>
 
Top