View Full Version : Music in profile.
Terrasoft
06-10-2007, 01:20 AM
Basically I want to set it up where a user can put a link to a music file in a profile bit and then when someone views their profile, the music would start up as they view it. Doing the profile bit is easy BUT I can't seem to figure out how to make it autoplay in their profile. I think Id have to edit memberinfo but I don't know what code to put in there.
HMBeaty
06-10-2007, 01:35 AM
try autostart="true"I've only tried video in the profile, never tried music, but try that and see what happens
Terrasoft
06-10-2007, 01:53 AM
Wait how would I incorporate that? I know id have to involve [fieldx] but I dont know how I can make it so it just commands that field to autostart?
HMBeaty
06-10-2007, 01:57 AM
Ok, wait........do you have it coded at all?
Terrasoft
06-10-2007, 01:59 AM
Nope. T_T Give me a sec and let me see if I can come up with anything. To be honest, Im just being lazy here. I just need a push and I can figure it out myself.
HMBeaty
06-10-2007, 02:00 AM
Ok, well when and if you do....let me/us know
sonichero
06-10-2007, 02:00 AM
Im working on the profile that will have this feature... wont be coming for a month though...
Terrasoft
06-10-2007, 02:02 AM
Would something like this work?
<embed src="$userinfo[fieldx]" autostart="true" loop="true"
width="2" height="0">
</embed>
Meh, my limited knowledge of HTML. I dont think that would work though...I think Im using the wrong tags. And this is just to add into the profile, nothing too fancy. Im not sure what you are planning to do.
HMBeaty
06-10-2007, 02:06 AM
Not sure, but I can tell you that this is what I use for the video in the profiles....
<td class="alt2" align="center" valign="middle">
<OBJECT id="VIDEO" width="225" height="176"
CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
type="application/x-oleobject">
<PARAM NAME="URL" VALUE="$userinfo[field17]">
<PARAM NAME="SendPlayStateChangeEvents" VALUE="True">
<PARAM NAME="AutoStart" VALUE="False">
<PARAM name="uiMode" value="full">
<PARAM name="PlayCount" value="9999">
<PARAM name="enabled" value="true">
<embed name="MediaPlayer" type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" width="225" height="176" AutoStart="true" src="$userinfo[field17]" /></object>
</td>
Terrasoft
06-10-2007, 02:16 AM
See that brings up a video player right? Mine is much simpler as I just want the music to be playing, without any music player to show up...if the user doesnt want to hear it...then they can just not look at the profile. =P So Im gonna try out the piece of code and see if it works.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.