PLEASE do NOT strip my credits out of your code. They are harmless. Unlike most sites, My credits do NOT show up on your visible page, there is no reason to remove them. If you make a derivative of my work, you may add your own credits, but leave mine in tact.

I apologize for being less attentive to people's questions than in the past. I hope to return to doing this at some time. But for now I need to think about what I want to do. This doesn't mean I am completely ignoring all questions, if I suspect there might be a bug in my code, or myspace has made some change effecting it, I will still dig in and research.

Friday, January 13, 2006

minimize myspace music player

For changing the size of the music player, you can now use my music player skin tool.
I have added an option for resizing the player, which works with (or without) a skin.
But I highly recommend adding at least a color and border.
Tool for sizing, coloring, adding skin, adding border to the myspace music player.

The above method does not require that the one use absolute placement, and does not use clip. Instead it uses the containing div to control the size.

I recommend using the above method, instead of the method I describe below.

If you want to know how the skins/colors work, or want to put them on your website, read this:
Adding Applying color or skin to the myspace music player

If you are looking to Hide the player completely (meaning it can not be seen) while still allowing it to play (in IE, FireFox and other Browsers), please see the following article:
Hide Myspace music player allow auto play

Move mySpace music Player
The below code is the only code, to move the player, that I know of, which also works on players where a skin has been applied:
<i class=i>!!START code to move music player !!</i>
<a class=i href="http://xiii.us/ms/music-player">
move myspace music player code by Eileen</a>
<style>
table table div,
x.i i .i {position:absolute; top:0px; left:50%; margin-left:360px;}
table table table div,
div table table div,
table table td.text div,
table table div div,
x.i .i .i,
table div table div {position:static; margin-left:0px;}
</style>
<i class=i>!!END code to move music player !!</i>
The above places the player's left edge, just to the right of the ad banner. Adjust the top and margin values to get the position desired.

If you want to place the player just above your about me, alter the values as needed. On my test page the following values worked. Every page is different. You can experiment until you find the values that work for you. Keep in mind that the alignment will differ as the size of your blogs change, and if the browser or resolution is different:
top: 400px
margin-left:20px

You will also want to place a top margin above your blurbs, so that there is room for the player. You can add this to the style block:

table.blurbs {margin-top:100px}


If you prefer to place the right edge of the player, just to the left of the ad, use the below code.

<i class=i>!!START code to move music player !!</i>
<a class=i href="http://xiii.us/ms/music-player">
move myspace music player code by Eileen</a>
<style>
table table div,
x.i i .i {position:absolute; top:0px; right:50%; margin-right:360px;}
table table table div,
div table table div,
table table td.text div,
table table div div,
x.i .i .i,
table div table div {position:static; margin-left:0px;}
</style>
<i class=i>!!END code to move music player !!</i>
The above places the player's left edge, just to the right of the ad banner. Adjust the top and margin values to get the position desired.


Minimize Player
This applies to the Standard Player (not the band page player).
It is no longer possible to just re-define the player size, the effect is to "clip" it down instead of shrinking it. This means that parts of the player will be clipped off.
What this does allow us to now do, is to clip off everything except the stop and start button. The below code will clip the player down to just the button, and place it just to the left of the ad banner, on the top:

The first solution moves (and clips) the div which contains the player.
If you have other divs, which this has a negative effect on, and you can not isolate them to reverse the style, the next solution may work better for you.
(However the 2nd solution does not make it as easy to apply a colored skin to the button).
I like to place this code in the Music Section, at the very top, or the very bottom:
<a class=i  href="http://www.msplinks.com/MDFodHRwOi8veGlpaS51cy9tcy9tdXNpYy1wbGF5ZXItdGlueQ==">
Tiny Music Player Myspace Code by Eileen</a>

<style>
.i {display:none;}
table table div {height:51px; width:295px;
position:absolute; top:0px; left:50%; margin-left:360px; z-index:7;
clip: rect(7px, 41px, 43px, 5px);}
{!-reverse effect on other divs !}
table table td.text div,
table table table div,
table table div div {width:auto !important; height:auto !important; position:static !important; margin-left:0px; background-color:transparent;}

{! OPTIONAL color button !}
{! has no effect on browsers other than IE and Mozilla, Firefox !}
table table div {background-color:hotpink;}
table table div object, table table div embed {-moz-opacity:0.7; filter: alpha(opacity=60)}
table table td.text div object,
table table td.text div embed {filter:none; -moz-opacity:1;}
</style>


