Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
yes, that is the correct template.I think this is the sidebar_visitors_panel.
<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:if is="{$xenOptions.enableTrophies}">
<dl class="pairsJustified"><dt>{xen:phrase points}:</dt> <dd>{xen:number $visitor.trophy_points}</dd></dl>
</xen:if>
<dl class="pairsJustified"><dt>{xen:phrase nflj_sportsbook_cash}:</dt> <dd>{xen:number $visitor.sportsbook_cash}</dd></dl>
Will this work if you're using DragonByte Credits instead of SportsBook cash?yes, that is the correct template.
FIND:
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> <xen:if is="{$xenOptions.enableTrophies}"> <dl class="pairsJustified"><dt>{xen:phrase points}:</dt> <dd>{xen:number $visitor.trophy_points}</dd></dl> </xen:if> </div>
AFTER THIS:
Code:<xen:if is="{$xenOptions.enableTrophies}"> <dl class="pairsJustified"><dt>{xen:phrase points}:</dt> <dd>{xen:number $visitor.trophy_points}</dd></dl> </xen:if>
ADD THIS:
Code:<dl class="pairsJustified"><dt>{xen:phrase nflj_sportsbook_cash}:</dt> <dd>{xen:number $visitor.sportsbook_cash}</dd></dl>
2 things. What you quoted is for XenForo 1.x, so that won't work in XenForo 2.x. 2nd, what you quoted is for Sportsbook, not DB Credits. DB credits would have its OWN displaying of its OWN credits (and I am fairly certain that the addon has options to display in the postbit).Will this work if you're using DragonByte Credits instead of SportsBook cash?
Ah thanks Bob, that's great.2 things. What you quoted is for XenForo 1.x, so that won't work in XenForo 2.x. 2nd, what you quoted is for Sportsbook, not DB Credits. DB credits would have its OWN displaying of its OWN credits (and I am fairly certain that the addon has options to display in the postbit).
Yeah it has has options to display credit in the postbit but not for Visitor Panel unfotunately.2 things. What you quoted is for XenForo 1.x, so that won't work in XenForo 2.x. 2nd, what you quoted is for Sportsbook, not DB Credits. DB credits would have its OWN displaying of its OWN credits (and I am fairly certain that the addon has options to display in the postbit).
<!--[XF:stats_pairs:above_reactions]-->
<dl class="pairs pairs--justified fauxBlockLink">
<dt>Bookie:</dt>
<dd>{$xf.options.xaSbCurrencySymbol} {$user.xa_sb_cash|currency}</dd>
</dl>
You need to use $xf.visitor instead of $user.@Bob Any idea why this displays correct cash amount in message_macros but shows $0 in account_visitor_menu?
{$xf.visitor.xa_sb_cash|currency}