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

Show alternate login_bar to logged in members.

Discussion in 'XenForo Development Discussions' started by Lqd, Jan 17, 2011.

  1. Lqd

    Lqd Member

    How would I go about changing the following code from PAGE_CONTAINER:

    Code:
    <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>
    If I want a new pull-down which shows for members only. And would it be sufficient to duplicate the login_bar to login_x to have it animated?

    Thank you!
     
  2. TerminalAddict

    TerminalAddict Active Member

    at a guess (coz I've only been playing with xf for a week)
    Code:
    <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:elseif is="{$visitor.user_id} && !{$hideLoginBar}" />
        <xen:include template="login_bar_x" />
    </xen:if>
    then copy the template from login_bar, create a new template called login_bar_x
     
    Lqd likes this.
  3. Brogan

    Brogan XenForo Moderator Staff Member

    The conditional for logged in members is:
    Code:
    <xen:if is="{$visitor.user_id}">
    Edit: Too late.
     
    Lqd likes this.
  4. Lqd

    Lqd Member

    Awesome guys! This forum must have the fastest response ever! :)
     
  5. Lqd

    Lqd Member

    To get the animated pulldown there are some more things in the way. It seems it does some additional funny stuff in login_bar_form... testing it now :p Will drop a line asap when I figure it out!
     
  6. Brogan

    Brogan XenForo Moderator Staff Member

    I'm interested to see what's going to be on this alternate login bar.
     
  7. Lqd

    Lqd Member

    well, if you perhaps pressed the link in my signature.....

    I want to show the current stats of my stream; little mockup:

    Currently playing: Song 6 | Tune in now:
    Upcoming Song: Song 7 | 192Kbps - WA - WMP - IE
    Last 5 Songs: Song 5 | 128kbps - WA -WMP -IE
    Song 4 | 128ACC - IT
    Song 3 |
    Song 2 |
    Song 1 |


    This information is obtained from SAM Broadcaster of via my shoutcast server. (See my other post)
     
    Trombones13 likes this.
  8. Lqd

    Lqd Member

    hmmm unfortunately it doesn't like spaces in a post well, the | are supposed to be aligned in 1 straight vertical line.
     
  9. Brogan

    Brogan XenForo Moderator Staff Member

    I have signatures turned off, far too noisy otherwise ;)

    You can use "Indent" to align text in columns.
     
  10. Trombones13

    Trombones13 Well-Known Member

    Ooh, cool! I'm working on a SHOUTcast radio station with my site and that would be neat. Is your XF forum live yet (I see the forum from your link is vB3)? :)

    p.s. Your signature link goes directly to the listen.pls link, not your site.
     
  11. Lqd

    Lqd Member

    BRINGONTHENOISEAT192KBPS!

    If you would click the above link you will tune into my radio station if you have winamp or mediaplayer to open .pls files. It's maybe not your cup of tea, but you can give it a shot.. ;)
     
  12. Lqd

    Lqd Member

    dev.hard.fm

    I know, I don't like spamming ;)

    Btw: how do you broadcast? do you use SAM as well? there is a nice toy out there called SAMPHPweb but it's a nightmare to get that even close to xenforo layout... and I definitely don't want iframes...

    I really wonder what is going to happen if my 30.000 members start hammering Xenforo :p
     

Share This Page