Solution II, this one manipulates the object, instead of the containing div.

<a class=i href="http://www.msplinks.com/MDFodHRwOi8veGlpaS51cy9tcy9tdXNpYy1wbGF5ZXItdGlueQ==">
Tiny Music Player Myspace Code by Eileen</a>
<style>
.i {display:none;}
{!-clip player down, move to top just left of ad banner-!}
table table div object,
table table div embed {
position:absolute; top:0px; left:50%; margin-left:-410px;
z-index:9;
clip: rect(7px, 41px, 43px, 5px);}

{!-reverse effect on myspace vplayer; clip will not work with position:static !}
table table td.text div embed,
table table td.text div object{position:static; margin-left:0px;}

{!-reverse effect on other objects you may have -!}
table table table div embed,
table table table div object {position:static; margin-left:0px}

</style>




Move Player without Resizing
Method I (If you have applied a custom skin, you should use this method, or the skin will not move.)
<a class=i href="http://www.msplinks.com/MDFodHRwOi8veGlpaS51cy9tcy9tdXNpYy1wbGF5ZXItdGlueQ==">
Move Music Player Myspace Code by Eileen</a>
<style>
.i {display:none;}
{! move player top just left and under ad banner-!}
table table div {
position:absolute; top:120px; left:50%; margin-left:-40px;
z-index:9; }

{!-reverse effect on other divs !}
table table td.text div,
table table table div,
div table table div,
table div div {position:static; margin-left:0px;}

</style>

Method II (manipulate the object, leaving the div behind)

<a class=i href="http://www.msplinks.com/MDFodHRwOi8veGlpaS51cy9tcy9tdXNpYy1wbGF5ZXItdGlueQ==">
Move Music Player Myspace Code by Eileen</a>
<style>
.i {display:none;}
{! move player top just left and under ad banner-!}
table table div object,
table table div embed {
position:absolute; top:110px; left:50%; margin-left:-40px;
z-index:9; }

{!-reverse effect on myspace vplayer !}
table table td.text div embed,
table table td.text div object{position:static; margin-left:0px;}

{!-reverse effect on other objects you may have -!}
table table table div embed,
table table table div object {position:static; margin-left:0px;}

</style>






For the band player, when re-locating, FF now sees both object and embed as valid. This leads to double movement if you address it as both. So use only Object. However if you are re-sizing it, you must still use embed in FF. I do not know when the script myspace uses for this changed, to cause this.





For the Band 4 Song Player

<style>
{!-Size Player to Zero-!}
table table td.text embed, table table td.text object{width:0px; height:0px;}
</style>

Push player off page (Band 4 Song Player)
<style>
{!-Push player off the page-!}
table table td.text object{position:absolute; top:-500px; right:50%;}
</style>


Thank you for Visiting; Have a Nice Day :-)

- how do i make the myspace band music player invisible
reposition music player on myspace
change color of music player on myspace
skin for music plyer on myspace
make music player smaller myspace
how do i move my music player on top of my profile

Labels:

33 Comments:

Anonymous Anonymous said...

What I want to do is remove the ugly myspace player, and place instead an MP3 player of my own choosing. This is easy, but the catch is that I still want to have text links so people can add songs to their profile, so I cannot just NOT USE the default player, because I need to have the songs on the profile in order for this to be possible. Also, I need the default player to NOT autostart, because the flash player will. Anyway I tried your options, with these results:

#1 works, but hides my flash player as well.
#2 seems to do the same thing. The code for the player includes "application/x-shockwave-flash" allowScriptAccess="never" allownetworking="internal" height="155" width="218" align="middle" data="http://www.mp3asset.com/swf/mp3/myflashfetish-mp3-player.swf"

...which seems to state size, but it is hidden anyway.

#3 actually just moves it on top of my default picture, haha, and #4 won't work for what I want to do.

No idea if you check your comments, but if you do, I'd appreciate any help :)

8/9/07 08:21  
Anonymous Anonymous said...

oh, I'm putting the flash code in the BIO section, and your code in the Influences section along with all my style codes. I's LIKE to make a new table for the new player, but its not top priority.

8/9/07 08:23  
Blogger Eileen (aka Coboble) said...

There are two basic strategies for what I believe you are asking how to do.

You could just not have a myspace default player on your page at all.
I don't mean use the hide code I show in #1, but to use the myspace menu method of removing the player from your page.
If it is the band player, you can remove all the songs.

