Server rentals :: NFOservers.com

Forums

All times are UTC - 8 hours



Author Message
 Post subject: cs source music in motd
PostPosted: Fri Oct 07, 2011 4:59 pm 
Offline
New to forums
New to forums

Joined: Sun Oct 02, 2011 3:38 pm
Posts: 9
every where i look i find a html code for <noembed> and that does not work. <embed> however, does. motd is working fine in with music and all in browser, but in game it is missing the music. i did run across 1 thread on sourcemod website where someone mentioned that it used to work but now, possibly due to updates, does not. can any one confirm this or provide alternative to offer music on motd. thanks.


Top
 Profile  
 
PostPosted: Fri Oct 07, 2011 5:06 pm 
Online
Staff
Staff
User avatar

Joined: Fri Sep 17, 2010 9:06 am
Posts: 2020
Location: California
I have not tested this in a long time but it should work with just some simple html code. Most people usually just embed a Youtube video and set it to auto start.

Another method is to directly link the music in your motd.

Quote:
<embed src="yourmusic.mid"> <noembed> <bgsound src="yourmusic.mid"> </noembed>


Quote:
<embed src="yourmusic.mid" width="140" height="40" autostart="false" loop="FALSE"></embed>


The HTML above should help you.

_________________
<@TimeX-NFo> Hey, we used to have to carry our packets to the servers.
<@TimeX-NFo> And it was upstream, both ways.

<@TimeX-NFo|away> You're asking the old dude for help?????
<@Kraze^NFo> Yes


Top
 Profile  
 
PostPosted: Fri Oct 07, 2011 5:20 pm 
Offline
New to forums
New to forums

Joined: Sun Oct 02, 2011 3:38 pm
Posts: 9
i tried both of those with neither one working "playing music".

here is what i have already:

<html>
<body style="background-color:#303030">
<font size="3" face="neuropol" color="#FFFF00">
<h1><b>Welcome to Dallas Good Ole' Fashion CS</b><h1>
<hr /></font>
<font size="2" face="neuropol" color="#FFFF00">
<p>*Good Ole' Fashion CS with THE BEST reg possible*</p>
<hr />
<p>*Cut loose and have a good time!* <br> *FF is ON*</p>
<hr />
<p>*Admins wanted* <br> *Possible team sponsorship available*</p>
<BGSOUND src="http://paid.site.nfoservers.com/025.mp3"/>
</body>
</html>

everything loads including music on url page. everything but music loads in cs:s

url: http://paid.site.nfoservers.com/motd.html


Top
 Profile  
 
PostPosted: Fri Oct 07, 2011 5:23 pm 
Online
Staff
Staff
User avatar

Joined: Fri Sep 17, 2010 9:06 am
Posts: 2020
Location: California
Take this line of code;

Quote:
<embed src="yourmusic.mid" width="140" height="40" autostart="true" loop="FALSE"></embed>


Then replace;

Quote:
<BGSOUND src="http://paid.site.nfoservers.com/025.mp3"/>


I have a feeling the sound is being loaded but not being told to auto start.


If all above fails you can create a new page on your site, with a Windows media player embed code. Then use the direct link to that page as the source. If the updates didn't break it, I am extremely positive it will work.

_________________
<@TimeX-NFo> Hey, we used to have to carry our packets to the servers.
<@TimeX-NFo> And it was upstream, both ways.

<@TimeX-NFo|away> You're asking the old dude for help?????
<@Kraze^NFo> Yes


Top
 Profile  
 
PostPosted: Fri Oct 07, 2011 8:52 pm 
Offline
New to forums
New to forums

Joined: Sun Oct 02, 2011 3:38 pm
Posts: 9
something didnt work. it is like you suggested now and browser locks up now for some reason.


Top
 Profile  
 
PostPosted: Fri Oct 07, 2011 9:30 pm 
Online
Staff
Staff
User avatar

Joined: Fri Sep 17, 2010 9:06 am
Posts: 2020
Location: California
The actual browser or MOTD?

_________________
<@TimeX-NFo> Hey, we used to have to carry our packets to the servers.
<@TimeX-NFo> And it was upstream, both ways.

<@TimeX-NFo|away> You're asking the old dude for help?????
<@Kraze^NFo> Yes


Top
 Profile  
 
PostPosted: Fri Oct 07, 2011 10:36 pm 
Offline
New to forums
New to forums

Joined: Sun Oct 02, 2011 3:38 pm
Posts: 9
the actual browser locked up. had to ctrl alt delete . source did not play anything


Top
 Profile  
 
PostPosted: Sat Oct 08, 2011 12:54 pm 
Offline
New to forums
New to forums

Joined: Sun Oct 02, 2011 3:38 pm
Posts: 9
i tried what you recc and use media player coding. it works on url but not in game. only text is displayed. here is the code:

<html>
<body style="background-color:#303030">
<font size="3" face="neuropol" color="#FFFF00">
<h1><b>Welcome to Dallas Good Ole' Fashion CS</b><h1>
<hr /></font>
<font size="2" face="neuropol" color="#FFFF00">
<p>*Good Ole' Fashion CS with THE BEST reg possible*</p>
<hr />
<p>*Cut loose and have a good time!* <br> *FF is ON*</p>
<hr />
<p>*Admins wanted* <br> *Possible team sponsorship available*</p>
</body>
</html>
<OBJECT id='mediaPlayer1' width="180" height="50"
classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95'
codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701'
standby='Loading Microsoft Windows Media Player components...' type='application/x-oleobject'>
<param name='fileName' value="http://paid.site.nfoservers.com/025.mp3">
<param name='animationatStart' value='true'>
<param name='transparentatStart' value='true'>
<param name='autoStart' value="true">
<param name='showControls' value="false">
<param name ="ShowAudioControls"value="false">
<param name="ShowStatusBar" value="false">
<param name='loop' value="true">
<EMBED type='application/x-mplayer2'
pluginspage='http://microsoft.com/windows/mediaplayer/en/download/'
id='mediaPlayer' name='mediaPlayer' displaysize='4' autosize='-1'
bgcolor='darkblue' showcontrols="true" showtracker='-1'
showdisplay='0' showstatusbar='-1' videoborder3d='-1' width="420" height="380"
src="Stream URL or Full File Path Goes Here" autostart="true" designtimesp='5311' loop="false">
</EMBED>
</OBJECT>


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
It is currently Mon May 20, 2013 1:05 am
Powered by phpBB® Forum Software © phpBB Group