• 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.

#1
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
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
 
#5
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!
 
#7
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)
 

Brogan

XenForo moderator
Staff member
#9
I have signatures turned off, far too noisy otherwise ;)

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

Trombones13

Well-known member
#10
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.
 
#12
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