Show alternate login_bar to logged in members.

Lqd

Member
Licensed customer
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!
 
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
 
  • Like
Reactions: Lqd
The conditional for logged in members is:
Code:
<xen:if is="{$visitor.user_id}">

Edit: Too late.
 
  • Like
Reactions: Lqd
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!
 
I'm interested to see what's going to be on this alternate login bar.
 
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)
 
hmmm unfortunately it doesn't like spaces in a post well, the | are supposed to be aligned in 1 straight vertical line.
 
I have signatures turned off, far too noisy otherwise ;)

You can use "Indent" to align text in columns.
 
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)
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.
 
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.. ;)
 
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.

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
 
Back
Top Bottom