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.

Wednesday, March 07, 2007

mySpace Comment FriendsComments Space Styling Sizing

Styling and Sizing the MySpace Comment Space

This article does styling.
If you are looking to put your comments in a scroll box, or move them, see the following article:
mySpace Friends and/or Comments in Scroll Box

The code on this page works on the standard page and artist (band, film) pages.

Quick Links for those who do not want to read the whole article
Comment space Structure and Discussion
Remove Default Style
Apply Color/Style to Comment Table Backgrounds and Borders
Sizing Comment table Columns and Header Cells
Widen/Stretch MySpace Comment Table
Size and Style Comment Table fonts
Hide name and image of friend leaving Comment on MySpace Comment Table
Controlling size of images and Objects in a Skinny MySpace Comment Table

Comment space Structure and Discussion
To better understand what I am discussion on this page, please refer to the following myspace page
mySpace page with style added to show layering and classes
AND/OR
Band Page showing layering and classes

On one of the above pages look at the Comment Space, class="friendsComments"

On the standard page (and some artist pages) the friends Comment table is at this level:
table table td.text table.friendsComments
On the band page it is at this level
table table.friendsComments

On both pages it can be addressed like this:
table.friendsComments
This table is shown with a off-white color border, on my pages.

table.friendsComments td.text table td span.orangetext15
(Look at the diagram and the key)
Notice that this is the ONLY occurrence of span.orangetext15 at this level.
We can use this to style this space, without effecting other spaces.

Background-color:
One thing my diagram does not show, is where the background coloring and borders are applied.
I think it is best to REMOVE it all, and just apply your own.

Remove Default Style
<a class=i href="http://xiii.us/ms/friendsComments">
myspace friends comments customize</a>

<style>
{! remove default background and borders from comments !}
table.friendsComments table, table.friendsComments td {background-color:transparent; border:0px;}
</style>

Apply Color/Style to Comment Table Backgrounds and Borders
<a class=i href="http://xiii.us/ms/friendsComments">
myspace friends comments customize</a>
<style>
{! remove default background and borders from comments !}
table.friendsComments table, table.friendsComments td {background-color:transparent; border:0px;}
.i {display:none;}

{! background color full comment space !}
table.friendsComments {background-color:yellow}

{! border around full comment space !}
table.friendsComments {border:2px solid orange}

{! line separating comments from friend names !}
table.friendsComments td.columnsWidening {border-left:2px solid green}

{! line after each comment !}
table.friendsComments table table td {border-bottom:3px solid lightgreen}

{! border around Xs Friends Comments text !}
table.friendsComments table td span.orangetext15{display:block; border:3px solid red; width:100%}

{! line underneath displaying X of Y comments !}
table.friendsComments table table {border-top:3px blue solid}

{! color comment right column !}
table.friendsComments td.columnsWidening {background-color:springgreen}

{! color comment left column !}
{! must be used with ABOVE block to color right column or
both Right and Left columns will be colored !}
table.friendsComments table table td {background-color:lightblue}
</style>

Sizing Comment table Columns and Header Cells
<a class=i href="http://xiii.us/ms/friendsComments">
myspace friends comments customize</a>
<style>
{! comment table sizing !}
.i {display:none;}
{! below values work well if you are keeping comments in right column and have not resized your profile !}

{! ditch the padding and margins !}
table.friendsComments,
table.friendsComments table,
table.friendsComments td
{padding:0px !important; margin:0px !important; }

{! full comment table width !}
table.friendsComments {width:460px;}

{! width of comment right column !}
table.friendsComments table table td.columnsWidening {width:400px !important;}

{! width of comment left column !}
table.friendsComments table table td {width:60px !important;}
table.friendsComments table table td a img {width:60px}
table.friendsComments table table td img.imgOnlineNow {width:60px !important;}

{! force comment header Xs Friends Comments full table width !}
table.friendsComments span.orangetext15 {display:block; width:460px !important; }

</style>

