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.

Sunday, August 26, 2007

MySpace Online Now Icon Code Fix

Re-Designing the MySpace OnLine Now Icon, a New Approach


Working code for a Custom myspace online now Icon


If you are looking for code to fix your custom online now icon, so that it behaves as the online now icon should, you have come to the right place (at least for now).

The code in this article works (it is the ONLY online now icon code, I know of, which works). [Still working when tested on 7 Oct 2007 . . .]
This icon works the Standard Page.

MOST of the code in this article works on the Band and other Artist pages.
Any code line using profileInfo does not work on the Band page.

At the time I am writing this, I did search cyberspace, and I did not find another solution which accomplishes all of the following goals:
- Replace the online now Icon, with a custom Icon, which will show up ONLY when myspace thinks I am online. (when the default icon would otherwise show up)
- Have the Custom online now icon show up in ALL page locations where the default online icon would otherwise be shown. (friend and Comment Spaces)
- Do both of the above in IE and FireFox and Mozilla

If you do not want to read the entire article, you can use the below links to jump to the content you are interested in
Install Custom Online Now Icon (animated)
Install Custom Online Now Icon (non-animated)
Change Color of online Now Icon (IE Only)
Install Permanent online Now Icon above last login
Learn about how the online now icon is implemented and Why most solutions don't work
Custom online now icon Blog Page
Hide YOUR online status from others
Hide online Icon
pre-made Custom OnLine Now Icons (This takes you to another site. I have given them permission to use my code with their custom icons.)
At this time [8 Oct 2007], This solution DOES work.
However, I have seen myspace attempt to modify their online now icon strategy multiple times in the last few days [1 Oct, 2 Oct, 3 Oct 2007], to a strategy which will render this solution broken. They implemented the same strategy for a few days in early September. Each time they back out their changes, again rendering this solution functional. I will publish new code when myspace keeps their code in place long enough for me to be reasonably convinced they are not going to back it out.


You MAY NOT copy this code and publish it for use by others. You MAY use this code in your profile. Keep my headers with it so others, who may see the code in your profile, know that they do NOT have permission to publish this solution. (More on why I feel I own the rights to this solution at the bottom of this post)

Custom Online Now Icon Animated
This code replaces the online now icon in ALL locations on your page. In the friend and Comment sections also.
If you install this code, and do not see your icon, be patient. If myspace would not otherwise show their icon (that ugly orange and green thing) than this one won't show either. They are often slow to detect when you are online, and even slower to detect when you are no longer online. If you want an image which is always there, instead of one that behaves like an online now icon, scroll to the last solution on this page.

