myspace 2.0 adding a custom section
Adding a Custom Section (Div) to myspace 2.0
The cleanest way to do this is to create an App, for your section. However, since this takes more skill then the average myspace user has, I will skip this method and present another method.
This is not that different from how it was done in myspace 1.0, conceptually it is very much the same, and in many ways easier.
First create your desired section inside either your interests OR blurbs section.
Do not add any style into this section, just html (and no inline style inside the tags).
Your open and close tags must map up (this is a new edit rule introduced with myspace 2.0).
First I create my custom Div in my Blurbs (or Interests) section
<i class=i>START CODE to to create custom div
Code Author:Eileen; for terms of use see page:
<a href="http://xiii.us/v/">MySpace 2.0 Code by Eileen</a>
<a href="http://xiii.us/eGen/mpSkin.php"> Music Player Skins</a>
</i>
<div class="myidiv1">
Custom Div Content Here
</div>
<i class=i>END Custom Div</i>
I place this code at the end of my meet. This code could go anywhere in my blurbs.If you save at this point, my links and comments will show. We will hide those in our next step.
Next we add in the needed style to style and position our custom div
This code must go into the css area, in the customize profile section.
{! style to position custom div myidiv1 !}
.i {display:none;}
{! change the 400 to the height of your div !}
div.column1 {position:relative;
padding-top:400px;}
div.myidiv1 {position:absolute;
top:0px; left:0px;
height:400px; width:100%;
font-size:13px;
color:magenta;
font-weight:bold;
font-family:comic sans ms;}
{! alter above style values as desired !}
{! end style for div myidiv1 !}
Of course you can alter the values as desired.You may also have elements within your div that need style. That style will also go into this section.
If you wanted to put this section at the bottom of the right column, you could instead use this style block:
{! style to position custom div myidiv1 !}
.i {display:none;}
{! change the 400 to the height of your div !}
div.column1 {position:relative;
padding-bottom:400px;}
div.myidiv1 {position:absolute;
bottom:0px; left:0px;
height:400px; width:100%;
font-size:13px;
color:magenta;
font-weight:bold;
font-family:comic sans ms;}
{! alter above style values as desired !}
{! end style for div myidiv1 !}
If I wanted to put the section between two other sections, within the right column it is slightly more complicated, unless you want the section directly above or under the blurbs. In this case you could isolate the outer most div of the blurbs, and use that as your positioning reference.
When deciding where to put the code for your custom div; if possible, choose a section which is in the same column as the area where you want to place this custom section.
If you are going to place the section somewhere other, then the top or bottom of the same column as the interests or blurbs; accurate positioning is tricky (and subject to easily breaking).
My example will assume that we want to place the content in the same column as my blurbs.
I am using the layout that has two columns.
The right column is in class column1 (it has other class names as well, but column1 addresses it uniquely.)
If you are not using the same layout, your column may have a different class.
I may add more examples later, you can request a specific scenario if you want.
25 Comments:
YOU HAVE SUCH A GREAT WAY OF FIXIN UP MYSPACE 2.0 , I DIDN'T THINK I WAS GONNA FIND TO MUCH MORE FOR 2.0 , AS FAR AS ONLINE ICONS , N CONTACT BOXS , BUT SURLY I GAVE THE NET ONE MORE LOOK BEFORE I STOPED HA, I GOT THIS SITE FOR U , N IT REALLY IS AMAZING HOW WELL U HAVE ACCOPLISED IT ALL , THE ONLY THING IS I'D LIKE TO SAY I'D LIKE TO C SOME COWBOY , N COWGIRL , WESTERN STYLE ITEMS ON HERE SOON IF THAT MAY BE POSSIBLE , THANKS FOR THE STUFF U HAVE AVAILABLE , GREAT JOB , LATER ......
Cowboys?
Do you have some cowboy art/pictures I can use?
YES I HAVE SOME COWBOY IMAGES U CAN USE ,
HOW CAN I GET THE COWBOY IMAGES TO U ?
You can put them some where like photobucket, or tinypic, and then post the links to them here, if you want.
I'm trying to use this code to put a heading above an application module. So far, yours is the closest I have come to getting this how I want it. I was able to use the first code and get the heading outside the blurbs section at the top but I tried the bottom code so I could put it under my blurbs and then have my application below that but it will only allow the new words to be in my actual blurbs. Dunno if I am doing something wrong or not but any help would be appreciated. I have a top friends slider application on there but I hid the name of the application so it would look more nice and clean. If you don't mind to email a reply if you do happen to have one to cottoncandypantalones@yahoo.com. It can be emailed to my email or that is also my myspace email. Thank you so much. You're doing a fabulous job at these codes!!!
i would like to be able to have it on the left side using my music section to place the div in. how would i do this?
stacey,
You can not place a div inside the music section, because myspace gives us no place to create this input.
We can only apply style.
There are a few style options that allow you to create content.
Is it text, or an image?
If it is an object, I don't think there is a way to make it work (due to what myspace filters)
However, the before and after pseudo elments can be used to place test before or after any section.
The background-image property can be used to place content that can be expressed as only an image.
This does not mean there is not a way to get a custom div above or below your music section.
However, to do this either your interests or blurbs would need to share a parent element with the music section.
This way, that parent element could be assigned as the position reference, for a new div.
please view my page for reference if you can. my url is myspace.com/bustage
when i use the code above in the interest section; music. it puts the "music" subheader on the bottom area. i messed with the positioning some. here is what i used.
{! style to position custom div myidiv1 !}
.i {display:none;}
{! change the 400 to the height of your div !}
div.column1 {position:relative;
padding-top:480px;}
div.myidiv1 {position:absolute;
top:0px; left:0px;
height:400px; width:100%;
font-size:11px;
color:white;
font-weight:regular;
font-family:arial;}
{! alter above style values as desired !}
{! end style for div myidiv1 !}
i was trying to have the word music above it but it didn't work when i changed position etc.
is there a way to create it not on the right side of the page? rather not column1 or w/e but the left?
ultimately that is what i am trying to accomplish.
are you talking about the music section that is inside the interests section?
For this, you don't want to use the custom section strategy I describe here, because you are inside a section, where you can easily add content.
Can I use that image, the one in your interests music section, to make a music player skin out of?
To put a custom text header in your interests music section
put this into the css area (alter style values to suit your taste):
{! hide default interests music header !}
li.interestMusic h4 {display:none;}
{! style custom interests music header !}
li.interestMusic div.myInterestsMusicHeader {text-align:center; font-size:13px; color:magenta; font-family:comic sans ms; font-weight:bold;}
And put this at the top of your interests music data section (before your content)
<div class="myInterestsMusicHeader">My Music</div>
yeah, use it!! ;D
ps thanks so much
how about centering it under the two tables? like under interests and about me (that are next to each other) and over the friends or comments or whatever is underneath the two tables?
That is possible (and not too difficult) as long as each is at the bottom of the column they occupy.
You would use the element that is parent to the two columns.
To force that element to act as the positioning reference, you would give it the position:relative style.
Then you would give it padding, on the bottom, the height of your custom div.
You could then create your custom div inside your blurbs.
Then position it at the bottom of the parent div, being used as the reference.
My MySpace layout has three columns and I need a box in the third... (In the first I have interests... the second Blurbs) My third is empty at the moment and I need a box that I can fill in like the interests box... Help..!
I have a quick quistion and It would be greatly appreciated if anyone could help me out, I can't seem to figure out how to get the positioning right for a div I need on the left side of my layout under the music player, but so it doesnt overlap my text on the right. Take a look, http://www.myspace.com/indianaartdesign if anyone can repost the code with the correct allignment and positioning I would be very greatful. Please?
hi, for some reason it also says "Custom Div Content Here" over the Sponsored Link at the top of the page... how can i get rid of that?
Is there a way to make my own "module" in Myspace 2.0, to move around and use for custom code?
my page has 2 columns and a bottem one, i want to ad it too the bottom one how do i do that?? url:http://www.myspace.com/hollywood-vintage
Greetings. This is a good solution to intert a custom div But I have a QUestion. I'm trying to do a full CSS Composition but Doesn't behave as it must. I have the parameters set on the CSS Section with widths and auto margins and the margins DOES NOT APPLY!
I'd like to have an answer because i want to make a custom layout for my myspace profile.
Thanks in advance
Greetings Again. Well, For One side I solved the topic than I asked before. But I still have a problem, I need to apply Hyperlinks but Inside the custom section they are properly rendered in source code but ther are not working. Is there a way to make them Work? Thanks in Advance
Hey, I have a DIV layout, and I use www.Mixpod.com for my music player. the problem is that is doesnt show now that I have a DIV layout. I tried to add it to the layout, but it jacked it all up. So then I just tried to add a song from myspace music to my profile, and it doesnt play that either. How can I fix the layout so I can put my Mixpod music player in there and have it working? If you can write me back on my myspace ( www.myspace.com/ya_ride_or_die_chick ) I would greatly appreciate it. Thanks!
If you add any kind of custom content, including some sort of custom music player, you can isolate it from the effects of other code, by wrapping it in its own div, and insuring that div has a class, and you apply all needed style to that class.
(or you can just give the custom object a class, but that is harder to explain)
<div class="iObj1">
code provided for the object here
</div>
Now if you are using 2.0 add code to the css section to control the style of the
included object.
If you are using 1.0 put this inside a style block or include style tags
If you are using 2.0 do NOT include the style tags
<style>
div.iObj1 {position:absolute; top:Ypx; left:Xpx}
div.iObj1 {other style you may need to get it to look how you want}
</style>
Y is distance from top of you custom div overlay.
X is distance from left.
You custom div overlay must have position (either position absolute or position relative) for it to act as the container for the included object.
You must place the code for the included object before you close the div tag for the custom div.
Can you put a header on the custom module??
Hi, I have a 3-column layout & I would like to cover the third [since it's empty] with a module of my own; a sort of a 2-column "about me" module..
Is that possible? Any suggestions?
Thanks in advance.
I had Myspace 1.0 but I switched to 2.0 ;
Now it won't let me center my about me.
I tried : the center thing And it doesnt work.
I was also told to put it HTML in the CSS but that also doesnt work.
Please help me.
-Lauren.
Post a Comment
Due to Excessive Spam, I have turned on comment moderation.
Links to this post:
Create a Link
<< Home