1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.4 Move Username, Inbox, and Alerts Dropdowns to Moderation Bar

Discussion in 'Styling and Customization Questions' started by Amaury, May 7, 2015.

  1. Amaury

    Amaury Well-Known Member

    So I'm working on a new style exclusively for our site and one user made the suggestion to move the above mentioned dropdowns to the moderation bar. How can I accomplish this? I know it'd at least involve the moderator_bar and navigation_visitor_tab templates, but I'm not exactly sure how to go about it.

    Thanks for any help!
     
  2. Russ

    Russ Well-Known Member

    Amaury likes this.
  3. Amaury

    Amaury Well-Known Member

    @Russ, I might need a new guide or something because it's definitely outdated. Looks like some things have changed as I can't find some of the code.
     
  4. Amaury

    Amaury Well-Known Member

    We seem to have run into a bit of a problem (@Russ, maybe you can help).

    @mike406 pointed out that regular users can't see the dropdowns due to how permissions are setup in that regular users can't view the moderator bar. Obviously, we don't want to be giving them moderator permissions, so how can we work around this?
     
  5. DEZero

    DEZero Well-Known Member

    what conditionals do you have in the page_container for the login and mod bar?

    Code:
    
    <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: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>
    
    
     
  6. Amaury

    Amaury Well-Known Member

    We just got it sorted, actually.
     
    DEZero likes this.

Share This Page