javascript functions

Sunday, April 8, 2007

Band Page Friends and Comments

The thing I liked about customizing the Band Page (over the standard page) was that it is much easier to separate the friends from the comments.
Well, that was before they introduced the new classes.
Now Getting the two into separate classes has already been done by mysapce, and there is no need to do it myself.
This change also made it easier to write code which worked well on both the regular page and the artist page.

Therefore, I recommend using the following codes (written for the standard page and tested on the pand page)

Hide Friends and Comments
Hide Friends
Hide Comments




I was really proud of myself when I had figured out how to get the friends into their own class, prior to myspace introducing the friendspace class. But now it is moot. So why do I hang onto my old code? I suppose there is a chance the classes will go away? Not likely. And if they do there will be so many other changes that I am certain this code will no longer work.
=============My Old Stuff is Below, Don't use it. It works, but there is really no longer a need for the code to be this complex ================================================================
Unlike the standard page, I can put the friends into their own class.

If you want to hide BOTH the friends and comments, do this (code goes at Bottom of Bio section):
</td></tr></table>
</td></tr></table>
<div style="display:none;">
<table><tr><td>
<table><tr><td>
<table><tr><td>
If you want either the view friends link, or the add/view comment links I recommend and you want them under the meet section (where the friends and comments are being removed from) I recommend starting with the below block.
If you prefer to put these links in a top menu go here: adding a custom top menu

If you want the links in the location the friends and comments have been removed from :
Code to hide friends and Comments and create links in their place:
</td></tr></table>
</td></tr></table>
<span class="myFriendlink"><a href="http://friends.myspace.com/index.cfm?fuseaction=user.viewfriends&friendID=6221">View All Friends</a></span>
<br><br>
<span class="myCommentLink">
<a href="http://comment.myspace.com/index.cfm?fuseaction=user.viewComments&friendID=6221">View Comments / Add Comment</a></span>
<div style="display:none;">
<table><tr><td>
<table><tr><td>
<table><tr><td>
You can add a style block to style the links.

Here is some style code you can use. You probably want to change the colors and sizes. This block can go either above or below the block added in the previous step.
<style>
.myfriendLink a {color:purple; font-size:20px; background-color:yellow; float:left}
.myCommentLink a {color:hotpink; background-color:lightgrey; float:left}
</style>


If I do not want to remove BOTH friends and comments, but want to remove only ONE of them, change location, or change how they look;
I start by placing this at the bottom of the band bio section: (This does NOT go between style tags)
Code Block A
</td></tr></table>
</td></tr></table>
</td></tr></table>
<div class="mydclassfc" style="width:500px; visibility:visible; border:1px silver solid; margin:1px ">

<table class="mytclassf" ><tr><td>
<table style="display:none"><tr><td>
<table><tr><td>
(You can alter the color, width and margin px values, to suit tastes)

The above block does the following:
1) Close 3 layers of table/row/cell
(we can instead choose to close 2 or 4 depending on the desired behavior, if I do NOT want to move the friends bottom center, but want to keep them right, I only close 2 layers).
2) Open a Div which will contain my Friends and Comments but not my bottom menu unless I choose to close 4 layers in step 1.
3) Open 3 layers of tables.
4) assign a class to 1st table opened in step (3) this class will hold my friends, but not my comments.
My friends are a class of their own, but also a subClass of the friend and comment class (the class I name mydclassfc).

What I do next depends on what I want to do. I have several options:
1) Keep comments and hide friends: hide friends show comments
2) Keep friends and hide comments: hide comments show friends
3) Move friends and comments as a block (Use solution for hiding friends, but don't hide the friends, and then add absolute or relative placement to the mydclassfc.)
4) Move friends to one part of page, and comments to another (I have done this, but I have not written it up yet, for the band page. It is actually easier to do on the band page than the standard page. But it does have limitations)
5) Put friends in scroll box (without comments? Possible, but I don't see a real need for this. Do others?)
6) Put comments in scroll box (without friends?, This I see a demand and use for. However so far my tests are not showing that this is going to happen. I got it to work in one browser, but not in both IE and FF)
7) Put both in scroll box. (Use comment in scroll box solution and skip the part to hide the friends)

About Me

My Photo



My name is Eileen.
I live in Corvallis Oregon (for now).
My job is moving to Austin Texas and I may move with it).
I have Aspergers (a type of high functioning autism).
In my case it is not a disability; it gives me as many strengths as it does weaknesses.
However, communicating with Neuro Typicals is a challenge for me. So if we do not understand each other, it is not because I dislike you, think you are stupid, or anything else negative. We just think differently.