This solution is very optimized for a 20px X 80px image. If your image is not this size, post a question, and I will do the math to get the right values for your image.
This Solution has been Tested in Firefox, IE6, Mozilla (on Unix)
The Code It goes almost anywhere. If unsure where to put it, put it at the very top of your about me section, or bio (if using a band page).
<span class="off">
!-Custom OnLine Now Icon
!-Solution Source: <a href="http://xiii.us/v">MySpace Code</a>-!
!-Solution Optimized for 80x20 icon. You WILL need to adjust size, clip and margin values for other icon sizes-!
</span>
<style>
{!-apply background image; replace with url of your image -!}
img.ImgOnlineNow {background-image:url(http://i2.tinypic.com/4q5x18z.gif);
background-repeat: no-repeat;}
img.ImgOnlineNow {height:0px !important; width:0px !important; padding-top:20px; padding-right:80px; background-position: top right;}

{!-IE solution -!}
{!-All Rights to this Solution Reserved. You may use it. You may NOT publish it.}
* html img.ImgOnlineNow {padding-top:0px; padding-right:0px;}
* html img.ImgOnlineNow {width:105px !important; height:52px !important;}
{!-The margin values may need adjustment-!}
* html img.ImgOnlineNow {position:absolute; margin-left:-45px!important;}
* html table.friendsComments img.ImgOnlineNow {margin-left:-65px !important;}
* html table.friendSpace img.ImgOnlineNow {margin-left:-65px !important;}
* html img.ImgOnlineNow {clip: rect(0px, 105px, 21px, 26px)}
</style>
<span class="off">! END code for Custom online Now Icon !</span>


Non Animated Online Icon
This one works with any size icon, without the need to alter any values. However, it does not animate in IE (it does in FF). If your image is an animated gif, and the first frame is not what you want to see in IE, then use solution 1 instead.
The Code It goes almost anywhere. If unsure where to put it, put it at the very top of your about me section, or bio (if using a band page).
<span class="off">
!-Custom OnLine Now Icon
!-Solution Source: <a href="http://xiii.us/v">MySpace Code</a> For Updates-!
</span>
<style>
{!-Size img setting either width and/or height to 0-!}
img.ImgOnlineNow {width:0px !important; height:0px !important;}

{!-apply background image if FF. This will NOT SHOW in IE-}
img.ImgOnlineNow {padding-top:20px; padding-right:80px; background: url("IMG-URL-HERE");
background-position: center center;
background-repeat: no-repeat;}
{!-remove padding in IE-!}
img.ImgOnlineNow {_padding-top:0px; _padding-right:0px;}

{!apply background image in IE. Image will not animate in IE!}
img.ImgOnlineNow {_width:1px !important; _height:1px !important; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader
(src="IMG-URL-HERE")}
</style>
I do not have a code generator for this, nor do I plan to write one (unless I get an overwhelming response asking me to do so). Seriously, it is so easy to just cut and paste, and then replace the IMG-URL-HERE with the URL of the image you want to use.

Hide YOUR online Icon
IF you want to hide when YOU ARE online, you do this via a setting:
"Home" » "Account Settings" » "Privacy Settings" and choose "Hide Online Now Icon"
You may need to repeat this, every so often. MySpace has this tendency to reset stuff back to default values. If you think it needs to be re-set, yet it looks like it is set, change it back and forth and then save changes.

Hide online Icon
If you only want to remove the icon
<style>
{! hide online now icon all occurances !}
img.ImgOnlineNow {display:none;}
{! and in case mySpace brings back the code they had a few days ago !}
{! the profileInfo code line has no effect on band page !}
table.profileInfo table div img {display:none !important}
table.friendsComments table div img {display:none !important}
table.friendSpace table div img {display:none !important}
</style>
Or, If you want to display some of the icons, and turn others off, use the below code. Remove the lines for the icons you want to keep.
<style>
{! hide online now icon!}
{! icon next to profile image !}
table.profileInfo img.ImgOnlineNow {display:none;}
{! icons under friend picture in friend space !}
table.friendSpace img.ImgOnlineNow {display:none;}
{! icons under friend pictures in comment space !}
table.friendsComments img.ImgOnlineNow {display:none;}
</style>

More stuff that was once on the top, that I don't think people Care about
The Concept behind my online now icon solution, and why it works like the online now icon.
Notice the code had 2 solutions coded. One for IE, one for FF and some other browsers.
In IE I use filters in one solution (which do not work in FF).
My other IE solution uses a combination of enlarging, clipping and positioning. This did work well in FF, but did NOT work in Mozilla (for some reason Mozilla left traces of the clipped portion, and re-colored it to black, not good looking).

For non IE browsers (tested in FF and Mozilla) I use padding. This was the cleanest, but with so many users using IE, it was not a suitable stand alone solution.

Change Color of online Icon
Another IE solution to Change the icon color

This one applies a filter which changes the color of the icon.
This only works in IE. This is very simple. Your icon in FF will remain unchanged.

<span class="off">
!-Custom OnLine Now Icon
!-If this code stops working check <a href="http://xiii.us/v">MySpace Code</a> For Updates-!
</span>
<style>
{!-add filter in IE-!}
img.ImgOnlineNow{filter: mask(Color=pink)}

</style>
Choose your own color, and replace the Pink

Permanent Icon Above Last Logon
And I almost forgot; some people really do want just an icon, that is always there, and has nothing to do with the online status. I have better code (that anything I found) for that as well.
NOTE: The icon installed, with the below code is NOT an online now icon. It is just an icon. It is always there. The below code does NOT work on the Band Page
But if All you want is a static image, placed where one of the online now icons resides with the online icon hidden, here is a solution.
The below code installs this icon:
You can replace the URL with your own.
<style>
{!-place image as a background to the clear gif in the cell which is between the profile picture and the profile data-!}
table.profileInfo table td.text img {background-image:url("http://i13.tinypic.com/4unmxqg.gif");
background-position:bottom right;
background-repeat:no-repeat;}

{!- size and position the image
- height determines vertical positioning
- margin-right determines horizontal position.
- DO NOT add a top value to the positioning -!}

table.profileInfo table td.text img {height:45px; width:90px; position:absolute; right:50%; margin-right:150px;}

{!-unDo effect on main image. You can set width to the value you want your main profile image to be. The percent thing works well on FF, not so well on IE-!}
table.profileInfo table td.text a img {position:static; margin-right:0px; margin-left:0px; width:100%; height:auto}

{!-turn off default ugly online now icon-!}
table.profileInfo img.imgonlinenow {display:none;}
{!-and just in case mySpace brings back the code they had a few days ago-!}
table.profileInfo table div img {display:none;}

</style>


How the online icon works, and why most solutions do not work
When myspace detects you are online, they place the code, for the online now icon image, directly into your profile code. They do the same thing for each of your friends. For each friend, they check to see if the friend is on line, and if they are, the code for the online now icon gets inserted into the code which is generated to display your page.
When you refresh your page, the code is re-generated.
The online status is check again.

The image is in class="ImgOnlineNow". This class is used ONLY for this image.
The image is in a cell which is SHARED with other page elements.
The cell is ALWAYS there.

Any solution which does this:
.ImgOnlineNow {visibility:hidden}
OR this:
.ImgOnlineNow {display:none}
(any number of elements may be listed in front of .ImgOnlineNow)
is HIDING your icon ALL THE TIME.

Any solution which places a background image, as a background to the table cell (usually td.text) is placing an image, which is ALWAYS there.
The cell is always there. It does NOT go away when myspace detects that you are no longer online.

Why does my solution work?
I do NOT render the online now icon either hidden or display:none.
I use the actual online now icon, as my container for my background image.
Since the onlinenow icon image goes away, when the system detects I have logged off, my custom icon (which is a background image to the default icon) also goes away.

I was NOT the first to think of this part of the solution. Others attempted this before me.

Think of the image as taking up two layers.
One layer being a space, to accomodate the image, that can be assigned its own background. The other layer being the visible image.
FF allows the first layer, to be larger than the visible image, via padding.
IE does not, it places the padding OUTSIDE.
The alphaimageloader filter will allow a background image to be larger than the visible image it is applied to.
But it destroys animation.
(I think it is the best solution for non animated images).

What I did, was to take advantage of a clear segment of the default icon.
Instead of shrinking the icon to 0, I stretched it.
Then I applied the custom background image to a top corner, where it was only covered with a clear segment of the default icon.
Then I clipped off the visible part of the default icon.
This did require that I do re-positioning, because this shifted my icon to the right.
The clip also requires absolute positioning, so it is difficult to adjust things, for large icons. But it worked very well for an icon with a height of 20px.

What new strategy is MySpace about to Implement and Why will it break my Solution?
The new strategy (which is similar to a very old strategy which was used prior to my own MySpace days) involves the use of a div.
The div is ALWAYS there. It does NOT go away when you are no longer online.

This will cause a custom icon to start showing up, on many pages, which have very old code for a custom online now icon
Why?
Because there will now be a div, at the same level, it was prior to Feb 2007.
This means that all of those old solutions, which place a background image to this div, will start working (well sort of).
When not online the custom icon will show up
When online the custom icon will still be there, but behind the default icon.

No longer is the image in class "ImgOnlineNow". The image has no class.
I can still address it, because no other image is at the same exact level.
So those who read code, will quickly give out new "hide online now icon solutions".
Will this solve the problem?
If you want a permanent custom icon, in place of an online now icon, this will solve the problem.

Will my current solution Work?
No.
While more elegant, simpler solutions will exist for a custom permanent icon, it will be more difficult than before, to implement a custom online now icon.

Basically this is the algorithm which the myspace solution will be using:
IF not online, place clear gif inside div
If online, place onlinenow image inside div

No class is used, that distinguish one image from the other
They are at the exact same depth.
So how can I differentiate?

I do have an IE only solution for the new strategy. I am not going to reveal what it is yet. I am trying to come up with a cleaner solution.

I also have ideas that represent a paradigm shift from what people now perceive as a custom online now icon.
However, I am not going to put any significant effort into my solution until I am more certain myspace is really going to use the new strategy.

Why I feel I own the rights to this Solution
Many tried before me to come up with a working solution. I know this, because I came across multiple solutions, which did NOT work. They had instead resorted to a permanent style icon, and felt they could fool people into thinking it was behaving like an online now icon. The authors of such solutions must know that their solutions created an icon which was always there. Yet it was being published as an online now icon. Why?
I really believe I am the only one who thought of techniques to make the custom icon ONLY show up when the default online icon otherwise would, which worked in IE.
And as obvious as the solution may seem, I am the one who thought of it.

More Notes:
As I was doing some research, to see if anyone else had come up with the same solution I have, I did come across what may be the original source of the "fake online now icon" (The one that is always there). This may have originated from a teenager who posts to the myspace customizing forum.
He had posted it to the forum, and had it coded for IE only.
He had another solution for Non-IE browsers, which is the SAME padding solution I am using for non-IE browsers.
So while I have not found anyone else who has either of my IE solutions, I did find someone else who had published the non-IE padding solution months before I did.
He calls himself "The Odd One".
His MySpace Page
The mySpace Discussion where I discovered that I was not the first one to use the padding solution for non IE browsers:
Febuary Myspace Forum online now icon solution
So while I did think of the NON-IE padding solution myself (I had not yet seen his post) I was not first.

Code for a 40X80 Icon, Standard Profile only
<span class="off">
!-Custom OnLine Now Icon
!-Solution Source: <a href="xiii.us/v">MySpace Code">MySpace Code</a>-!
!-Solution Optimized for 80x20 icon. You WILL need to adjust size, clip and margin values for other icon sizes-!
</span>
<style>
{!-apply background image; replace with url of your image -!}
img.ImgOnlineNow {background-image:url(URL-OF-YOUR-IMAGE-HERE); background-repeat: no-repeat;}
img.ImgOnlineNow {height:0px !important; width:0px !important; padding-top:40px; padding-right:80px; background-position: center center;}

{!-IE solution -!}
{!-All Rights to this Solution Reserved. You may use it. You may NOT publish it.}
* html table.profileInfo table td.text br {line-height:20px;}
* html table.profileInfo table td.text img.ImgOnlineNow {margin-top:-15px;}
* html img.ImgOnlineNow {padding-top:0px; padding-right:0px;}
* html img.ImgOnlineNow {width:105px !important; height:110px !important; }
* html img.ImgOnlineNow {background-position:top right;}
{!-The margin values may need adjustment-!}
* html img.ImgOnlineNow {position:absolute; margin-left:-25px!important;}
* html table.friendsComments img.ImgOnlineNow {margin-left:-65px !important;}
* html table.friendSpace img.ImgOnlineNow {margin-left:-65px !important; margin-top:-20px;}
* html table.friendSpace table table a img {margin-bottom:20px;}
* html img.ImgOnlineNow {clip: rect(0px, 105px, 41px, 26px)}
</style>
<span class="off">! END code for Custom online Now Icon !</span>


Calculating values for larger icons:

customHeight = height of custom image
customWidth = width of custom image

onlineHeight = height to set imgOnlineNow to, to insure we have enough clear area for our image
onlineWidth = width to set imgOnlineNow to, to insure we have enough clear area for our image

Set size of onlinenonlineWidth image as follows:
onlineHeight = customHeight * 2.5
onlineWidth = customWidth * 1.3

The clip property px arguments are in the following order:
top, right, bottom, left

They are calculated as follows:
clipTop = 0
clipRight = onlineWidth or (customWidth * 1.3 )
clipBottom = customHeight
clipLeft = clipRight - customWidth

Keep in mind that the clipped portion does effect position.
The amount clipped off the left = clipLeft
Therefore the IE left positioning needs to be an amount, of clipLeft, further to the left.

IF your image is larger than 40px high I recommend moving it to another page location, and NOT keeping it just above the last login.
I also do NOT recommend placing a custom online image in the friend and/or comment sections, which is larger than 20px by 80px.

Because clip requires position:absolute; any space needed for the icon, must exist even if not online.
This means if I want a very large online now icon on the top of my page, I either need an alternate image when I am not online OR I will have a blank gap when I am not online.

Below is an example of placing a very large custom online now icon just under the top navigation menu.

My Custom image:
http://i16.tinypic.com/8b4miwp.gif

The size of the image is:
height:100px
width:800px

For non IE (Internet Explorer) browsers, I need to size the default online now image to zero, and apply padding to accomodate a background image.

For IE I need to size the default online image large enough, that I can clip a clear portion, which is the size of my custom image.
I calculate the size needed for IE, as follows;

customHeight = 100
customWidth = 800

onlineHeight = 100 * 2.5 = 250
onlineWidth = 800 * 1.3 = 1040

Now I calculate the clip values for IE
clipTop = 0
clipRight = onlineWidth = 1040
clipBottom = customHeight = 100
clipLeft = clipRight - customWidth = 240

The following code block will cause the custom icon to show, just under the top navigation bar, ONLY if the default icon would otherwise show.
If the default icon would NOT otherwise show, this space will be blank. The below code block does NOT work on the Band page. (It can be modified to work on the band page).
Place this code in the about me section, at the top or bottom.
<span class="off">
!-Custom OnLine Now Icon
!-Solution Source: <a href="http://www.msplinks.com/MDFodHRwOi8veGlpaS51cy9vbmxpbmUtbm93LWljb24=">
Custom online now icon code by Eileen</a>-!
Display a 800 x 100 px online icon, just under the top nav bar
ONLY if the default online icon would otherwise show.
</span>
<style>
table.navigationBar {margin-bottom:110px;}
{!-apply background image; replace with url of your image -!}
table.profileInfo img.ImgOnlineNow {background-image:url("http://i16.tinypic.com/8b4miwp.gif"); background-repeat: no-repeat;}
table.profileInfo img.ImgOnlineNow {height:0px !important; width:0px !important;
padding-top:100px; padding-right:800px; background-position: top right; }

{!-Positioning-!}
table.profileInfo img.ImgOnlineNow {position:absolute; top:165px;
left:50%; margin-left:-400px; _margin-left:-640px}

{!-IE only sizing and clipping -!}
{!-All Rights to this Solution Reserved. You may use it. You may NOT publish it.}
* html table.profileInfo img.ImgOnlineNow {
padding-top:0px; padding-right:0px;}
* html table.profileInfo img.ImgOnlineNow {
width:1040px !important; height:250px !important; }

* html table.profileInfo img.ImgOnlineNow {clip: rect(0px, 1040px, 100px, 240px)}
</style>
<span class="off">! END code for Custom online Now Icon !</span>
Notice that for one of my margin-left settings, I put an underscore in front of the word margin (_margin-left). Only IE recognizes this.
Due to the clip, I needed to more the image an extra 240px left. This is how much was clipped off of the left side of the image. For positioning, the system behaves as if the clipped off portion, were still part of the image.

Clip will work in FireFox, but because the padding solution is much cleaner, and clip did NOT work in some minor browsers (and padding did work), I only use clip for the IE solution.


Custom online now icon Blog Page
This one is more complicated, unless one wants a permanent icon (one that is there even when not online).
The permanent icon is actually easier on the blog page, than the standard page.
To create an icon, for this space, that only shows when online, may not be possible.
However,
It is possible (and I know how) to do a NOT ON LINE icon where the NOT is covered, when you are actually online (or at least when myspace detects you are online).
But I haven't written the code yet, and am not sure there is enough demand for it, to make it worth my time. In IE one could cover the word NOT with the color of their choice, however in FireFox (and other browsers) the options are more limited, (pretty much to green or orange).
If enough interest is expressed, I could come up with this code.

Code For the permanent icon, which HIDES the default online icon and places another icon in the same place.
This Icon is there even when you are NOT ON LINE.
Place this code in the blog customize section. No style tags are needed (they are provided when myspace parses the information).
Replace my image (shown in bold below) with the image you want to use).
If your image is larger than 20x80, you will need additional code.
table.profile div {background-image:url(http://i15.tinypic.com/61vugio.gif);
background-position:center center;
background-repeat:no-repeat}
table.profile div img {display:none;}





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

If Google has taken you to this page, and this is not what you are looking for, do not blame me. Every Query I list below, is covered in this article.
-MySpace online now icon code is not working
-my online now icon does not go away
-how long does it take for the online now icon to go away when I log off
-Where do I put the online now icon code
-where do I get working online now icon code for myspace
-where do I get online now icons for myspace
-troubleshoot online now icons myspace
-troubleshoot change online now icon
-myspace online now html codes
-how to change online now icon on myspace
-How to put a custom online now icon on band page
-troubleshooting online now code
-why wouldn't my online now icon work?
-myspace says online now after i sign off

Labels:

84 Comments:

Anonymous Becky said...

Thank you so much for this code I was getting so aggravated because nothing worked. I made my own icon and could not get it on there for anything. Now it is working. The only thing is it is not doing the animation it is supposed to be doing. Do you know how I could fix that? Thanks so much again.

15/9/07 20:51  
Blogger Eileen (aka Coboble) said...

Becky,

Thank you for pointing this out.
I failed to test with an animated image in IE.

I can't get the animation to work in IE either, and I am suspecting that the alphaimageloader filter, will not work with animation.

I have another idea, that I was playing with before I discovered this filter, which might work.
I will experiment some more tomorrow.

In the meantime these are the choices:

1) Do not have image animated in IE
2) Have image there even when you are not online.

