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.

Tuesday, February 13, 2007

mySpace Scroll Comments FriendsComments Box

Put Friends and Comments in Scroll Box

Friends And Comments in Scroll Box Bottom Center
The below code works for either the Band/Artist page OR the standard page.
It does move the whole block (friends and comments) bottom center.
You can re-position them using absolute or relative placement.
<i class=i>
<a href="http://xiii.us/ms/center-friends-and-comments"</a>scroll center friends and comments</a></i>
</td></tr></table>
</td></tr></table>
</td></tr></table>
<div class="myDClassFC">
<table><tr><td>
<table class="off"><tr><td>
<table><tr><td>

<style>
.i {display:none;}
div.myDClassFC {height:400px; overflow:scroll; overflow-x:hidden}
</style>

<i class="i">!-END Block to put Friends and Comments in a Scroll Box-! </i>

If you want scrolling in both directions change hidden to scroll.
Hidden does not work in some browsers.
overflow:none does not work in Safari and some versions of Mozilla.
So I avoid it.

The coding I use above is to achieve the closest to ideal I can in the most common browsers, while still having reasonable appearance in other browsers.


Keep Friends and Comments to the Right, and Put them in a Scroll box


This codes does NOT work on the Band Page. This does work on the Standard Page.
Place this code at the end of the meet section.
<i class="off">!-START Block to put Friends and Comments in a Scroll Box-! 
</i>
</td></tr></table>
</td></tr></table>
<div class="myDClassFC">
<table class="off"><tr><td>
<table><tr><td>

<style>
div.myDClassFC {height:400px; overflow:scroll; overflow-x:hidden}
</style>

<i class="off">!-END Block to put Friends and Comments in a Scroll Box-! </i>

If you only want your comments in the scroll box, you must remove your friendSpace.
Add this code block.
<style>
table.friendSpace {display:none;}
div.myDClassFC br {display:none;}
table.friendsComments br {display:block;}
</style>


Put Only Friends in Scroll Box (Band Page Only) Friends Stay Right
<i class=i>
<a href="http://xiii.us/ms/center-friends-and-comments"</a>friends only in scroll</a></i><i class="off">! Put Friends In Scroll, Band Page -!</i>
</td></tr></table>
</td></tr></table>
<div class="myDivF" >
<table class="off"><tr><td>
<table><tr><td>

<style>
.i {display:none;}
div.myDivF {width:440px; height:200px; overflow:scroll; overflow-x:hidden;}
{!-make friendSpace about 25px less wide than div to accomodate scroll bar-!}
table.friendSpace, table.friendSpace td, table.friendSpace table {width:415px !important}
table.friendSpace table table td, table.friendSpace table table table {width:auto !important}

{!-clean up positioning-!}
div.myDivF {position:relative; top:0px; left:0px;}
table.friendSpace {position:absolute; top:0px; left:0px;}
</style>
You can change positioning from relative to absolute.
Put Only Friends in Scroll Box (Band Page Only) Friends Moved to Bottom Center
<a class="i" href="http://xiii.us/ms/center-friends-and-comments"</a>myspace band page center and scroll friends. code by Eileen</a></i>
</td></tr></table>
</td></tr></table>
</td></tr></table>
<div class="myDivFC">
<table><tr><td>
<div class="myDivFriendsOnly">
<table><tr><td>
<table><tr><td>

<style>
.i {display:none;}
br {line-height:13px;}
table.friendSpace {margin-top:-26px;}
div.myDivFriendsOnly {height:200px; overflow:scroll}
</style>



If you want to add additional styling, to control the size of images and objects in the comment space go here:
Setting and Controlling size of Friends Comments

Full Solution with Styling to Put Comments in Scroll Box
NOTE: This HIDES the friend space, and assumes NO Calendar displayed on page and NO video below the meet area.
IF you have other code in your profile, which alters the table structure, and does not balance open and close tags, then this code has a high probability of not working for you. Balance matters.


Due to the new myspace classes, is no longer necessary to hide (or stack) the default comment space header. However, I still think it looks much better if I use a custom header, and hide the default.
This way I can have the comments scroll, and leave the header in a fixed position.

Place this code at the end of your Meet Section:
<span class="off">!-Start Custom Code To Center and Classify Friend and Comment area--!</span>

<style>
{!-Size outer Comment Div; This is not the scroll piece, this contains the header and the inner div-!}
.myDclassCH {color:darkred; font-size:16px; width:800px; background-color:lightgrey; border:2px darkred solid;}