OR
If you don't want to remove the songs, you can do this:

- Assign a unique class to the player you want to use.
i.e.
<div class="myMp3Player">
code for your player here
</div>

<style>
object, embed {display:none;}
div.myMp3Player object, div.myMp3Player embed {display:block;}
</style>

8/9/07 11:26  
Blogger Malise said...

humm...I did the following, and it didn't work. I think I am doing something wrong.

1. I added your code to ditch the band player. That worked, of course.

2. I added this to my BIO where I want the player to show up (please note that I had to change the <'s to *'s or Blogger wouldnt let me post it as a comment):

*div class="myMp3Player"*
*object enableJSURL="false" enableHREF="false" saveEmbedTags="true" allowScriptAccess="never" allownetworking="internal" type="application/x-shockwave-flash" allowScriptAccess="never" allownetworking="internal" height="300" width="310" align="middle" data="http://www.profiletweaks.com/generators/mp3-player/show.swf?user=jr23485552&baseURL=http://www.profiletweaks.com/generators/mp3-player/&type=link"*
*param name="allowScriptAccess" value="never" /*
*param name="allowNetworking" value="internal" /*
*param name="movie" value="http://www.profiletweaks.com/generators/mp3-player/show.swf?user=jr23485552&baseURL=http://www.profiletweaks.com/generators/mp3-player/&type=link" /*
*param name="quality" value="high" /*
*param name="bgcolor" value="ffffff" /*
*param name="wmode" value="transparent" /*
*/object*

3. Then I added this to the Influences, where the rest of my style tags are:

*style*
object, embed {display:none;}
div.myMp3Player object, div.myMp3Player embed {display:block;}
*/style*

...and it's not showing up. I tried putting the tag in the BIO as well, with the same results. I think I'm placing something incorrectly. Help me, oh sensei of code!

9/9/07 05:59  
Blogger Eileen (aka Coboble) said...

Does this custom player show up if you do NOT hide the default player?

Do you have an overlay, and/or have you added code to hide any page elements (besides the player).

Can you give me a link to your myspace page.
I will look at your page, and see what works on your page.

The only way to get code into a comment is to translate the tag syntax. It is tedious.

9/9/07 11:40  
Anonymous Anonymous said...

myspace.com/hellfiresociety

it seems to be working right now. I modified your code to move the player off the page entirely (before it was moving it, but not far enough) and then put the new mp3 player on. As you can see, I put links to the "add songs to profile" so as to not lose that functionality...it's a fairly important part of publicity for a band. It loads kind of slow, though...is it because its loading my player, and the myspace player? At least the myspace player isnt autostarting and making a noisy mess.

And yes, the player shows up if not hiding the default player.

Messing with band profiles is really a hassle compared to regular profiles, my own profile is myspace.com/beautydestroyed, and that was easy. Doing the same thing on the other profile has been a mess!

p.s. no idea why sometimes I can reply as Malise and other times anonymous. Sorry.

10/9/07 05:56  
Anonymous Anonymous said...

nm I have no idea why this is working. I removed your code and it works anyway. :/

10/9/07 07:42  
Blogger Eileen (aka Coboble) said...

Malise,

You are using the
display:none strategy, and it is working your profile.

I am not sure your strategy to link to add your songs is working.
I will play with that tonight, and see if it is just a fluke (that I can not get them to work), or if it really has an issue.
It would be great to get this working.