Size and Style Comment Table fonts
<a class=i href="http://xiii.us/ms/friendsComments">
myspace friends comments customize</a>
<style>
{! comment table style fonts }
.i {display:none;}
{! friend name font !}
table.friendsComments table table td a{font-size:9px !important; font-family:Arial Narrow !important; color:darkgreen !important}

{! set font of comment text or it will use same size as friend name !}
table.friendsComments table table td.columnsWidenin {font-size:12px !important; font-family:comic sans ms !important; color:blue !important}

{! sytle comment header Xs Friends Comments !}
table.friendsComments span.orangetext15 {display:block; width:460px !important; color:hotpink; font-family:courier new}

{! style showing X of Y comments !}
table.friendsComments table td b,
table.friendsComments table td b *
{font-size:13px !important; color:magenta !important; font-family:comic sans ms !important }

{! style the add comment at bottom !}
table.friendsComments table td a {font-size:15px; font-family:impact; color:brown}

{! style the links in the div.commentlinks to override above !}
div.commentlinks, div.commentlinks a {font-size:10px !important; font-family:Arial Narrow !important; color:pink !important}

{!-style date-!}
table.friendsComments table table td span.blacktext10 {color:blue; font-size:11px; font-family:courier; background-color:lightblue;}
</style>


Widen/Stretch MySpace Comment Table
In the below example I am using 600.
You can alter the values to suit your own profile
Do NOT use this code UNLESS YOU HAVE moved Comments out of the Right Column.
If you do, you will stretch out your entire profile.

Place this code at the very top of any block which takes html (about, meet, interests)
<a class=i href="http://xiii.us/ms/friendsComments">
myspace friends comments widen,stretch</a>
<style>
{! comment table sizing !}
.i {display:none;}

{! ditch the padding and margins !}
table.friendsComments,
table.friendsComments table,
table.friendsComments td
{padding:0px !important; margin:0px !important; }

{! full comment table width !}
table.friendsComments,
table.friendsComments table,
table.friendsComments td,
table.friendsComments table td {width:600px !important;}

{! width of comment right column !}
table.friendsComments table table td.columnsWidening {width:500px !important;}

{! width of comment left column !}
table.friendsComments table table td {width:100px !important;}

{! force Comment table header full width !}
table.friendsComments table td span.orangeText15 {width:600px !important}
</style>

Hide name and image of friend leaving Comment on MySpace Comment Table
<a class=i href="http://xiii.us/ms/friendsComments">
myspace friends comments hide friend name and image</a>
<a class=i href="http://xiii.us/ms/friendsComments">friends Comments myspace code by Eileen</a>
<style>
.i {display:none;}
table.friendsComments table table td {display:none;}
table.friendsComments table table td.columnsWidening {display:block; border:3px black dashed !important; background-color:lightgreen; width:100%}
</style>


Controlling size of images and Objects in MySpace Comment Table
IF you are NOT trying to make the comment table less wide than 460px, I recommend that you instead take advantage of the built in code, to control the width of objects and images. Unfortunately the myspace coders choose a value which was slightly too wide for the space allocated. However, by making the friend image and name smaller, you can still take advantage of their code.
For this solution please see my above block
Sizing Comment table Columns and Header Cells

However, if you are trying to make your comment space less wide than the above allows for, you can use the below code.
This does require that you make ALL link images the same size as every other link image; and all non link images the same size as all other non link images (in IE).

<a class=i href="http://xiii.us/ms/friendsComments">
myspace friends comments hide friend name and image</a>
<a class=i href="http://xiii.us/ms/friendsComments">friends Comments myspace code by Eileen</a>
<style>
{!-Control size of pictures and objects in comments -!}
table.friendsComments table table td.columnsWidening img {width:200px;}
.i {display:none;}
{!-prevent object sizes from messing with column widths -!}
table.friendsComments table table td.columnsWidening object,
table.friendsComments table table td.columnsWidening embed {width:200px;}
{!online icon -!}
table.friendsComments img.imgOnlineNow {width:80px !important;}
{!-online icon div that shows up every few days for a few hours-!}
table.friendsComments table table td div img{width:80px !important;}
</style>

Labels:

14 Comments:

Anonymous Monc said...