The last block of code on my page, will work with animation. But it is for an icon that is always there, not only when you are online.

15/9/07 23:49  
Blogger Eileen (aka Coboble) said...

Becky,
I added another solution, which works with animation in IE (and FF).
I made it solution 1, since it may be the most ideal for most.

This was the solution I was first exploring when I discovered that the alphaimageloader filter would let me put in a background image which was larger than the image on top of it.
For FF padding worked really well for this, but IE puts padding outside of the boundaries for the background.

The new solution takes advantage of the clip property, which has its own potential issues.
But it doesn't break the animation in any browser.

I only tested the new solution in IE and FF (I will test in in Mozilla/Unix when I get to work).

16/9/07 14:47  
Anonymous Anonymous said...

OMG
I think this is the only solution that works.
I had no idea my online icon was always there.
And it never showed up in the friend or comment areas.
Yours shows up in friends and comments and works

16/9/07 18:10  
Blogger gator56964 said...

Hello,

Would you be willing to license this code or can I use it if I linked back to your site?

Thanks,
Todd

27/9/07 20:31  
Blogger Eileen (aka Coboble) said...

Todd,

Did you want to publish the code on another site.
What site?

I will probably allow that as long as I am given credit for writing the code and it isn't a site I disapprove of.

There is the issue of changes to the default myspace code breaking this code, and if it is floating all over cyberspace, I end up loosing the control to fix the code.
It is even possible that myspace will implement an online now strategy which makes it much more difficult to come up with any working solution, for a custom icon.

