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 27, 2007

mySpace URL userProfileURL style hide image

mySpace URL space, Styling, Hiding, Moving, Replace

Some quick links in case you don't want to read the whole article, and really learn about this space:

How the URL Space is Structured and How it Fits into the Page Structure
Remove the URL Space
Hide only the URL space Header, Keep your URL name
Replace the URL Space with Image

How the URL Space is Structured and How it Fits into the Page Structure
To understand the laying (div, table, cell, class) of this space, refer to this page.
MySpace page showing Layering of Div, Table, Cell, Class
Scroll down to the URL space (left side under the contact table).
Look at the key, to the right.
The table, which is the core of the URL space, is assigned class="userProfileURL".
Notice that the class is not restricted to the table.
Two Rows (tr) have been assigned the same class="userProfileURL").

The url box is built using a combination of these levels:
table table table.userProfileURL
This is the class. This is the best way to address this area for hiding, unhiding, replacing with a picture, and anything else you may want to do with it.

table table table.userProfileURL td: this is where the blue background, which serves as a border, is set.
table table table.userProfileURL table tr or
table table table.userProfileURL table tr.userProfileURL
There are two of these. This is where the white background is defined (this is one of two places where the tr is used to create the background color, the other is the bottom menu. I usually ditch this along with the grey background to the bottom menu like this:
tr {background-color:transparent;}
However, if I have done the above, to ditch the gray behind the bottom menu, and I still want the white that goes with the URL, I can add this line
table table table.userProfileURL table tr {background-color:white}
or just
tr.userProfileURL {background-color:white}

The URL box text is in its own div, this makes it easy to remove
table table table.userProfileURL table div {display:none;}
OR
table.userProfileURL tr.userProfileURL {display:none;}
If you only want to make the text transparent, and do not want to remove the space it occupies, then instead of {display:none} use {visibility:hidden}
Remove the URL Space
<style>
{! ditch the URL and the space it occupied !}
table table table.userProfileURL {display:none;}
{!-eliminate whitespace caused by carriage returns and clear Gifs -!}
table.contacttable {margin-bottom:-20px;}
</style>
IF you have removed your contact table, replace table.contactTable with table.profileInfo, in the above code block. You want to use the class just ABOVE the location where the URL is being removed from.

Hide only the URL space Header, Keep your URL name
<style>
table.userProfileURL table table {display:none;}
</style>

Replace the URL Space with Image
place the code at the top of the about me.
<span class="off">!-Replace URL space with an Image-!
!-if this code stops working check <a href="http://xiii.us/v/">here for myspace code fixes and updates</a>
</span>
<style>table.userProfileURL
{background-image:url("http://i1.tinypic.com/6bc3p13.jpg");
background-repeat:no-repeat; background-position:center center; width:302px; height:30px;}
table.userProfileURL div {display:none }
table.userProfileURL td {visibility:hidden}
</style>
IF the above code does NOT work, and you suspect the reason is an over riding command, which uses the keyword important, than try the below code block:
<span class="off">!-Replace URL space with an Image-!
!-if this code stops working check <a href="http://xiii.us/v/">here for myspace code fixes and updates</a>
</span>
<style>table.userProfileURL
{background-image:url("http://i1.tinypic.com/6bc3p13.jpg") !important;
background-repeat:no-repeat !important;
background-position:center center !important;
width:302px; height:30px;}
table.userProfileURL div {display:none !important }
table.userProfileURL td {visibility:hidden !important}
</style>


Hide URL on Band Page
For the band page it is a little more difficult. I really thought myspace would apply the new classes to the band page by now, which is why I didn't cover this sooner. But the question showed up in a forum, and I ended up posting the code there.

I have a few solutions here, pick your side effects:
The text is easy, it is in a div.
<style>
table table table table div {display:none;}
<style>
The above effects that div in the comment space, that has class commentlinks. You can recover that if desired. I would just assume keep it hidden, as good as an idea as it is, it is more trouble than it is worth.

Now for that thin blue border (which is really a background to a cell).
It is the background coloring at this level
table table table td

If you make it transparent, you effect the general table and the shows, in a way that is not easy to recover.
But you can try it and see what you think:
<style>
table table table td {background-color:transparent}
</style>
OR instead of getting rid of the blue border thing, one can instead just cover it. I think that this solution is actually the best choice:
<style>
table table table table div {display:none}
table table table.contactTable { position:relative; top:0px; margin-bottom:-45px; }
</style>


Thank you for visiting; Have a nice day


hide myspace url bar

remove url space completely


Labels:

20 Comments:

Anonymous Anonymous said...

omg thanks soo much !! finally i found one that work

1/10/07 12:53  
Anonymous Anonymous said...

I completely agree, no other codes i have tried worked except this one im so excited!
-Matt

15/10/07 13:09  
Anonymous Sinbad said...

Thank so much for all your codes and changes you keep up on. I know MySpace is changing all the time and your work arounds have been great. Thank You for all your work. By the way, the picture in the blog area is not working now. I had to just hide it until I can find a solution for it. Thanks Again Friend.

Sinbad

18/10/07 18:44  
Anonymous urbsen said...

this is the first code that i've found, there seems to be not other site which made the URL Box to a subject, nut I still got a problem:
because I with made the contact boc transparent, I can't hide the URL under it.
And the code which removes the url box (display none) removes only a 4/5 of the box and leaves a white stripe.

Have you any idea how to fix this?

29/10/07 05:13  
Anonymous urbsen said...

fortot to sy the code to make background color transparent leaves the problem,
i tried it first, because i dont use borders anyway

29/10/07 05:41  
Blogger Eileen (aka Coboble) said...

urbsen,

Band page or standard page?

On the standard page it is easy, no need to hide it under anything.

On the band page it is more complicated.
There is another option, besides hiding it under the contact table.
I choose the contact table because it has a class.

We can also hide it under the General Info table, but this takes a lot more code, and involves re-creating the header and top two rows of the General table.
But I know how to do that.

However, first I would like to look at your page and see what you are trying to do.

29/10/07 10:09  
Anonymous CJ said...

Great tutorial... but I have been experimenting with it for a while trying to do something extremely simple, and can't figure it out. How on earth would I change the border color from the default blue to red?

5/11/07 23:45  
Anonymous Anonymous said...

Thanks for a great page. I have a problem with hiding the url under contact. I use a fixed width for all modules but the url turns out two pixels wider. It also displays differently in ie and ff. Here's my page

www.myspace.com/martanke

I'd appreciate any help.

6/11/07 11:54  
Blogger Eileen (aka Coboble) said...

Add this:

table table table table {width:auto !important}

IE and FF treat the condition differently, one centers, one flushes one side.

6/11/07 15:42  
Blogger Eileen (aka Coboble) said...

CJ

The blue is assigned as a background to the cell at this level:
table table table.userProfileURL td

I recommend this:
<style>
table.userProfileURL td {background-color:transparent}
table.userProfileURL {border:2px red solid;}
{!if you want to ditch the extra top and bottom space !}
table.userProfileURL img {display:none;}
table.userProfileURL td {height:auto}
</style>

6/11/07 16:05  
Anonymous CJ said...

Oh, sweet. That actually worked. What I originally did to solve this problem was to make the entire background transparent, put a red border around the inner table, then overrode the border of the table inside that by making it transparent. This essentially gave it the same effect. Thanks for showing me the right way to do it. :)

