XF 1.x Xenbase 1.5.7 extra user menu unread count?

kontrabass

Customer
Hi guys,

Since upgrading to XB 1.5.7 last night we have a number count (alerts + conversations) next to the usermenu which for us is in the top mod bar:

Screenshot at May 17 07-01-11.png


What's the best way to make that disappear? Our users feel it's redundant since convo and alert unread counts are already shown separately.

Thanks!
 

kontrabass

Customer
Here's a quick fix, not sure if the best way but it works. Add the RED text into your navigation_visitor_tab template:

<!-- account -->
<li class="navTab account Popup PopupControl PopupClosed {xen:if $tabs.account.selected, 'selected'}">

<xen:set var="$visitorHiddenUnread" value="{xen:calc '{$visitor.alerts_unread} + {$visitor.conversations_unread}'}" />
<a href="{xen:link account}" class="navLink accountPopup NoPopupGadget" rel="Menu"><strong class="accountUsername"><xen:if is="@xb_userBar_avatar"><img src="{xen:helper avatar, $visitor, s}" class="miniMe" alt="{$visitor_username}" /></xen:if><xen:if is="@xb_fa_visitor_tabs"><i class="fa fa-user fa-fw"></i></xen:if> <span class="xbVisitorText"><xen:if is="[email protected]_account_text">{$visitor.username}<xen:else />@xb_account_text</xen:if></span></strong>
<xen:if is="!{$xbExtraVisitorTabs}">
<xen:comment>
<strong class="itemCount ResponsiveOnly {xen:if $visitorHiddenUnread, '', 'Zero'}"
id="VisitorExtraMenu_Counter">
<span class="Total">{xen:number $visitorHiddenUnread}</span>
<span class="arrow"></span>
</strong>
</xen:comment>
</xen:if>
</a>
 

Russ

Pixel Exit Staff
I think we'll use CSS to adjust this actually:

Code:
#moderatorBar #VisitorExtraMenu_Counter {
  display: none;
}
Some add-ons like the live update use this counter I believe to show the unread in the browser title so it still needs to be there. We made a change on 1.5.7 which had good intention and is working a lot better... but it looks like I overlooked this bug :D.
 

kontrabass

Customer
I think we'll use CSS to adjust this actually:

Code:
#moderatorBar #VisitorExtraMenu_Counter {
  display: none;
}
Some add-ons like the live update use this counter I believe to show the unread in the browser title so it still needs to be there. We made a change on 1.5.7 which had good intention and is working a lot better... but it looks like I overlooked this bug :D.
Great, thanks Russ! :)
 

kontrabass

Customer
I've got a pesky user complaining that the alert bubble shows up for split seconds before the css hides it. Ughh. :banghead:
 

Russ

Pixel Exit Staff
I've got a pesky user complaining that the alert bubble shows up for split seconds before the css hides it. Ughh. :banghead:
Does adding an !important after the none help by chance? I'll look today to see if I can't reproduce it and find a better solution
 

Russ

Pixel Exit Staff
Why not just remove it from the template so it will never show up anymore?
All of our options now use the default template (navigation_visitor_tabs), we just call them depending on how the function works, it's a little strange. I'll find a proper solution though :)
 

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.