I do not have time to troubleshoot people's code. (Hopefully I will again in the future).
I do not have much time to answer questions (but if it is a quick answer, that only takes me a few minutes, I will try to answer).
I really recommend the following site, for myspace customizing questions: Official Myspace Customizing Forum
That is the most reliable source, and the people I know who enjoy helping, and are quite good at it, tend to hang out there.

Sunday, March 15, 2009

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.

7 Comments:

Blogger Hapi said...

hello... hapi blogging... have a nice day! just visiting here....

3/6/09 10:30  
Anonymous Anonymous said...

is there a code to show all comments

8/6/09 21:34  
Anonymous Anonymous said...

omg please help !!!
my upcoming events are away!!!?? =S

Please help

xcarmen66@yahoo.de

9/6/09 17:33  
OpenID Daniel15 said...

There's an even easier way to do this - When you're in the customise profile section, you can edit the settings of the comments module. There, you can choose how many comments to display (1 - 50) :)

18/8/09 04:00  
Blogger tagskie said...

hi.. just dropping by here... have a nice day! http://kantahanan.blogspot.com/

6/10/09 23:30  
Blogger James praker said...

Great code to upgrade of Myspace and this post is just like a magic i personally feeling so good because i am a regular MySpace user!
so, thanks for helping me a lot..
- J.
Web Designing

1/11/09 22:47  
Anonymous Web Solutions said...

Thanks for sharing.

15/12/09 04:35  

Post a Comment

Due to Excessive Spam, I have turned on comment moderation.

Links to this post:

Create a Link

<< Home