{!-Size Inner Comment Div; This is the Scroll Div -!}
.myDclassFC {width:100%; height:600px; overflow:scroll; background-color:E2E2E2; border-top:2px darkred solid;}

{!- Position Div; You may change relative to Absolute. Do NOT remove the word position. You may change relative to absolute. -!}
.myDclassFC {position:relative; top:0px; right:0px; left:0px;}

{!- eliminate the default header -}
.friendsComments table, .friendsComments td {background-color:transparent; border:none;}
.friendsComments .orangetext15 {display:none; }

{!^END BLOCK TO eliminate Default Header ^!}

{!-style comment content cells -!}
.friendsComments table table td {border:1px silver solid !important; padding:2px; }

{!-Hide Friend Space, you can remove this line, but you can NOT move the friendSpace out of the scroll box. Hide it, or have it in the scroll box.-!}
.friendSpace {display:none;}

{!-Eliminate space caused by Carriage Returns between tables-!}
.myDclassFC br {display:none;}
{!-restore Carriage Return -!}
.myDclassFC table.friendsComments table table br {display:inline; line-height:10px;}

{!-set Widths for Comment Space-!}
.myDclassFC table.friendsComments {width:100% !important; }
.myDclassFC table.friendsComments table {width:100% !important; }
.myDclassFC table.friendsComments table table td {width:0px !important;}

</style>

<span class="off">!--Close all but one layer of Tables. --!</span>
</td></tr></table>
</td></tr></table>
</td></tr></table>
<span class="off">!!Start Opening same number of tables we closed.!!</span>
<table class="myTclassFC"><tr><td class="text">
<span class="off">!-Create Div to use for scroll box-!</span>
<div class="myDclassCH">
<center>My Friend's Comments</center>
<div class="myDclassFC">
<span class="off">!!Finish Opening same number of tables we closed.!!</span>
<table style="display:none;"><tr><td>
<table><tr><td>
<span class="off">!^^END CUSTOM BLOCK for Bottom Centered Scroll Comment Area ^^!</span>

IF you want to control the size of images, in your comment space, see this article:
Controling size of images in comment space

Labels:

24 Comments:

Anonymous Anonymous said...

thank u soooooooooo much! ur site was the only site out of 150 plus sites that i googled that had this solution to centering my comments (and not my freinds). thanks again for your tips.

14/10/07 19:32  
Blogger Andrew said...

when i put in the scroll box it shows up on the bottom center

how can i get the box to the right when the freinds and comments are usually located?

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

Andrew,
I added the needed code, to keep the friends and comments to the right, and put them in a scroll box.
I added it just under the block which put them center and in a scroll box.

25/10/07 00:48  
Anonymous Cx said...

Re: "Short Cut Links Change Again"

Thank you Eileen! At first I was thinking MySpace just couldn't make up their minds where they wanted the shortcuts menu positioned, or how they wanted it worded - ie: "Shortcuts" vs. "User Shortcuts"

Now I am thinking it is sponsored by Google (or some other client) and they have accepted moneys for this - therefore they are fighting to keep it displayed.

Just a guess...

~Cx

2/11/07 16:00  
Blogger Eileen (aka Coboble) said...

Cx,

I am removing the code to hide the google search from most of my solutions, which used it.
I am going to focus on making its size consistent across platforms.

Now that I have placed a google search (sponsored by google) on my blog, and have a better idea of how this thing works; I understand completely why they don't want it hidden.
It is potential revenue and they may consider it part of the advertisement, and think their terms already prevent its hiding.

I don't know exactly how it works, but I made a few cents based on someone doing a google search from my page. I think it has to result in them eventually clicking on another link which is sponsored, because only one of the several hundred searches done, from my site, resulted in any revenue.

As for why they would be focusing on the shortcuts, that baffles me, but then their methodology of preventing hiding, of various elements, baffles me anyway.

2/11/07 17:46  
Anonymous metarex said...

Is there any way to put the friend space and comments in a scroll box without the use of a div? I have a code changing the background color of the top space above the navbar (which is set to div table td), and it's also affecting the background of the friend space and the comments because they are put in a div. Thanks in advance.

18/11/07 03:03  
Anonymous Ember said...

Hey, firstly thanks!!

Kay well, i've made a default layout, using a the generator from iLyts. And the comment stay that silly orange color. Is there a code that can change it to a color that matches your background?

btw do you know any other good default generators.

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

