Reputation:
Reputation:
<div class="postbit-extra-icon">
<dt>
<span data-xf-init="tooltip" title="{{ phrase('messages')|for_attr }}">
<xf:fa icon="fa-comment-lines" />
</span>
</dt>
</div>
.postbit-extra {
display: flex;
background: #40495f;
align-items: center;
margin: 5px 0;
border-radius: 5px;
height: 30px;
padding-left: 4px;
box-shadow: 0 1px 3px #141921;
}
.postbit-extra-icon {
padding: 10px;
background: #4d5871;
margin-right: 0.4rem;
margin-left: -4px;
width: 35px;
}
.postbit-extra-dd {
margin: 0 7px 0 auto !important;
}
Reputation:
1. Go to message_macros add postbit-extra after pairs pairs--justified see pic
View attachment 32424
2. add this code for icon
see picCode:<div class="postbit-extra-icon"> <dt> <span data-xf-init="tooltip" title="{{ phrase('messages')|for_attr }}"> <xf:fa icon="fa-comment-lines" /> </span> </dt> </div>
View attachment 32425
3. add class="postbit-extra-dd" in dd see pic
View attachment 32426
4.add css to extra.less
Code:.postbit-extra { display: flex; background: #40495f; align-items: center; margin: 5px 0; border-radius: 5px; height: 30px; padding-left: 4px; box-shadow: 0 1px 3px #141921; } .postbit-extra-icon { padding: 10px; background: #4d5871; margin-right: 0.4rem; margin-left: -4px; width: 35px; } .postbit-extra-dd { margin: 0 7px 0 auto !important; }
What are those side medals? does you know ?
Reputation:
1. Go to message_macros add postbit-extra after pairs pairs--justified see pic
View attachment 32424
2. add this code for icon
see picCode:<div class="postbit-extra-icon"> <dt> <span data-xf-init="tooltip" title="{{ phrase('messages')|for_attr }}"> <xf:fa icon="fa-comment-lines" /> </span> </dt> </div>
View attachment 32425
3. add class="postbit-extra-dd" in dd see pic
View attachment 32426
4.add css to extra.less
Code:.postbit-extra { display: flex; background: #40495f; align-items: center; margin: 5px 0; border-radius: 5px; height: 30px; padding-left: 4px; box-shadow: 0 1px 3px #141921; } .postbit-extra-icon { padding: 10px; background: #4d5871; margin-right: 0.4rem; margin-left: -4px; width: 35px; } .postbit-extra-dd { margin: 0 7px 0 auto !important; }
Reputation:
Need bit help , how can i add more icon , in only message icon showing what will be the code to add more .
For example Reaction score,Points,Credits etc
what will be the code for this ?
here is my sample image
icon only showing for message not for other...
<div class="message-userExtras <xf:if is="property('xentr_user_info_block_collapse') == 'yes'">message-userExtras-body message-userExtras--collapsible</xf:if>">
<xf:contentcheck>
<xf:if is="$extras.register_date">
<dl class="pairs pairs--justified postbit-extra">
<xf:if is="property('xentr_user_info_block_collapse')">
<div class="postbit-extra-icon"><dt>
<span data-xf-init="tooltip" title="{{ phrase('joined')|for_attr }}">
<xf:fa icon="fa-user" />
</span>
</dt></div>
<xf:else />
<dt>{{ phrase('joined') }}</dt>
</xf:if>
<dd class="postbit-extra-dd">{{ date($user.register_date) }}</dd>
</dl>
</xf:if>
<xf:if is="$extras.message_count">
<dl class="pairs pairs--justified postbit-extra">
<xf:if is="property('xentr_user_info_block_collapse')">
<div class="postbit-extra-icon">
<dt>
<span data-xf-init="tooltip" title="{{ phrase('messages')|for_attr }}">
<xf:fa icon="fa-comment-lines" />
</span>
</dt></div>
<xf:else />
<dt>{{ phrase('messages') }}</dt>
</xf:if>
<dd class="postbit-extra-dd">{$user.message_count|number}</dd>
</dl>
</xf:if>
<xf:if is="$extras.solutions AND $user.question_solution_count">
<dl class="pairs pairs--justified postbit-extra">
<xf:if is="property('xentr_user_info_block_collapse')">
<div class="postbit-extra-icon"><dt>
<span data-xf-init="tooltip" title="{{ phrase('solutions')|for_attr }}">
<xf:fa icon="fa-star" />
</span>
</dt></div>
<xf:else />
<dt>{{ phrase('solutions') }}</dt>
</xf:if>
<dd class="postbit-extra-dd">{$user.question_solution_count|number}</dd>
</dl>
</xf:if>
<xf:if is="$extras.reaction_score">
<dl class="pairs pairs--justified postbit-extra">
<xf:if is="property('xentr_user_info_block_collapse')">
<div class="postbit-extra-icon"><dt>
<span data-xf-init="tooltip" title="{{ phrase('reaction_score')|for_attr }}">
<xf:fa icon="fa-thumbs-up" />
</span>
</dt></div>
<xf:else />
<dt>{{ phrase('reaction_score') }}</dt>
</xf:if>
<dd class="postbit-extra-dd">{$user.reaction_score|number}</dd>
</dl>
</xf:if>
<xf:if is="$extras.trophy_points && $xf.options.enableTrophies">
<dl class="pairs pairs--justified postbit-extra">
<xf:if is="property('xentr_user_info_block_collapse')">
<div class="postbit-extra-icon"><dt>
<span data-xf-init="tooltip" title="{{ phrase('points')|for_attr }}">
<xf:fa icon="fa-trophy" />
</span>
</dt></div>
<xf:else />
<dt>{{ phrase('points') }}</dt>
</xf:if>
<dd class="postbit-extra-dd">{$user.trophy_points|number}</dd>
</dl>
</xf:if>
<xf:if is="$extras.age && $user.Profile.age">
<dl class="pairs pairs--justified postbit-extra">
<xf:if is="property('xentr_user_info_block_collapse')">
<div class="postbit-extra-icon"><dt>
<span data-xf-init="tooltip" title="{{ phrase('age')|for_attr }}">
<xf:fa icon="fa-birthday-cake" />
</span>
</dt></div>
<xf:else />
<dt>{{ phrase('age') }}</dt>
</xf:if>
<dd class="postbit-extra-dd">{$user.Profile.age}</dd>
</dl>
</xf:if>
<dl class="pairs pairs--justified postbit-extra">
<div class="postbit-extra-icon"><dt>
<span data-xf-init="tooltip" title="{$currency.title}">
<xf:fa icon="fa-wallet" />
</span>
</dt></div>
<dd class="postbit-extra-dd">
<a href="{{ link('dbtech-credits/currency', $currency, {'user_id': $user.user_id}) }}" data-xf-click="overlay" class="fauxBlockLink-blockLink u-concealed">
{$currency.prefix}{{ $currency.getValueFromUser($user) }}{$currency.suffix}
</a>
</dd>
</dl>
Reputation:
You need edit allCode:<div class="message-userExtras <xf:if is="property('xentr_user_info_block_collapse') == 'yes'">message-userExtras-body message-userExtras--collapsible</xf:if>"> <xf:contentcheck> <xf:if is="$extras.register_date"> <dl class="pairs pairs--justified postbit-extra"> <xf:if is="property('xentr_user_info_block_collapse')"> <div class="postbit-extra-icon"><dt> <span data-xf-init="tooltip" title="{{ phrase('joined')|for_attr }}"> <xf:fa icon="fa-user" /> </span> </dt></div> <xf:else /> <dt>{{ phrase('joined') }}</dt> </xf:if> <dd class="postbit-extra-dd">{{ date($user.register_date) }}</dd> </dl> </xf:if> <xf:if is="$extras.message_count"> <dl class="pairs pairs--justified postbit-extra"> <xf:if is="property('xentr_user_info_block_collapse')"> <div class="postbit-extra-icon"> <dt> <span data-xf-init="tooltip" title="{{ phrase('messages')|for_attr }}"> <xf:fa icon="fa-comment-lines" /> </span> </dt></div> <xf:else /> <dt>{{ phrase('messages') }}</dt> </xf:if> <dd class="postbit-extra-dd">{$user.message_count|number}</dd> </dl> </xf:if> <xf:if is="$extras.solutions AND $user.question_solution_count"> <dl class="pairs pairs--justified postbit-extra"> <xf:if is="property('xentr_user_info_block_collapse')"> <div class="postbit-extra-icon"><dt> <span data-xf-init="tooltip" title="{{ phrase('solutions')|for_attr }}"> <xf:fa icon="fa-star" /> </span> </dt></div> <xf:else /> <dt>{{ phrase('solutions') }}</dt> </xf:if> <dd class="postbit-extra-dd">{$user.question_solution_count|number}</dd> </dl> </xf:if> <xf:if is="$extras.reaction_score"> <dl class="pairs pairs--justified postbit-extra"> <xf:if is="property('xentr_user_info_block_collapse')"> <div class="postbit-extra-icon"><dt> <span data-xf-init="tooltip" title="{{ phrase('reaction_score')|for_attr }}"> <xf:fa icon="fa-thumbs-up" /> </span> </dt></div> <xf:else /> <dt>{{ phrase('reaction_score') }}</dt> </xf:if> <dd class="postbit-extra-dd">{$user.reaction_score|number}</dd> </dl> </xf:if> <xf:if is="$extras.trophy_points && $xf.options.enableTrophies"> <dl class="pairs pairs--justified postbit-extra"> <xf:if is="property('xentr_user_info_block_collapse')"> <div class="postbit-extra-icon"><dt> <span data-xf-init="tooltip" title="{{ phrase('points')|for_attr }}"> <xf:fa icon="fa-trophy" /> </span> </dt></div> <xf:else /> <dt>{{ phrase('points') }}</dt> </xf:if> <dd class="postbit-extra-dd">{$user.trophy_points|number}</dd> </dl> </xf:if> <xf:if is="$extras.age && $user.Profile.age"> <dl class="pairs pairs--justified postbit-extra"> <xf:if is="property('xentr_user_info_block_collapse')"> <div class="postbit-extra-icon"><dt> <span data-xf-init="tooltip" title="{{ phrase('age')|for_attr }}"> <xf:fa icon="fa-birthday-cake" /> </span> </dt></div> <xf:else /> <dt>{{ phrase('age') }}</dt> </xf:if> <dd class="postbit-extra-dd">{$user.Profile.age}</dd> </dl> </xf:if>
for credit
Code:<dl class="pairs pairs--justified postbit-extra"> <div class="postbit-extra-icon"><dt> <span data-xf-init="tooltip" title="{$currency.title}"> <xf:fa icon="fa-wallet" /> </span> </dt></div> <dd class="postbit-extra-dd"> <a href="{{ link('dbtech-credits/currency', $currency, {'user_id': $user.user_id}) }}" data-xf-click="overlay" class="fauxBlockLink-blockLink u-concealed"> {$currency.prefix}{{ $currency.getValueFromUser($user) }}{$currency.suffix} </a> </dd> </dl>
Reputation:
You need edit allCode:<div class="message-userExtras <xf:if is="property('xentr_user_info_block_collapse') == 'yes'">message-userExtras-body message-userExtras--collapsible</xf:if>"> <xf:contentcheck> <xf:if is="$extras.register_date"> <dl class="pairs pairs--justified postbit-extra"> <xf:if is="property('xentr_user_info_block_collapse')"> <div class="postbit-extra-icon"><dt> <span data-xf-init="tooltip" title="{{ phrase('joined')|for_attr }}"> <xf:fa icon="fa-user" /> </span> </dt></div> <xf:else /> <dt>{{ phrase('joined') }}</dt> </xf:if> <dd class="postbit-extra-dd">{{ date($user.register_date) }}</dd> </dl> </xf:if> <xf:if is="$extras.message_count"> <dl class="pairs pairs--justified postbit-extra"> <xf:if is="property('xentr_user_info_block_collapse')"> <div class="postbit-extra-icon"> <dt> <span data-xf-init="tooltip" title="{{ phrase('messages')|for_attr }}"> <xf:fa icon="fa-comment-lines" /> </span> </dt></div> <xf:else /> <dt>{{ phrase('messages') }}</dt> </xf:if> <dd class="postbit-extra-dd">{$user.message_count|number}</dd> </dl> </xf:if> <xf:if is="$extras.solutions AND $user.question_solution_count"> <dl class="pairs pairs--justified postbit-extra"> <xf:if is="property('xentr_user_info_block_collapse')"> <div class="postbit-extra-icon"><dt> <span data-xf-init="tooltip" title="{{ phrase('solutions')|for_attr }}"> <xf:fa icon="fa-star" /> </span> </dt></div> <xf:else /> <dt>{{ phrase('solutions') }}</dt> </xf:if> <dd class="postbit-extra-dd">{$user.question_solution_count|number}</dd> </dl> </xf:if> <xf:if is="$extras.reaction_score"> <dl class="pairs pairs--justified postbit-extra"> <xf:if is="property('xentr_user_info_block_collapse')"> <div class="postbit-extra-icon"><dt> <span data-xf-init="tooltip" title="{{ phrase('reaction_score')|for_attr }}"> <xf:fa icon="fa-thumbs-up" /> </span> </dt></div> <xf:else /> <dt>{{ phrase('reaction_score') }}</dt> </xf:if> <dd class="postbit-extra-dd">{$user.reaction_score|number}</dd> </dl> </xf:if> <xf:if is="$extras.trophy_points && $xf.options.enableTrophies"> <dl class="pairs pairs--justified postbit-extra"> <xf:if is="property('xentr_user_info_block_collapse')"> <div class="postbit-extra-icon"><dt> <span data-xf-init="tooltip" title="{{ phrase('points')|for_attr }}"> <xf:fa icon="fa-trophy" /> </span> </dt></div> <xf:else /> <dt>{{ phrase('points') }}</dt> </xf:if> <dd class="postbit-extra-dd">{$user.trophy_points|number}</dd> </dl> </xf:if> <xf:if is="$extras.age && $user.Profile.age"> <dl class="pairs pairs--justified postbit-extra"> <xf:if is="property('xentr_user_info_block_collapse')"> <div class="postbit-extra-icon"><dt> <span data-xf-init="tooltip" title="{{ phrase('age')|for_attr }}"> <xf:fa icon="fa-birthday-cake" /> </span> </dt></div> <xf:else /> <dt>{{ phrase('age') }}</dt> </xf:if> <dd class="postbit-extra-dd">{$user.Profile.age}</dd> </dl> </xf:if>
for credit
Code:<dl class="pairs pairs--justified postbit-extra"> <div class="postbit-extra-icon"><dt> <span data-xf-init="tooltip" title="{$currency.title}"> <xf:fa icon="fa-wallet" /> </span> </dt></div> <dd class="postbit-extra-dd"> <a href="{{ link('dbtech-credits/currency', $currency, {'user_id': $user.user_id}) }}" data-xf-click="overlay" class="fauxBlockLink-blockLink u-concealed"> {$currency.prefix}{{ $currency.getValueFromUser($user) }}{$currency.suffix} </a> </dd> </dl>
for credit code where should i paste them , mean where in between or after any line ?
<xf:set var="$viewableCurrencies" value="{{ $xf.app.em.getRepository('DBTech\Credits:Currency').getCurrencies(true) }}" />
<xf:if is="$viewableCurrencies">
<xf:foreach loop="$viewableCurrencies" value="$currency" if="$currency.postbit">
<dl class="pairs pairs--justified postbit-extra">
<div class="postbit-extra-icon"><dt>
<span data-xf-init="tooltip" title="{$currency.title}">
<xf:fa icon="fa-wallet" />
</span>
</dt></div>
<dd class="postbit-extra-dd">
<a href="{{ link('dbtech-credits/currency', $currency, {'user_id': $user.user_id}) }}" data-xf-click="overlay" class="fauxBlockLink-blockLink u-concealed">
{$currency.prefix}{{ $currency.getValueFromUser($user) }}{$currency.suffix}
</a>
</dd>
</dl>
</xf:foreach>
</xf:if>
Reputation:
Reputation:
Reputation:
Reputation:
@ForumFlake this may helpful to you
Reputation:
Thank you got the coding to work. Been looking for this for awhile now.