I saw other interesting code in your profile as well.
Do you think it is ethical to put this on code you did not write:
(http://hellfiresociety.com) - please do not use this code without linking us!

My initial perception of your Band, after looking at your page, was that it is a group of very ethical young people, with a noble cause.

Do you think my view changed after reading through your code?

10/9/07 12:01  
Blogger Eileen (aka Coboble) said...

ok,
I figured out what is going on with your links, for someone to add song to profile.

They (myspace) is dotting out (replacing with dots) part of the address string.

songID= and songname=
are having the "ongID=" and "ongname=" replaced with dots.
I know how to get around this, but if I publish it, they are sure to shut it down.

10/9/07 13:21  
Anonymous Anonymous said...

Really? When I click those links, it asks me if I want to add the song to my profile, as per usual.

The code on that page is bastardized and modified from about a dozen different sources and took me a long time to get to work together, because some code seemed to negate others. I inserted those comments because I have already found more than one person simply stealing the entire layout. Also I don't want code from a dozen different URL's advertising on the page. My intention is that when it's working properly, that I will publish a how-to so that other people can do their band profiles similarly without just ripping off my entire layout and hotlinking my images (same reason I put the band name on most of the images). If they're going to use a profile ripper, at least this way someone knows where they stole it from.

I don't mind if someone uses code, just not when they profile rip, which is what is happening.

11/9/07 06:24  
Anonymous Anonymous said...

Okay, I see the periods you mean. Guess the problem only happens when you actually go through the add process, which I hadn't. Dammit.

I added a note listing the sites I got the majority of code from, including yours. I hope this is sufficient; I'm not a coder or a web designer and am just doing this for my boyfriends' band so I'm not up on community ethics like I ought to be.

11/9/07 06:34  
Blogger Eileen (aka Coboble) said...

its cool.

There are two ways, I found, which worked to get the links to add a song to work.

1) Add Carriage returns that cut the word song across two lines.
(Amazingly enough this worked, even though the "is my Hero" worm kid used this technique. At least it doesn't work with the word script).

2) If you have your own web host (which I am guessing you do since you own a domain name) you probably have a way to set up re-directs.
I was able to set up a redirect, which accepted the whole string, and gave it a new url name which did not include the word song.
Then I was able to put the new url as a link on the myspace page.

i.e.
I took this string:
http://collect.myspace.com/index.cfm?fuseaction=music.addsongtoprofile_fullpage&SongID=77568413&songname=EBWTBAC&ownerID=238631988&artist=music2

which is the add link for a song on one of my test pages

I set it up as 302 redirect through my own domain name.
So the url I was linking to did not have the word song in it.

11/9/07 08:10  
Anonymous Anonymous said...

Amazing. The carriage returns actually worked. The redirect is a good idea if they ever change that code - I hadn't even considered that.

Thanks again :)

11/9/07 10:20  
Blogger R. M. Aranda said...

please tell me that "it's small world" is embedded on this page

otherwise, i'm truly going insane

12/9/07 12:28  
Blogger Eileen (aka Coboble) said...

That comment made me laugh.
Thanks.

yes, "It's A Small World" is embedded on this page.

12/9/07 13:17  
Anonymous Anonymous said...