There has to be something wron in my code, i cant adjust width on comments, =) so few people are not able to post, because they dont see the add comment button, thats why i put a comment box on the top.

This is just happening on FF, I think IE looks fine.

www.myspace.com/intheleotriplet1

This Page is great. If someone know the prob, please let me know.

Eileen, I love your blog, ive learn a lot, thanks lol

22/10/07 08:50  
Blogger Eileen (aka Coboble) said...

Monc,

I really don't think you want to use height:100% on the myDclassFC.

That is causing this problem, but it is causing another problem.

I will look at you code closer tomorrow or later this week, to see why the width of the comment area is not sizing correctly.
I see the same problem in your friend space.

You may have a comment, which has very long text, without the needed whitespace to do a proper break or wrap.
I know this is something that IE doesn't have a problem with, but FF does.
FF will push out the width of the column, to hold the text, and IE will wrap the text.
I have never found a solution for this, for FireFox.
But let me look at it closer later.

22/10/07 22:34  
Anonymous Anonymous said...

hey i wa wonderign if someone can help me.
I have heavily edited a myspace page but i cant see peoples comments on the actual page. I can only see them if i click on view all comments. Does anybody know the code i need to insert to srtt this out?

14/11/07 08:52  
Anonymous Anonymous said...

My question is in regards to the comment links I see when I view my own profile (comment back-send message-block user). For some reason in the new layout I posted the links are not on one line, they are on 3 different ones. Ive not had a problem with this before. Is there a code to fix that? I fiddled with it and the only way that I (in my inexperienced manner) could do it is when the friends images were resized but then I was left with huge images.

Thank you in advance.

19/11/07 16:04  
Anonymous Arlie said...

Once Again
YOU'RE THE GREATEST!
I think all of M.S. would benefit if two certain coder/helpers would just fold up their sites & quit confusing people.

Thanks Bunches!

15/2/08 16:49  
Blogger kris said...

My left hand interest column is huge how can I adjust the width?

13/3/08 15:16  
Blogger M.E. Grant said...

This tutorial was perfect. Thanks!

2/5/08 20:21  
Anonymous Matt said...

Im trying to change the default colour of the comments left on my myspace, to white.
The url is http://www.myspace.com/redtapemyspace

I cant do it :'(
ive tried for days and its got me stumped. I hope your still around and able to answer my question
thanks

11/6/08 09:05  
Blogger u∃∃l!∃ said...

Use this

table.friendsComments td.columnsWidening {color:white !important}

Make sure it is inside a style block.

11/6/08 09:39  
Anonymous Matt said...

You are fantastic!
You deserve money or something
thanks heaps!

11/6/08 15:46  
Anonymous Melissa said...

Hey.. I love your blog.. I used the code to control the width of my comment table but now the add comment button is showing up on the bottom of the table. When I use the code to hide the ViewAll/Edit... it still does not hide the Add Comment. What should I do? I really just want the Add Comment back up at the top.


Thanks!

24/6/08 00:23  
Anonymous Tiffany said...

Okay so I don't want my friends names or pictures to show when they leave me a comment and I did that, but I don't want the length of the comments to be so long.

I was wondering if there is a way that I can delete the spaces in the spaces in peoples comments so that the comment area is much shorter?????

email me at xyepprandomyeppx@aol.com asap please!!!

16/7/08 11:05  
Blogger u∃∃l!∃ said...

This is a new question, I haven't seen this one before.

You can do a few things.

You can remove the carriage returns.

table.friendsComments td.profileWidening br {display:none;}

You can modify the font

table.friendsComments * {font-size:8px !important;}

Make sure you do this inside a style block.

16/7/08 18:17  
Blogger Bödi said...

Hey there, it's me again. I'm sorry to bother you again, but can someone please help me?

I'm trying to change the color of the comment text on my band profile (http://www.myspace.com/visitdandelion), but nothing is happening. I changed some details like font size in the block "set font of comment text or it will use same size as friend name" but it's not working.

Also the friends pics at the bottom appear really weird in Internet Explorer.

13/8/08 06:12  

Post a Comment

Links to this post:

Create a Link

<< Home