Boone

Well-Known Member
How can I get the discussion count (by Waindigo) to render in the postbit/message user info?
 

Boone

Well-Known Member
I have that ticked. And, it shows in the Visitor sidebar panel but doesn't show in the message user info (postbit).
 

Afterward

Customer
I know the reason, navigate here
Appearance -> Template Modifications -> Discussion Count by Waindigo -> message_user_info
tell me what do you see in the find field.
 

Boone

Well-Known Member
I know the reason, navigate here
Appearance -> Template Modifications -> Discussion Count by Waindigo -> message_user_info
tell me what do you see in the find field.
#(<xen:if is="{xen:property messageShowTotalLikes})#Us
 

Afterward

Customer
Enable debug mode so you can edit it and replace that with this:
Code:
<xen:if is="@messageShowTotalLikes AND {$user.user_id}">
                    <dl class="pairsJustified xbLikes">
                        <dt><xen:if is="@xb_fa_messageUserInfo"><i class="fa fa-thumbs-up Tooltip" title="{xen:phrase likes_received}" data-offsetX="-6" data-offsetY="0"></i><xen:else />{xen:phrase likes_received}:</xen:if></dt>
                        <dd>{xen:number $user.like_count}</dd>
                    </dl>
                </xen:if>
Save and check.
 

Afterward

Customer
In the replace field replace all with this:
Code:
$0
<xen:if is="@waindigo_messageShowDiscussionCount AND {$user.user_id}">
<dl class="pairsJustified">
    <dt><i class="fa fa-comment Tooltip" title="{xen:phrase waindigo_discussions_discussioncount}" data-offsetX="-6" data-offsetY="0"></i></dt>
    <dd><a href="{xen:link search/member, '', 'user_id={$user.user_id}', 'content=thread'}" class="concealed" rel="nofollow">{xen:number $user.discussion_count}</a></dd>
</dl>
</xen:if>
 

Afterward

Customer
Or if you want the fontawesome style to be disabled and back to normal when you switch that style propertie off then it should be like this :)
Code:
$0
<xen:if is="@waindigo_messageShowDiscussionCount AND {$user.user_id}">
<dl class="pairsJustified">
    <dt><xen:if is="@xb_fa_messageUserInfo"><i class="fa fa-comment Tooltip" title="{xen:phrase waindigo_discussions_discussioncount}" data-offsetX="-6" data-offsetY="0"></i><xen:else />{xen:phrase waindigo_discussions_discussioncount}</xen:if></dt>
    <dd><a href="{xen:link search/member, '', 'user_id={$user.user_id}', 'content=thread'}" class="concealed" rel="nofollow">{xen:number $user.discussion_count}</a></dd>
</dl>
</xen:if>
 

Afterward

Customer
Then go with post 12 method.
0$ =
Code:
<xen:if is="@messageShowTotalLikes AND {$user.user_id}">
                    <dl class="pairsJustified xbLikes">
                        <dt><xen:if is="@xb_fa_messageUserInfo"><i class="fa fa-thumbs-up Tooltip" title="{xen:phrase likes_received}" data-offsetX="-6" data-offsetY="0"></i><xen:else />{xen:phrase likes_received}:</xen:if></dt>
                        <dd>{xen:number $user.like_count}</dd>
                    </dl>
                </xen:if>
So instead we put this in replace
Code:
<xen:if is="@messageShowTotalLikes AND {$user.user_id}">
                    <dl class="pairsJustified xbLikes">
                        <dt><xen:if is="@xb_fa_messageUserInfo"><i class="fa fa-thumbs-up Tooltip" title="{xen:phrase likes_received}" data-offsetX="-6" data-offsetY="0"></i><xen:else />{xen:phrase likes_received}:</xen:if></dt>
                        <dd>{xen:number $user.like_count}</dd>
                    </dl>
                </xen:if>
<xen:if is="@waindigo_messageShowDiscussionCount AND {$user.user_id}">
<dl class="pairsJustified">
    <dt><i class="fa fa-comment Tooltip" title="{xen:phrase waindigo_discussions_discussioncount}" data-offsetX="-6" data-offsetY="0"></i></dt>
    <dd><a href="{xen:link search/member, '', 'user_id={$user.user_id}', 'content=thread'}" class="concealed" rel="nofollow">{xen:number $user.discussion_count}</a></dd>
</dl>
</xen:if>
We only do this:
Code:
$0
<xen:if is="@waindigo_messageShowDiscussionCount AND {$user.user_id}">
<dl class="pairsJustified">
    <dt><i class="fa fa-comment Tooltip" title="{xen:phrase waindigo_discussions_discussioncount}" data-offsetX="-6" data-offsetY="0"></i></dt>
    <dd><a href="{xen:link search/member, '', 'user_id={$user.user_id}', 'content=thread'}" class="concealed" rel="nofollow">{xen:number $user.discussion_count}</a></dd>
</dl>
</xen:if>
Sorry about my english its not that good ^^
 

Afterward

Customer
Hm this happened to me before somehow it didint wanna show, look what i did is this i disabled the template modification by unticking it
22.jpg

Then i went to message_user_info template and edited it this way
find:
Code:
<xen:if is="@messageShowTotalLikes AND {$user.user_id}">
                    <dl class="pairsJustified xbLikes">
                        <dt><xen:if is="@xb_fa_messageUserInfo"><i class="fa fa-thumbs-up Tooltip" title="{xen:phrase likes_received}" data-offsetX="-6" data-offsetY="0"></i><xen:else />{xen:phrase likes_received}:</xen:if></dt>
                        <dd>{xen:number $user.like_count}</dd>
                    </dl>
                </xen:if>
Just after it added:
Code:
<xen:if is="@waindigo_messageShowDiscussionCount AND {$user.user_id}">
<dl class="pairsJustified">
    <dt><xen:if is="@xb_fa_messageUserInfo"><i class="fa fa-comment Tooltip" title="{xen:phrase waindigo_discussions_discussioncount}" data-offsetX="-6" data-offsetY="0"></i><xen:else />{xen:phrase waindigo_discussions_discussioncount}</xen:if></dt>
    <dd><a href="{xen:link search/member, '', 'user_id={$user.user_id}', 'content=thread'}" class="concealed" rel="nofollow">{xen:number $user.discussion_count}</a></dd>
</dl>
</xen:if>
I know this might not be the best practice but it solved it for me :D
 

Boone

Well-Known Member
Quick, curiousity question before I proceed. I've noticed the "likes" in the code.

What does the likes have to do with discussion count. Sorry if stupid question.
 

Pre-Sale Questions

If you have any questions or concerns you want to ask before you make a purchase don't hesitate to use one of our multiple support channels for your convenience.