myspace 2.0 show only last comment
Show only Last Comment in Myspace 2.0
I highly recommend upgrading to myspace 2.0. This task, and most others, are so much easier in myspace 2.0
Place the following code in the CSS area of Customize Profile:
{! show only most recent comment code by Eileen xiii.us !}
div.commentsModule div.moduleBody ul.moduleList li {display:none;}
div.commentsModule div.moduleBody ul.moduleList li:first-child {display:block}
.i {display:none;}
{! end code to show only most recent comment !}
If you found my code useful, you can help others who search for this solution in google, by adding the following block to your about me or interests area.
This will not show a visible link on your myspace page, it will only be visible to those who read your code.
<a class=i href="http://xiii.us/ms1/">myspace 2.0 show only last comment</a>
If you want to show fewer then 50 comments, but show more then one, it is a bit trickier.
Myspace removes any attempt to use the + within the css area, which would have been idea for this task.
IE does not recognize the nth child selector and most people use IE.
If you want to show X pixels worth of comments, that is easy.
This is still superior to the similar technique used in myspace 1.0 because we can really start measuring at the top of the actual comments, eliminating the need to know the height of anything above the actual comments.
The following code will show 200px worth of actual comments (not including any of the headers).
{! show fewer then 50 comments code by Eileen xiii.us !}
div.commentsModule div.moduleBody ul.moduleList {height:200px; overflow:hidden;}
.i {display:none;}
{! end code to show only most recent comment !}
Change the 200 to the px height of comments you want to show.