Theres Something Wrong With My Myspace Player ): I Go To Add A Song And It Wont Let Me . It Only Says " Delete " And " Veiw " Please Help ? ): myspace.com/lil_wog2nv
Thanxxxx (: x

13/9/07 17:36  
Blogger Eileen (aka Coboble) said...

Sorry,
I only know how to write code, to override content and create new content.
When myspace has a problem, and their stuff just doesn't work (which is actually quite often) I can't make it work.
I wish I could

23/9/07 15:55  
Anonymous Anonymous said...

interesting Blog, but unfortunately I did not find what I'm looking for.

I tried to colorize the playlist part of the ugly band-player, without some success. If I download the html-page of my myspace profile and if I edit it directly offline, then it is possible to colorize it. When I change the color parameter in the place, where the player is embedded by default, then it is function:

embed src="http://lads.myspace.com/music/musicplayer.swf?n=aHR0cDovL211c2ljLm15c3BhY2UuY29t&t=varZx/mxU7lTlUqbkObgvmx3Wb0QNFhuJrnRT9hsNNBbqBJtpku+N3XHJsCOrQBqoPYAAn5oSXP//OgqjHb3fg==&u=LTE=&a=0&d=MjUxNjUyNzQzXjExOTEzMDQwNTI=" quality=high bgcolor=#000000 .....


But if I try it per CSS (BIO section) no success at all:


table table td.text object {bgcolor=#000000}
or
table table td.text object {bgcolor=000000 !important;}
or
table table td.text object {background-color:000000;}
or
table table td.text embed {bgcolor=#000000}
or
table table td.text embed {bgcolor=000000}
or
table table td.text embed {background-color:000000 !important;}



and other variations,...

note: in this way I can hide the player with following: "table table td.text object {visibility:hidden;}" with success!



Is there a way to colorize the playlist part of the player? When yes, how?


I do have another question. how can i place the player under the BIO-sections box dynamically, depending on the size of the Bio-Section box.
with other words, how can i flip position of the player and the Bio-Section box?



Sorry for my bad english,... thanks for any help,..

2/10/07 06:46  
Anonymous Anonymous said...

I like the idea of just using the button, and putting it in the top corner.
Too bad we can't keep volume control without keeping the whole bulky ugly player.
But thanks for the button idea.

11/11/07 23:12  
Anonymous YaBoi said...

Hello,
great tutorials.

I had success resizing and moving my band player, however the position of the player is different in I.E and FF. Is there any way I can address each browser seperately? Or does anyone know a way to have them both be positioned the same?

the code I am using is: *style*{!-Size Player to Zero-!}table table td.text embed, table table td.text object{position:absolute; top:50%; margin-top:10px; left:50%; margin-left: 55px; width:330px; height:252px;}*/style*
(* = <)

and my page is www.myspace.com/yaboitestpage

thanks!

12/11/07 14:27  
Blogger Eileen (aka Coboble) said...

YaBoi

Two things:
1) You do not use both object and embed for relocating the band player (you do to resize it, but not to relocate it).
This is confusing, and has to do with how the javascript and flash was done.

2) You don't want to use percent positioning for this. Because you are inside an outer div, which can act as a containing parent, you can get accurate positioning measuring from top left (of the containing div) in px .

i.e.
You want this:
table table td.text embed,
table table td.text object{ width:330px; height:252px;}

table table td.text object {position:absolute; top:613px; left:461px;}

12/11/07 15:28  
Anonymous Anonymous said...

Eileen, I love your site, it's been a great resource for me. I've been using your div overlay method on a band page, and now they're telling me that the myspace player is showing accurate play counts for the songs. Is this something that the div overlay method could be causing? I'm obviously showing the default player on top of my div image. I'm fairly sure that's a MySpace thing, but they're not convinced, and they claim it's my layout that is causing problems. Any advice would be great

16/1/08 06:37  
Anonymous Anonymous said...

Sorry about the above post. I meant to say their player is showing inaccurate play counts for the songs. BTW does a song have to play all the way through to register as a play count? Or just start?

16/1/08 06:38  
Blogger Eileen (aka Coboble) said...

I do not see any way that having a div underlay (overlay) can cause the play count to be off.
I see no way it can effect the play count at all.

I do not think the play count is accurate anyway, div overlay or not.

I noticed that it took a few minutes (and a few page refreshes) for the count to update.

I did see the count update when I let the song play partially through in at least one test.
In another test it did not.
So maybe it depends on how long I let it play.
The play count also seemed delayed.
It seemed not to update at all, and then I would refresh again and the count would jump by 2.

As far as changing coding, to increase the play count accuracy, it is not something I have any control over.

16/1/08 11:54  
Anonymous Anonymous said...

thanks, the second method worked great for me. all you see in the top left is a pause or play button. i went to other websites but their codes also minimized my videos.

22/2/08 14:30  
Anonymous Anonymous said...

why do you not have method 3 for the music player i red this whol e thing i cant find it help!!!!

23/2/08 09:32  
Anonymous Anonymous said...

im trying to make my band player smaller and band page thinner (800pxwidth to be exact). i want the width of the top banner to be same for everything else as you scroll down. how do i do this?

7/4/08 17:34  
Anonymous andieeee said...

thanks you
this made my profile
3298159858657267381 times cooler.

6/6/08 12:17  
Anonymous Jake said...

I hid my myspace player, but when I visit my profile, it doesn't play.
Why is that?

30/7/08 09:21  
Blogger u∃∃l!∃ said...

Jake,
The problem might be the way you hid it.
If it does not show at all, it won't play in some browsers.

Other times, it just fails, and this has nothing to do with it being hidden (without it hidden, the player seems to have an increased failure rate).

If it is hidden, you can not see if it is trying to play.

Do not use code that sizes it to zero, or moves it off the page.
Use code which sizes it down to smaller (but not zero) OR code that uses opacity to make it invisible.

30/7/08 17:07  
Anonymous Jake said...

Ah, thanks Eileen.
I just decided not to hide, and just move it into a DIV.
But, thanks, I'll use it in the future, probably.

31/7/08 13:08  
Anonymous josh said...

hi thanks for all your help.

although i was just wondering if theres any way you can move the 'clipped down' player just the pause button like where the player should be like its noraml spot to be?

thanks.

6/9/08 01:49  
Blogger u∃∃l!∃ said...

Yes.

Go here:
Music Player skin, style, size, position

You can choose any size you want, and select to keep the player in its current position.

6/9/08 10:42  

Post a Comment

Links to this post:

Create a Link

<< Home