Thank you for asking instead of just taking.

27/9/07 21:20  
Blogger gator56964 said...

Hello,

I did want to publish the code on myspacecommentgraphics.com. I will not alter the code in any way and I will give you credit and a link to your article. Let me know exactly what you would like me to put on my site if you allow this. I do understand the code can change. Let me know what you think.

Thanks,
Todd

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

Todd,
If I send you a message, using the "contact us" function on the site you gave me, will you get the message?

- Eileen

28/9/07 22:07  
Blogger gator56964 said...

I will get the message, although maybe delayed. Please do send something.

Thanks,
Todd

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

Todd,
I left you a message via your web page.

29/9/07 23:18  
Anonymous Anonymous said...

can you email me the code for this image or the right values. it is 100 x 75. thanks so much my email is dunnillavanilla@yahoo.com
[IMG]http://i199.photobucket.com/albums/aa273/dunnillavanilla/My%20non%20sport%20stuff/greenspinnyskull.gif[/IMG]

30/9/07 05:26  
Blogger gator56964 said...

Hi Eileen,

I didn't seem to get it. It might have gotten mixed up in the hundreds of spam I got over the weekend. Can you send a message to this email: admin @ myspacecommentgraphics dot com.

Thanks and sorry for the inconvenience.

Todd

1/10/07 13:25  
Blogger Benvolio said...

