<style>
.friendsComments {display:none}
</style>
You can provide a Link to View/Add Comments by placing this code at the end of your "who I'd Like To Meet" Section:
<a href="http://comment.myspace.com/index.cfm?fuseaction=user.viewComments&friendID=6221">View Comments</a>
And/OR a link to Add a Comment:<a href="http://comment.myspace.com/index.cfm?fuseaction=user.viewProfile_commentForm&friendID=6221">Add Comment</a>
If you want to keep the default header/link stuff, that comes with the comments; it is possible, however tedious. This means that instead of just using display:none on the whole area, I have to hide at a level lower than the level the links reside. This takes MORE code than just creating our own header and link; and gives you less control over how the area looks.
--Hide Comments, leave view all and add comment links
This line:"Showing X of Y Comments (view all/Add Comment)"
Is addressed like this:
.friendsComments table td b
Within that line, the actual view/add are defined as links.
Therefore, I can ditch the "Showing X of Y Comments" and keep the View Add (without the /).
<style>
{! Get rid of inner comment table stuff !}
.friendsComments table table {display:none}
{! render the rest of it not visible !}
.friendsComments table {visibility:hidden;}
{! ditch the friendsComments Header and the space it took up !}
.friendsComments .orangetext15 {display:none}
.friendsComments table, .friendsComments table td {height:auto !important; line-height:0px; border:none; padding:0px; margin:0px;}
{!! USE ONE OF THE BELOW TWO BLOCKS !!}
{! 1:keep the view all and Add Comment links. Postion them left !}
.friendsComments table td b a {line-height:15px; visibility:visible; position:relative; float:left; padding-right:20px; }
{! 2:Instead I may just want to keep an Add Comment Link !}
.friendsComments table td a {line-height:15px; visibility:visible; position:relative; float:left; }
.friendsComments table td b a {display:none;}
{! ditch a little whitespace !}
.friendsComments {position:relative !important; top:-20px !important; margin-bottom:-20px;}
</style>
Notice how much code this takes, compared to the above solution.
For a similar solution for the friend space go here:Options for Hiding Friend Space

6 comments:
genius! thanks a ton :)
i wanted to thank you so much for your comment code....i looked everywhere for a code to hide just comments and not my friends...yes i found a few, but for some reason the all cut my friends in half...but yours didnt...it worked....thanks so much
Hey I must say I was hype to see someone finally had the code to hide the comments and when I realized it worked, it wasn't exactly what I realized I wanted. Is there a way I can put the comments in a scrollbox instead? I have a band page.
If I can, can you please e-mail me at secretservice4life@yahoo.com with the solution.
Oh, and while I'm here and you obviously know what you're doing...if you go to the site you'll see buttons under a video. I created those with the intent of having them link internally to sections on the page but it doesn't work and I appeared to have done all the coding correctly. Is it even possible to do on MySpace?
it didnt work
thanks dude its about time i have tried so many codes this is the only one thats worked.....sweet reliefe
LIKE THE ONE YOU HAVE UP..
And/OR a link to Add a Comment:Add Comment
WHATS THE CODE FOR "MESSAGE ME" & ADD ME?
Post a Comment