Scarface
Member
ive found the solutionnah i did it all. i even tried on my live site. and was the same. i think something changed in 1.3
ive found the solutionnah i did it all. i even tried on my live site. and was the same. i think something changed in 1.3
How did you get the player picture on the userbar? Like this:@Zackerykr Your theme has already the visitor tabs in the moderator bar.
View attachment 49013
I am not sure what you are trying to do.
https://xenforo.com/community/resources/add-avatar-to-visitor-tab.1147/How did you get the player picture on the userbar? Like this:
Mine just shows the name like this:
<xen:hook name="moderator_bar" />
<xen:if is="{$visitor.user_id}">
<xen:include template="navigation_visitor_tab" />
</xen:if>
<xen:hook name="moderator_bar" />
<xen:if is="{$tabs.account.selected}">
<li class="navTab selected">
<div class="tabLinks">
<ul class="secondaryContent blockLinksList">
<xen:hook name="navigation_tabs_account">
<li><a href="{xen:link account/personal-details}">{xen:phrase personal_details}</a></li>
<li><a href="{xen:link conversations}">{xen:phrase conversations}</a></li>
<xen:if is="{$xenOptions.enableNewsFeed}"><li><a href="{xen:link account/news-feed}">{xen:phrase your_news_feed}</a></li></xen:if>
<li><a href="{xen:link account/likes}">{xen:phrase likes_youve_received}</a></li>
</xen:hook>
</ul>
</div>
</li>
</xen:if>
<xen:comment>
<xen:if is="{$tabs.account.selected}">
<li class="navTab selected">
<div class="tabLinks">
<ul class="secondaryContent blockLinksList">
<xen:hook name="navigation_tabs_account">
<li><a href="{xen:link account/personal-details}">{xen:phrase personal_details}</a></li>
<li><a href="{xen:link conversations}">{xen:phrase conversations}</a></li>
<xen:if is="{$xenOptions.enableNewsFeed}"><li><a href="{xen:link account/news-feed}">{xen:phrase your_news_feed}</a></li></xen:if>
<li><a href="{xen:link account/likes}">{xen:phrase likes_youve_received}</a></li>
</xen:hook>
</ul>
</div>
</li>
</xen:if>
<xen:comment>
<xen:if is="{$visitor.user_id}"><xen:include template="navigation_visitor_tab" /></xen:if>
<xen:if is="{$tabs.account.selected}">
<li class="navTab selected">
<div class="tabLinks">
<ul class="secondaryContent blockLinksList">
<xen:hook name="navigation_tabs_account">
<li><a href="{xen:link account/personal-details}">{xen:phrase personal_details}</a></li>
<li><a href="{xen:link conversations}">{xen:phrase conversations}</a></li>
<xen:if is="{$xenOptions.enableNewsFeed}"><li><a href="{xen:link account/news-feed}">{xen:phrase your_news_feed}</a></li></xen:if>
<li><a href="{xen:link account/likes}">{xen:phrase likes_youve_received}</a></li>
</xen:hook>
</ul>
</div>
</li>
</xen:if>
<xen:comment>
<xen:if is="{$visitor.user_id}"><xen:include template="navigation_visitor_tab" /></xen:if>
</xen:comment>
<xen:if is="{$visitor.is_moderator} || {$visitor.is_admin}">
<xen:include template="moderator_bar" />
<xen:elseif is="!{$visitor.user_id} && !{$hideLoginBar}" />
<xen:include template="login_bar" />
</xen:if>
<xen:comment>
<xen:if is="{$visitor.is_moderator} || {$visitor.is_admin}">
<xen:include template="moderator_bar" />
<xen:elseif is="!{$visitor.user_id} && !{$hideLoginBar}" />
<xen:include template="login_bar" />
</xen:if>
</xen:comment>
<xen:if is="{$visitor.user_id}">
<xen:include template="moderator_bar" />
<xen:elseif is="!{$visitor.user_id} && !{$hideLoginBar}" />
<xen:include template="login_bar" />
</xen:if>
#moderatorBar .adminLink {
float:left;
}
#moderatorBar .visitorTabs {
float: right;
}
#moderatorBar .visitorTabs li {
float:left;
}
#moderatorBar .visitorTabs .navLink {
line-height: 16px;
}
#moderatorBar .visitorTabs .navLink:hover {}
#moderatorBar .visitorTabs .navLink .itemCount {
line-height: 16px;
}
#moderatorBar .visitorTabs .navLink .itemCount:hover {}
/* Brings the content up due to lack of subnav in conversation templates */
#content.conversation_list,
#content.conversation_list_yours,
#content.conversation_list_starred {
position: relative;
margin-top: -47px;
z-index: 5;
}
I fix it here: https://xenforo.com/community/resources/sticky-navigation-premium-edition.3614/Is there a particular way I can stop this modification removing the sub-menus for Inbox and Profile Page, etc?
For the current version of XenForo -- 1.4.3. Some steps may be the same as the original resource, but I'll repost everything just in case.
/* Brings the content up due to lack of subnav in conversation templates */
#content.conversation_view,
#content.conversation_view_yours,
#content.conversation_view_starred {
position: relative;
margin-top: -14px;
z-index: 5;
}
Missing / here : <xen:comment>Rich (BB code):<xen:comment> <xen:if is="{$tabs.account.selected}"> <li class="navTab selected"> <div class="tabLinks"> <ul class="secondaryContent blockLinksList"> <xen:hook name="navigation_tabs_account"> <li><a href="{xen:link account/personal-details}">{xen:phrase personal_details}</a></li> <li><a href="{xen:link conversations}">{xen:phrase conversations}</a></li> <xen:if is="{$xenOptions.enableNewsFeed}"><li><a href="{xen:link account/news-feed}">{xen:phrase your_news_feed}</a></li></xen:if> <li><a href="{xen:link account/likes}">{xen:phrase likes_youve_received}</a></li> </xen:hook> </ul> </div> </li> </xen:if> </xen:comment>
<xen:comment>
<xen:if is="{$tabs.inbox.selected}">
<li class="navTab selected">
<div class="tabLinks">
<ul class="secondaryContent blockLinksList">
<li><a href="{xen:link conversations}">{xen:phrase conversations}</a></li>
<li><a href="{xen:link conversations/starred}">{xen:phrase starred_conversations}</a></li>
<li><a href="{xen:link conversations/yours}">{xen:phrase conversations_you_started}</a></li>
</ul>
</div>
</li>
</xen:if>
</xen:comment>
<!-- no selection -->
<xen:if is="!{$selectedTab}">
<li class="navTab selected"><div class="tabLinks"></div></li>
</xen:if>
</ul>
<xen:if is="{$tabs.inbox.selected}">
<li class="navTab selected">
<div class="tabLinks">
<ul class="secondaryContent blockLinksList">
<li><a href="{xen:link conversations}">{xen:phrase conversations}</a></li>
<li><a href="{xen:link conversations/starred}">{xen:phrase starred_conversations}</a></li>
<li><a href="{xen:link conversations/yours}">{xen:phrase conversations_you_started}</a></li>
</ul>
</div>
</li>
</xen:if>
Is it possible to prevent the style="display:none;" to be added to the span when hovering over the menu? I tried looking it up in the javascript file, but to me that is written up with the Enigma machine, I just can't for the life of my make any sense of scripts
If not I am going to hide it if zero, cause it is annoying that it keeps changing the layout when hovering over it.
EDIT:
Never mind, I think I like it better when it is hidden if Zero, easy way to hide it then is by adding:
To extra.css.Code:#moderatorBar .visitorTabs .navLink .Zero { display: none; }
<xen:if is="{$visitor.is_moderator} || {$visitor.is_admin}">
<xen:include template="moderator_bar" />
<xen:elseif is="!{$visitor.user_id} && !{$hideLoginBar}" />
<xen:include template="login_bar" />
</xen:if>
<xen:comment>
<xen:if is="{$visitor.is_moderator} || {$visitor.is_admin}">
<xen:include template="moderator_bar" />
<xen:elseif is="!{$visitor.user_id} && !{$hideLoginBar}" />
<xen:include template="login_bar" />
</xen:if>
</xen:comment>
<xen:if is="{$visitor.user_id}">
<xen:include template="moderator_bar" />
<xen:elseif is="!{$visitor.user_id} && !{$hideLoginBar}" />
<xen:include template="login_bar" />
</xen:if>
<xen:hook name="moderator_bar" />
<xen:if is="{$visitor.user_id}">
<xen:include template="navigation_visitor_tab" />
</xen:if>
<xen:hook name="moderator_bar" />
#moderatorBar .adminLink { float:left !important; }
#moderatorBar .visitorTabs { float: right; }
#moderatorBar .visitorTabs li { float: left; }
#moderatorBar .visitorTabs .navLink { line-height: 16px; }
#moderatorBar .visitorTabs .navLink:hover { background: @primaryDark !important; border-radius: 2px !important; border: none !important; }
#moderatorBar .visitorTabs .navLink .Popup .PopupControl.PopupOpen, .Popup.PopupContainerControl.PopupOpen { background: @primaryDark !important; }
#moderatorBar .visitorTabs .navLink:hover .Popup .PopupControl.PopupOpen, .Popup.PopupContainerControl.PopupOpen { text-shadow: none !important; }
#moderatorBar .visitorTabs .navLink .Popup .PopupControl:hover, .Popup.PopupContainerControl:hover { background: none !important; }
#moderatorBar .visitorTabs .navLink .itemCount { line-height: 16px; }
#moderatorBar .visitorTabs .navLink .itemCount:hover { }
#moderatorBar .visitorTabs .navLink .itemCount.Zero {display: none;}
#moderatorBar .visitorTabs li .blockLinksList {display: none;}
.navTabs .visitorTabs .navLink
{display: none;}
#moderatorBar .visitorTabs .navLink .itemCount
{background: #e03030;
padding-left: 6px;
padding-right: 6px;
text-align: center;
font-weight: bold;
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
-khtml-border-radius: 2px;
border-radius: 2px;
text-shadow: none;}
#moderatorBar .visitorTabs .navLink .itemCount
{background: #e03030;
padding-left: 6px;
padding-right: 6px;
text-align: center;
font-weight: bold;
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
-khtml-border-radius: 2px;
border-radius: 2px;
text-shadow: none;}
https://xenforo.com/community/threa...to-the-moderator-bar.29049/page-5#post-941897The only issue that I know of but cannot figure out is when their is an alert count, I get one over the user tab also. kinda annoying having 2 alerts.
so if anybody can figure this out from here, please feel free to post it here!
We use essential cookies to make this site work, and optional cookies to enhance your experience.