I have a animated gif 115 x 115 that I want to use as an online now pic... help me please I tried your code and it doesn't appear I suspect due to it being too big.

Thanks again!
Ben

2/10/07 16:40  
Blogger Eileen (aka Coboble) said...

Ben,

Did you see the top corner of your image (or is this part clear?)
The behavior I would have expected, is that you would see the top 20x80 corner of the image.

May I look at your page, with the code installed?

This solution does NOT work well (even if I change the values) with very large images.

I can play with your image, and see if I can get it to space well.

Did you want this image next to your profile image only OR did you want it to work, as an online now icon, in the friend and comment spaces as well?

Did you want it there all the time, or only when you are online?

2/10/07 20:14  
Anonymous Anonymous said...

I was told this was not possible by one of the myspace guru types.
But this seems to work.

How did you figure out how to do this.

So when I log off, my icon does not go away at first. But when I wait, and come back a few minutes later it is gone.
I log back on, and it comes back.
Cool.

8/10/07 13:41  
Anonymous Anonymous said...

Hi Eileen,

could you email me the numbers or code for a 40 x 80 pic.

Thanks, Steve
star2287@operamail.com

8/10/07 19:28  
Anonymous Anonymous said...

Hi again Eileen,

my animated pic is 80w x 40h
http://www.fileden.com/files/2007/10/6/1489232/open.gif