8/11/07 01:25  
Anonymous Anonymous said...

I'm trying to change just the font color in the URL box. I already have the border how I want it and the background transparent. Any help is much appreciated.

18/11/07 22:49  
Blogger Eileen (aka Coboble) said...


{! URL transparent background !}
table.userProfileURL td, table.userProfileURL table {background-color:transparent !important;}


Put it in a style block.

18/11/07 23:17  
Anonymous Daniela said...

Your website is the best website i have ever been on. Thank you so much for this code. I greatly appreciate it <3

8/12/07 19:36  
Anonymous urbsen said...

@Eileen (aka Coboble):

hi, i forgot that blog for a while, now i've seen your answer, thank you!
i want to apologize first for my bad language.^^
my myspace adress is

www.myspace.com/urbsen

if you like, answer me in myspace, as i saw you got a profile there. i would appreciate it because so i can keep my correspondence in line.
greets, urbsen

23/2/08 09:58  
Anonymous Anonymous said...

thank you so much, you're the only ones who've been able to actually help!

26/4/08 22:27  
Blogger Cynikal said...

Hey, I'm looking to center the actual URL within the URL table.

not sure why but at the moment my URL is aligned left inside the cell. it's a band page.

www.myspace.com/cynikalmusic

thanks!! Cynikal

19/6/08 04:02  
Anonymous Anonymous said...

having trouble. this code hides my URL perfectly but it also does away with my customized table i have created at the top, leaving nothing there.

i have narrowed it down and it is in fact this code but i can't figure a way to bring back my custom table at the top. solutions?

myspace.com/deifirretmai

3/7/08 12:08  
Blogger u∃∃l!∃ said...

Yes,

When you create your custom table, do not put it at the same level as the url table.

Close off a few tables, put in your content, then open up the tables you closed.
this takes the custom content up two layers, so it is not effected by code to remove the URL.

i.e.
Put something like this at the VERY END of the bio section:

</td></tr></table>
</td></tr></table>
<div class="myContent>
YOUR CODE HERE
</div>
<table style="display:none"><tr><td>
<table><tr><td>

3/7/08 15:08  
Anonymous Anonymous said...

I'm trying to get rid of the URL space on a band profile and I used the code above, but i cant apply my changes after inserting that code, because my submit and edit buttons disappear.

plz email me slesher0127@yahoo.com

26/8/08 08:16  

Post a Comment

Links to this post:

Create a Link

<< Home