javascript functions

Sunday, April 8, 2007

Band Page Hide Friends and/or Comments

With the new classes, this is really the EXACT SAME CODE as used for the non band page (it was not before).

Hide Friends and Comments:
<style>
.friendSpace {display:none}
.friendsComments {display:none}
</style>
Hide only Friends:
<style>
{! Hide Friend Space !}
.friendSpace {display:none}
</style>
Next re-create what you want to keep.
If all you want is a link, to view your friends, create one.
This can be done several ways.
The quick easy way is to add this to the end of the "To Meet" section:
<a href="http://friends.myspace.com/index.cfm?fuseaction=user.viewfriends&friendID=6221">View All Friends</a>
Replace Tom's Friend ID (6221) with your own. You can replace the View All Friends with any text you want.

Or, you can create a custom table, just under your bio section, which neatly displays a link to view your friends, and even a header if you want, very similar to what would be left behind if you did a "Hide all of friend space except header and link".
Put this code at the end of your Bio Section:
<span class="off">!--Create Custom Table Under Meet Table With a Custom Link --!</span>
</td></tr></table>
</td></tr></table>
<br>
<table style="border:1px green solid; width:435px; "><tr><td>
<a href="http://friends.myspace.com/index.cfm?fuseaction=user.viewfriends&friendID=6221">Click Here to View My Friends</a>
</td></tr></table>
<table style="display:none"><tr><td>
<table><tr><td>
<span class="off">!^^END CUSTOM BLOCK ^^!</span>
(Change Tom's friend id, 6221, to your own. Change color and border as desired. For no border change 1px to 0px.)


OR, if you must, you can remove everything except the friends area header and bottom link to view all friends.
But I think it looks much better if you just remove these, and put in your own link (as shown above).

2 comments:

city said...

This code messes up the hotspots (imagemaps)

i.e.

www.myspace.com/markymusicpage

the logo at hte bottom is suppose to be clickable, and so is his mouth.

SalviaFan said...

Thanks a lot for this information i really needed to hide my comments and friends list on myPage

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.