mySpace band page profile views import into div overlay
mySpace band page div overlay; import profile views into div overlay
I still recommend that instead of this solution, you find yourself a counter, from another site, and place that counter onto your page. But for those who feel they must have the profile-views field, from the default myspace page, you may use this solution.
WARNINGs:
1) This solution puts html in the headline. I expect myspace to quit allowing this at any time (they do not allow this on the standard page). For now it works on the band page.
2) This solution uses syntax with some obvious bugs in it. The headline field (whcih I used) does NOT have enough room to use all of the needed table close/open tags. I did test this in 3 browsers (IE, FireFox, Opera) and they all handled the missing tags by assuming I wanted to close them, when I closed their containing parent.
This solution has been tested on three browsers, and across multiple resolutions and dpi settings. It was tested with my own div overlay (underlay?) strategy.
It is very important that you keep the lines which set the px sizes for font size and line-height. You may change the px values However, I do not recommend changing px to any other sizing method. IF you choose to change the font and/or line-height size you will need to adjust the clip values as well.
Put the following code line in your Headline field
</table></table><table class=H><td><p><table><td>
Put the following code block with your style blocks. The end of the Influences is a good place.
<i class="off">! import Profile Views into Div Overlay
!-code author:Eileen <a href="http://spiff-myspace.blogspot.com/">myspace tutorials and customizing code
!-The below style block is to be used with code in the headline which does the following:
- closes tables, opens table with class H, opens Paragraph, blances open and close tables
</i>
<style>
{! recover block of text next to and under profile image !}
table table table.H, table table table.H table {display:block;}
{! remove what we can of the view pics videos links !}
table table table.H a {display:none;}
{! control hieght of text in our Paragraph !}
table.H p {visibility:visible; line-height:20px; }
{! control height of carriage return !}
table.H p br {display:inline; line-height:10px;}
{!-online now icon removed to prevent it from messing with spacing-!}
table.H p img, table.H div {display:none;}
{! position 60px higher than you want the page views -!}
table.H {position:absolute; top:0px; left:0px; margin-left:0px; width:220px;
z-index:9 !important }
{! clip off everything except the page views. !}
{! you may need to modify the below clip values !}
table.H p {position:absolute; clip: rect(80px, 180px, 110px, 0px); z-index:9 !important }
{! style page views text. Size effects above clip values !}
table table table.H td { color:maroon !important; font-size:15px !important; font-weight:bold !important;}
{! insure our page views can show on top. !}
div.myCoreDiv {z-index:0 !important; }
</style>
Notes on positioning
When positioning the page views:
- Measure from the page center, based on the complete page, not the core div. This element is NOT inside our core div, as our other content is. This means positioning will not be as accurate cross browser/resolution.
- The top px value needs to be HIGHER, than the desired location by the SAME amount you clipped off the top.
Some notes on use of clip
Sets the shape of the element. The valid shape value is: rect (top, right, bottom, left)
I do not believe it works with any other shapes (I had no luck using any other shape)
The element must be positioned absolute for it to work.
No coordinates need to be supplied, however position:absolute must be applied.
I have had luck with clip on element types
image (that is how my online now icon solution works)
paragraph
Supposedly it works on any element where overflow works. (I guess that means it works on tables in FireFox but not in IE :-).
11 Comments:
Hello,
I tried using the code but it screwed up the layout!
You haven't mentioned where the large portion of code should be placed in the profile editor. The small line goes in the header, but where should the rest go?
Thanks in advance.
Ransom,
When you say "screwed up" do you mean that some of the content was no longer visible?
Remove the z-index:-1
That messes up your profile (it worked on mine, but it messes up yours).
I removed it from the example code.
The clip values you need are:
clip: rect(80px, 180px, 110px, 0px)
You also need this:
table.H p td {white-space:nowrap !important;}
And I increased the width to 200.
For positioning, I used this:
table.H {position:absolute; top:120px; right:50%; margin-right:120px; width:200px;
z-index:9 !important; }
That put it above the green writing with the band name.
You can move it if you want.
I did alter the code block in my example a little.
Put the big block at the top of your bio.
If it doesn't work, leave it in, and let me look at your page while the code is there.
Ransom,
I saw a few things on your page, not related to the profile views, that need a fix.
Add this line:
table div.myCoreDiv table.friendSpace div {position:static !important; height:auto; overflow:hidden;}
Make sure it goes in a style block.
MySpace added a new div around the view friends, which conflicts with the code to size the shows.
You also have this strange height:31px div, right after the style block you got from mygen.
I don't known what it is doing.
Your friend and comment div should be about 40px shorter so it does not intersect with the bottom links.
Wow, Eileen you are so helpful.
I've used a lot of your advice, but I'm stuck on a couple of things.
1) How do I make the background of the Profile Views text transparent? It currently has a black block behind the text.
2) Can I make the text any smaller? If I set it to 12px, the text just disappears altogether.
3) Could you help me get it so that the Profile Views sits directly under the text that says "Pictures <<>> Videos"? I'm having trouble getting it right, because of the fact it appears in different locations with different resolutions.
Thanks again!
Any chance of some help on this one, Eileen? :)
Hi Eileen..
Do you know if myspace ever blocked this? Im having troubles.. I do everything as instructed but cannot bring the profile views up..
thanks!
Hi!
Your codes are amazing, as always, thank you!
Btw, is it somehow possible to position it relative to the page div instead of the browser window? Because atm it's moving when the viewer hides/shows his favourites, or resizes the tab holding them...
So it would be nice to position the profile views relative to the core div just like the other elements described in your tutorials!
Hi!
Your codes are amazing, as always, thank you!
Btw, is it somehow possible to position it relative to the page div instead of the browser window? Because atm it's moving when the viewer hides/shows his favourites, or resizes the tab holding them...
So it would be nice to position the profile views relative to the core div just like the other elements described in your tutorials!
Here is an example of what I'm trying to do. He's using a myflash layout, and his profile views clearly positioned in a way that it stays in place when resizing the window or showing/hiding the favourites...
Hi there,
Just wondered if there was any progress on this? Like Chris above me, I am having problems with cross-browser positioning and the 'profile views' not moving or scaling with the div.
It would be fantastic if there were a way to make it all relevant to the div.
Thanks for all your codes by the way!
Hey Eileen. I built my design up from your guide, and have been very grateful for the massive help. This would never have been a possibility without you.
I'm pretty much all done. The problem is, however, I can't figure out how to get the counter back on. We'll as a matter of fact, I can't figure out how to get the profile picture, the counter and the informations in that area to show up. Would you please help me with it? I'd be even more grateful if I could get both my profile picture and the counter on :)
Thanks in advance!
Post a Comment
Due to Excessive Spam, I have turned on comment moderation.
Links to this post:
Create a Link
<< Home