Thanks for your time,
Steve
star2287@operamail.com

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

The code for an image which is
40X80 has been added to the article.

I do NOT recommend an image with a height greater than 40.
I had to increase the height of a BR to make room for the image in the profileInfo area.

The 40X80 code is not likely to work well with the band page, because I used the profileInfo class (not on the band page).

9/10/07 18:51  
Anonymous Anonymous said...

Thank you very very much.

I spent hours and hours trying to work out why all the codes I was trying weren't working.

Then I stumbled upon your article and I was in heaven. =)

At first I didn't understand all the values I had to change to position it etc, but I slowly worked it out. =)

Thank you again. =)

Matt.

10/10/07 04:18  
Anonymous Anne said...

Thank you for your code.
I tried several others without success.
It was great to get a code that actually works.
Thanks for all the work you have put into creating your code and thanks for sharing!
Have a good day,
Anne.

12/10/07 16:01  
Anonymous jana said...

hello eileen :)

thanx alot, your codes are perfect :)

do you also have a code for replacing the view online icon in the blog with its comments??? that would be so great!!!

love
jana

15/10/07 00:23  
Anonymous Nicole said...

You, my dear Eileen, are a freakin genius. If you were standing in front of me I would kiss you. I have been yelling and cursing and screaming trying to get an online now icon to work and bam...you have all the freakin codes right at my fingertips...you rock. Thanks!!

Nicole

18/10/07 16:27  
Blogger Eileen (aka Coboble) said...

Thank you Nicole.

Jena,
The blog page uses a different strategy.
I am not sure what myspace is doing with this, if they plan to implement this strategy on all of their pages, or not.
They have attempted it a few times, but always back it out.
But yet they keep it on the blog page.

This is the
If online show online icon
If not online show clear gif
Strategy

Code for an online now icon, which is really only there when online, gets more difficult.

In fact a Not On Line is much easier.

18/10/07 18:54  
Anonymous Jana said...

dear eileen

im not sure but i asked myspace for a code in the blog and they answered me that this problem is resolved, i dont know what they exactly mean but maybe that they changed their strategy now???

to hide online in the blog section i now use this code:

.imgonlinenow{display:none;}

it works well also in the blog comments :)

love
Jana

20/10/07 23:54  
Anonymous Jana said...

oh no this code above doesnt work, sorry for posting it!!!

which code for hiding online do you recommend eileen???

21/10/07 00:10  
Blogger Eileen (aka Coboble) said...

Jana,
Do you mean for the blogs?

You can hide it with this

table.profile div img {display:none}

And for the blog comments this:

td.blogCommentsProfile div div img {display:none}

The code you posted still works on the standard page, at least as of this morning.
They break it pretty regularly.

21/10/07 12:02  
Anonymous jmeister said...

Hello,

I have a 144x54 .GIF it shows up but its croped to the 20x80...

Thank You.

jacob_a_meister@yahoo.com

23/10/07 02:13  
Anonymous Jason said...

Hi, i tryed to get Myspace Online Icon to work, but its not. Here is the Html code for the dragon online icon. when i put it into about me. it dont show up on my page.

The Myspace Online icon that i want is at

http://reddragondesigns.net/online3.php

the 3rd one. which is the dragon one. thanks

my email is dragonlare28@yahoo.com

23/10/07 13:13  
Blogger Eileen (aka Coboble) said...

Jason,
That icon will work with my code,

Just replace the
http://i2.tinypic.com/4q5x18z.gif

with this:
http://c.myspace.com/Groups/00014/60/58/14678506_l.gif

