Background music not playing when in Guest view.
Page 1 of 1
Background music not playing when in Guest view.
Hello again!
I've got some background music installed on my http://www.game-xtreme.com , which is a phpBB3 board. It's playing hidden in guest view only, made in a custom widget for that. Here's the code:
I'm wondering why this code isn't working on my other phpBB3 board: http://fcnl.actieforum.com . I mean, I'm using the same configuration, right?
By the way, the new code I'm trying to use is slightly different and only refers to another YT song:
And I want to keep those widgets out of view, like on http://www.game-xtreme.com .
Could someone please help me with that?
Many thanks in advance.
Samantha.
I've got some background music installed on my http://www.game-xtreme.com , which is a phpBB3 board. It's playing hidden in guest view only, made in a custom widget for that. Here's the code:
- Code:
<div id="ForumIntroMusic_by_Samantha" style="width:1px;height:1px;overflow:hidden;">
<object style="width: 300px; height: 300px;"><param
id="allowscriptaccess" value="always" /><embed style="width:
300px; height: 300px;"
src="http://www.youtube.com/v/IboXhKsDVik?autoplay=1&loop=0"
type="application/x-shockwave-flash" allowscriptaccess="always"
/></object>
</div>
I'm wondering why this code isn't working on my other phpBB3 board: http://fcnl.actieforum.com . I mean, I'm using the same configuration, right?
By the way, the new code I'm trying to use is slightly different and only refers to another YT song:
- Code:
<div id="ForumIntroMusic_by_Samantha" style="width:1px;height:1px;overflow:hidden;">
<object style="width: 300px; height: 300px;"><param
id="allowscriptaccess" value="always" /><embed style="width:
300px; height: 300px;"
src="http://www.youtube.com/v/oR-29kYl_a0?autoplay=1&loop=0"
type="application/x-shockwave-flash" allowscriptaccess="always"
/></object>
</div>
And I want to keep those widgets out of view, like on http://www.game-xtreme.com .
Could someone please help me with that?
Many thanks in advance.
Samantha.
Last edited by SamanthaS on January 10th 2015, 12:25 am; edited 1 time in total
Guest- Guest
Re: Background music not playing when in Guest view.
Hello @SamanthaS,
Try this :
Try this :
- Code:
<div style="height:0;width:0;overflow:hidden;">
<embed src="http://www.youtube.com/v/oR-29kYl_a0?autoplay=1&loop=0" type="application/x-shockwave-flash" allowscriptaccess="always"/>
</div>
Re: Background music not playing when in Guest view.
It played just a couple of notes and then it stopped I don't know if you hear anything when you link up, but just to make sure I'm gonna restart my laptop meanwhile. I'll be back shortly...Ange Tuteur wrote:Hello @SamanthaS,
Try this :
- Code:
<div style="height:0;width:0;overflow:hidden;">
<embed src="http://www.youtube.com/v/oR-29kYl_a0?autoplay=1&loop=0" type="application/x-shockwave-flash" allowscriptaccess="always"/>
</div>
EDIT: Nope, still nada....
Guest- Guest
Re: Background music not playing when in Guest view.
Oh, you have that in the right column correct ? If so, remove the following from your stylesheet.
Since the parent is hidden, the child content, being the embedded element, wont play. It's like when you try to execute the click event on an element that's hidden; it wont work, because you can't click what you can't see.
- Code:
#right { display:none }
Since the parent is hidden, the child content, being the embedded element, wont play. It's like when you try to execute the click event on an element that's hidden; it wont work, because you can't click what you can't see.
Re: Background music not playing when in Guest view.
But then the right widget column appears. I don't want that. I've got Dions Recent Topics installed and I don't want to use the 180 px. on the right for non-visible widgets. Do you know a solution? I don't want any widget bars eating away the forum.Ange Tuteur wrote:Oh, you have that in the right column correct ? If so, remove the following from your stylesheet.
- Code:
#right { display:none }
Since the parent is hidden, the child content, being the embedded element, wont play. It's like when you try to execute the click event on an element that's hidden; it wont work, because you can't click what you can't see.
Guest- Guest
Re: Background music not playing when in Guest view.
Set the width to 0 ?
It looks like you already took care of the margin and floats on the content.
- Code:
#right { width:0 }
It looks like you already took care of the margin and floats on the content.
Re: Background music not playing when in Guest view.
Yep! Perfect this time! Can you hear it too? So I can use my original coding too then?Ange Tuteur wrote:Set the width to 0 ?
- Code:
#right { width:0 }
It looks like you already took care of the margin and floats on the content.
Thanks!
Guest- Guest
Re: Background music not playing when in Guest view.
Yeah, I can hear it. Your original should work, I didn't notice you had the right column hidden at first.
Re: Background music not playing when in Guest view.
Thanks dude! Another one down the archive drain...Ange Tuteur wrote:Yeah, I can hear it. Your original should work, I didn't notice you had the right column hidden.
Guest- Guest
Similar topics
» Music Player not playing
» Ads playing in Background
» guest can view categories?
» Disable guest memberlist view
» Music BackGround
» Ads playing in Background
» guest can view categories?
» Disable guest memberlist view
» Music BackGround
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum