Hello,
By using Twig same as onYou'll then need to adjust the style using the
By using Twig same as on
POST_AUTHOR_FULL
and CURRENT_USERNAME_FULL
?Code:
{% if S_REGISTERED_USER and S_DISPLAY_PM and (postrow.POST_AUTHOR_FULL is same as(CURRENT_USERNAME_FULL)) %}<dd class="profile-pm-inbox"><a href="{{ U_PRIVATEMSGS }}"><span>{{ lang('PRIVATE_MESSAGES') }}</span>{% if PRIVATE_MESSAGE_COUNT %} <strong class="badge">{{ PRIVATE_MESSAGE_COUNT }}</strong>{% endif %}</a></dd>{% elseif not S_IS_BOT and postrow.contact %}<dd class="profile-contact">{# ... #}</dd>{% endif %}
.profile-pm-inbox:has(.badge)
selector to, among other things, overwrite the overflow/hidden on dd
and fine-tune the alignment and colour of the badge.Statistics: Posted by cabot — Sun Aug 18, 2024 10:07 am