Make sure you read the terms of service on the site the icon comes from (I didn't read them).

23/10/07 21:32  
Blogger Eileen (aka Coboble) said...

jmeister

Would that be 54 high by 144 wide, or the other way around?

Is it animated?

If it is not animated use the solution for a non animated icon and adjust the padding-top to 54 and the padding-right to 144.

If it is animated, it is difficult.
I did get it to work with one that was 40px high, but there was a trade off, I had to also increase the distance between the headline and the rest of the text.

Can you shrink it down to no more than 40px in height?
Then I can work with it, with a slight adjustment of the last block of code I have on the page.

23/10/07 21:37  
Anonymous JOHNPAYNE said...

hi eileen - any way you can put text there instead of an image? i had a music page which showed profile views, which was converted by myspace to a personal as i'm not a music artist, so i wanted to use this code in place of that? if you get how i mean, let me know. otherwise i'll just keep replacing the image every week or whatever [: [:

5/11/07 15:32  
Blogger Eileen (aka Coboble) said...

No,

But I don't think you are looking for an online now icon.
If you want a profile views counter, there are better solutions.

What I recommend for people who want profile views, it to go to some service such as amazingcounters and get a counter.
There are most often images.
The name of the image does not change, they (on their side) change the image everytime the count goes up.
amazing counters does require that you take a small text ad with the image, but they allow you to move the text ad to another location on your page.
Therefore, I believe you could take the image they give you, and use it with the last block of code (the one for a permanent icon).

5/11/07 15:44  
Blogger sumits_girl said...

YOU TOTALLY ROCK!! THANK YOU SO MUCH!! ALL THE OTHER'S JUST DON'T HAVE A CLUE.

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

I have been looking for a custom "online now" icon that actually works FOREVER!!! Thank you soooo much. Any chance of finding a christmas theme on that works??? Thanks again!!!

27/11/07 17:08  
Blogger Eileen (aka Coboble) said...

you are welcome
I wrote the code because I couldn't find any that really worked.

I don't really have pre-made icons, and the one site I shared my code with didn't have any Christmas ones that I remember.

But here are a few that seem to be rather common (I have no idea where they originated or who the artists might be).

http://i7.tinypic.com/6o4wql3.gif

http://i18.tinypic.com/86jny9h.gif

http://i16.tinypic.com/85dabdv.gif

One is a Christmas Tree, one a Candy Cane, and one an ornament.

You may also want to try photobucket and just do a search on Christmas icon.

27/11/07 18:02  
Anonymous Fair Enough said...

Just a note. For whatever reason, when I pasted the code into my about me section it blanked the rest of my profile. I removed the style tags and the profile came back. But my contact table image was gone. I removed the span tags and the contact table came back. I tried several different ways of leaving the span tags in but no matter what I did it blanked my contact table. I'm semi-experienced with code and could not figure out why the span was causing the issue. But, I wanted to let you know about it.

9/12/07 23:54  
Anonymous Drnhlm14 said...

Hello,
I would like to thank you very much for the codes,they finally work on my profile on Myspace =).
I have been looking everywhere for a custom 'online now' icon that works the way it should until I found this web page.There's another custom icon I found which I would like to get,it's an animated icon:

http://www.gifszone.com/content/status_icon/miscellaneous/online_status_39.gif

My e-mail is ap77@telkomsa.net
Thanks again!

13/12/07 16:36  
Blogger Eileen (aka Coboble) said...

fair
I re-tested the code and could not repeat the symptom you describe.
Can I have a link to your profile, so I can test it on your profile.
- Thanks.

Drnhlm14
That icon should work as it is.
It is the correct size.
If you can not get it to work, can I look at the code, as installed on your profile, so I can see the reason.
- Thank you

17/12/07 14:00  
Anonymous Sweetleef '66 said...

Hi there :)

I'm not sure about all the other places you mentioned, but your code worked for my main myspace page. I adjusted the graphic size (only in one place, I hope that's enough). I changed it from 20 and 80 - to 36 and 209.

Your time and sharing is much appreciated. Thank you and Happy Holidays :)

18/12/07 05:30  
Anonymous Drnhlm14 said...

Hi again,

I really don't know much about html at all so I decided try this myself. I used the url code
http://www.gifszone.com/content/status_icon/miscellaneous/online_status_39.gif
as it is,with your code.
All I did was replace the previous custom online code with the new one and when i went to see if anything happened,nothing changed.I just still have the other custom online now icon.I don't know what I'm doing wrong so please help me out :) (This is my new e-mail just in case,I can't access my other one at the moment: agata.piskorski@hotmail.com)

19/12/07 14:36  
Anonymous Drnhlm14 said...

I'm having a problem with posting the html code here,could I e-mail the whole thing to you instead?
It won't allow HTML tags such as 'style' and 'span' to be posted...

19/12/07 15:01  
Blogger Eileen (aka Coboble) said...

I would rather actually look at a profile, than be sent code.

19/12/07 23:45  
Anonymous Tom Lynch said...

Thanks for the code, its magical...!
The thing is I would like to make the regular image appear so its width is 600 and height 150 pixels.
this is the image:

http://x.myspace.com/images/onlinenow.gif

Thanks a stack for your help.

Tom Lynch

20/12/07 16:57  
Blogger Eileen (aka Coboble) said...

Tom
My code, for an online now icon, for IE, really doesn't work well if the image has a height greater than 50px (and that is pushing it).

The reason is that I have to do a position:absolute to make the clip work.
This means there is no way to force more space into the space for the icon, without increasing the height of a br. Making it too big, distorts everything else in that space.
It could be made to work ONLY if we re-adjusted everything else in that space (maybe removed all the text next to the image and then spoofed it with an image).

The Other-Browser version works for any size.

Maybe I will get a magic wand for Christmas, and I will be able to solve the problem :-)

20/12/07 18:50  
Anonymous Mesknot said...

my animated gif is 82(width)x8(height) can u tell me te correct code for placing it right ?

myspace.com/gettoff

18/1/08 14:30  
Anonymous Mesknot said...

eileen the goddess of myspace styling, i want to place the custom online icon in the profileInfo section, friendspace and friendcomments, and show it when i or someone is online... it's a band profile and the animated gif is... 82(width)x8(height), please help me if u can...