Ember
Yes,

table.friendsComments table, table.friendsComments td {background-color:transparent !important; border:0px !important;}

That removes all of the existing color and borders and gets you started.
Now you can add whatever color you want.

table.friendsComments {background-color:pink !important}

Make sure you put it in a style block.

I need to add an article for how to style the comment space. I thought I had one, but can't find it.



I do NOT recommend default layout generators UNLESS they generate exactly what you want, with no need to alter the code.
The code is often poor quality code, very hard to modify and subject to failure.
Very few sites have bothered to keep the code updated.

Have you tried the myspace layout generator?
I know it had some bugs initially but they may have worked those out by now.

20/11/07 22:50  
Anonymous Ember said...

No, but i will now.

Thanks! =]

26/11/07 12:04  
Anonymous www.myspace.com/dom_luna said...

i am trying to place a scrolling list of friends comments in one of the boxes of my custom DIV layout and i cant seem to find anything that works.
please message me some answers on here of myspace

5/12/07 13:28  
Anonymous micha said...

First lemme say thx eileen for your great support and advice, I found here.

All works fine with your code, but 2 things doen't work as I want them :-)

There is a fine Line arround the commentsbox I couldn't remove.

How can I chance the textcolor inside the box? Tried but failed.

If u have a minute sparetime my Bandpage is here:

www.myspace.com/michaelkralik

thx again for your support!

micha

6/12/07 11:31  
Anonymous micha said...

Hi,
its micha again, I found solutions for my 2 problems but there are two other problems I have :-)

Tried to get a color the scroller but failed and couldn't manage to get more spare room between the friendz and the comments in the scrollbar...

Bandprofile is www.myspace.com/michaelkralik

nice day Eileen!

6/12/07 13:53  
Blogger Ðale said...

I want a banner like knight rider, or trace adkins. I used your banner trick, but it auto resizes to about 2/3 width when I use your code. Is there anyway to make dreamweaver read myspace?

9/2/08 00:33  
Blogger Dano said...

Eileen, your support is most appreciated.

I am trying to get my Blog listing to live in a scroll box - further entries are starting to push down on the page outside of declared space.

The shows space (adjcent left) is the format I'm trying to achieve with the Blog listing.

I'm lost...

4/4/08 11:41  
Blogger Dano said...

sorry, did include a URL in my rush to post

www.myspace.com/rockstribute

4/4/08 11:43  
Anonymous Anonymous said...

Eileen, You are a godsend for us no0bs...

Please please tell me one thing, why does the bandspace music player always move into my comments section? It's like it's linked to the comments?

The friends and comments scroll works great!!! It's just the music player moved into it with them...lol

Thanks

5/4/08 19:15  
Anonymous Anonymous said...

hey guys, this was very helpfull and the only one i have found that works, this made my profile soo much better

-thanks

9/5/08 17:09  
Anonymous Anonymous said...

YOU'RE THE BEST! =]

21/6/08 06:29  
Anonymous Anonymous said...

YOU'RE THE BEST! =]

21/6/08 06:29  
Anonymous :D said...

hey [: i was just wondering how to get the "Friends And Comments in Scroll Box Bottom Center" code to work with firefox & opera browsers..? it works great with internet explorer, but i'd like to know if there is a way to get the friends & comments to be centered on the other browsers..?

thanks (:

9/7/08 18:16  
Anonymous Felicia said...

this was perfect! just what i was lookin for. thanks :)

18/7/08 08:43  
Anonymous Erin Barnes said...

Hi Eileen- you are so smart... I had a quick question. I've been looking for a code to work for this forever and haven't been able to find one.

I want to do (what I thought) was the simple task of putting a scrollbox under a banner with an HTML code in it so that people can copy it. But, when I make a scrollbox everytime w/ my image, it just copies the picture into the box... is there a code you can recommend that will work? Nothing seems to work. Recommendations?
On photobucket, I have the choice of using an email and IM code, a direct link, an html code and an img code. ALl of them just generate my image in the box though, rather than forming an actual code. Suggestions??

8/8/08 04:41  
Anonymous Camilo said...

is there any way to put just comments on a scroll box?

8/8/08 17:05  
Anonymous Anonymous said...

okay so this may be a dumb question... so I put the scroll box for friends comments in... I used the last code on this tutorial... so now my question is how do you get your comments in there and how do you make it to where you can add comments.

5/9/08 15:48  

Post a Comment

Links to this post:

Create a Link

<< Home