18/1/08 15:45  
Anonymous Mesknot said...

oh by the way my email is.. mesknot@hotmail.com and sorry for the multiple posts u.u

18/1/08 16:15  
Anonymous S.o.B. said...

Hi,
yours really is still the only code that works. Thank you so much, you saved my mental health, I searched EVERYWHERE.
But there's a tiny little problem left:
In Internet explorer, the icon is not centered but tends to drift left into the picture, while in firefox it works well.
Maybe I'll find a solution for that by myself but it could be useful for all the others to fix it, right?
Again thank you and
best regards, Björn

25/1/08 07:27  
Blogger Eileen (aka Coboble) said...

Alter the px value of this:
margin-left:-45px!important

The -45 should be correct for a standard sized icon, but it can be altered, if your icon is not positioning correctly.

25/1/08 08:46  
Blogger Eileen (aka Coboble) said...

mesknot
I might play with your icon this weekend.

The size looks like it should work, but 8px seems almost way tiny.
But tiny works, it is large that doesn't.

May I have a link to your icon?

I did put a formula on the page, for calculating the values, for different sized icons.
Perhaps I should make an automated thing, to generate the code.

I don't mind multiple posts, every post is detected by the google bots as changed content. It helps my ranking. So as long as it doesn't clutter to the point of inhibiting people from finding information, multiple posts are good.
(And I have delete power :-).

25/1/08 08:55  
Anonymous Mesknot said...

here's my custom onlineNow icon;

http://img155.imageshack.us/img155/9577/onlinenowuk1.gif

but i think i figured out, i fixed the size, check it out:

http://www.myspace.com/gettoff

and eileen, i need HELP badly... im not using div overlays in this myspace site, and i have been like 2 months since im doing this... i made the desing in 2 and im stuck with the programming... i know about css and html but im not an expert hehe, can u help me with this ? i'll give you the credit in my website

25/1/08 18:48  
Anonymous Mesknot said...

http://img155.imageshack.us/img155/9577/onlinenowuk1.gif


oops, sorry thats the correct link... i posted the last comment so quick cos i was in a hurry hehe my bad...

25/1/08 18:52  
Anonymous michelle maria said...

you rock for putting this up. :D thank you!

it looks perfect in firefox and would probably look perfect in ie if i knew how to edit those bits. but whatever, ie people are teh suck anyway.

so.. thanks again. :D

27/1/08 04:11  
Anonymous Brad said...

Please help :) I used the code that detects the existing online now icon and replaces that. That part works fine, but it also replaces the online now icon in my friends sections. I'm wondering if this is because my page is reverse? I've tried just about everything.

13/2/08 17:43  
Blogger Eileen (aka Coboble) said...

Brad,
It does that by design,
I made it so it replaced the icon in all page locations.

If you don't want to replace it in the friend section, then you want to specifically code it for the class
.profileInfo

13/2/08 18:36  
Anonymous Brad said...

Would you please explain further?

Do i have to assign the class?

I'm still pretty new at this.

14/2/08 16:39  
Anonymous Anonymous said...

Hi,currently I am using your permanent icon code.But, is there a way to get it to appear under your friends/comments,even when your offline too.

Thanks for the assistance.

15/2/08 17:45  
Anonymous Brad said...

Eileen,
I figured it out, thanks for the help!


Brad

17/2/08 07:24  
Anonymous Anonymous said...

I just can't seem to get this code to work no matter what. I tried even removing the commented stuff out figuring maybe it was clogging it up. Still no go though despite everything I've tried. Is this code still good or have they since modified myspace to nullify it?

19/2/08 14:53  
Anonymous Heather said...

I have a question that I can't seem to find an answer to anywhere. How can I get my online now icon to show up, when I'm online, next to my picture, I guess above the last login, INSTEAD of in my top friends section? I don't like it there and have no idea how to get it where I want it. If you could give me any information to help this I would greatly appreciate it. Thank you.

1/3/08 17:55  
Blogger MacFhearghais said...

This code works great but I still see parts of the old myspace icon on top of the new one. I'm using an icon that is 150 by 20. Is it the size that's causing this and how do I fix it? Thanks for any help.

7/3/08 12:56  
Anonymous Anonymous said...

Thanks so much. I finally found a code that works and the icon i really wanted was part of the ones you approved. YEAAA
Thanks again!

21/3/08 15:06  
Blogger MandiKyGirl said...

I'm trying to use the code and it's not working for me. It changes my online code on my page but not on any of my friends pages. I checked the size of the icon and it is 45X20. Not sure if that makes a difference or not. What I did was take your code and replace the url with the url of the icon, is that right? Any help would be greatly appreciated.

23/3/08 19:53  
Blogger Eileen said...

It will only work on your page, not on your friend's pages, unless they also install the code.
You can not put code on your page, and have it effect someone else's page.

23/3/08 20:18  
Blogger MandiKyGirl said...

oh. Okay....I misunderstood. Thanks so much for your help. It is working perfect then. *smiles*

23/3/08 20:34  
Anonymous Debbie said...

Hi I'm trying to make the animated code work with an online now icon that is 124 x 42. http://i261.photobucket.com/albums/ii54/andycwren/dolphinonline-1.gif and