{"id":172,"date":"2006-04-18T08:55:48","date_gmt":"2006-04-18T16:55:48","guid":{"rendered":""},"modified":"2016-05-25T23:34:33","modified_gmt":"2016-05-26T06:34:33","slug":"hacking-myspace-layouts","status":"publish","type":"post","link":"https:\/\/mikeindustries.com\/blog\/archive\/2006\/04\/hacking-myspace-layouts","title":{"rendered":"Hacking A More Tasteful MySpace"},"content":{"rendered":"<div class=\"update\"><strong>UPDATE:<\/strong> (10\/15\/07) If you&#8217;re noticing jumbled text in Firefox while using this layout, simply change <code>\"line-height: 1px\"<\/code> to <code>\"line-height: auto\"<\/code> in the <code>body<\/code> section of the CSS.<\/div>\n<p><span class=\"rightinline\" style=\"width: 266px; float: right; font-size: 10px; text-align: center; font-weight: bold; line-height: 1.3em\"><a href=\"http:\/\/www.myspace.com\/mikeindustries\" target=\"_blank\" class=\"nocheck\"><img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/images\/inline\/myspace.jpg\" width=\"266\" height=\"203\" alt=\"\" border=\"0\" style=\"display:block; margin-bottom: 5px\" \/><\/a>A guide to creating a more tasteful MySpace layout. Sample images and CSS are included at the bottom. End product: <a href=\"http:\/\/www.myspace.com\/mikeindustries\" target=\"_blank\">myspace.com\/mikeindustries<\/a><\/span>The <a href=\"http:\/\/www.danah.org\/papers\/AAAS2006.html\" target=\"_blank\">social phenomenon<\/a> that is <a href=\"http:\/\/www.myspace.com\" target=\"_blank\">MySpace<\/a> is one I don&#8217;t fully understand, and yet, one I must fully respect.  In fact, with over 50 million unique users, it is something <em>everybody<\/em> must respect.  Any website which rolls up that amount of usership is doing something very, <em>very<\/em> right, and no matter what your thoughts on it as a vehicle for your own expression are, you must give it its full due for what it is to seemingly everyone else.<\/p>\n<p>Several weeks ago, I finally signed up for an account, and within seconds I was instantly put-off by what had been created for me: a hastily-designed &#8220;profile page&#8221; with uninspired colors, misaligned tables, and a mish-mash of extraneous cruft and design elements which made this feel more like a halfway house than a &#8220;home&#8221;.  Now, granted, I am a designer by trade so my tolerance for this stuff is orders of magnitude lower than most of the population, but clearly, this was not a place I even felt comfortable having my name on.<\/p>\n<p>So with the default home page this underwhelming, what is a MySpacer to do?  Customize, of course.  One of MySpace&#8217;s greatest features is its ability to let you skin your own home page.  Unfortunately, 99% of the customizations I&#8217;ve seen are chalkboard-screechingly awful, but what could a MySpace home page look like if some actual design thought went into it?  That is the question I sought to answer.<\/p>\n<p>But first &#8212; as <a href=\"http:\/\/www.7nights.com\/asterisk\" target=\"_blank\">Keith Robinson<\/a> asked me when I first showed him what I was doing &#8212; &#8220;Ummm, why?&#8221;  The answer is twofold.  First, I love a design challenge.  Second, we&#8217;ve been building a lot of new social components into <a href=\"http:\/\/www.newsvine.com\" target=\"_blank\">Newsvine<\/a> over the past several weeks and I wanted a good reference point for what is already done well online and what could be improved.<\/p>\n<p>So without further ado, on with the surgery&#8230;<br \/>\n<!--more--><\/p>\n<h3>Sizing up the beast<\/h3>\n<p>The first thing I did was search Google for sites which specialized in MySpace customizations.  Turns out MySpace customization is a cottage industry unto itself.  Unfortunately, the first twenty sites I found produced nothing but crap.  Granted, perhaps it is crap that people want, but I wanted to do better.  There were mostly instructions on how to tile Ricky Martin backgrounds behind your Christina Aguilera autoplay music player, but nothing close to the <a href=\"http:\/\/www.thebignoob.com\/Blog\/355\/myspace-profile-hack\" target=\"_blank\">brilliant piece of work Keegan Jones threw together<\/a> a few months ago.<\/p>\n<p>The problem with Keegan&#8217;s hack, however, is twofold:  a) it violates MySpace&#8217;s Terms of Use by blocking advertisements, and b) it produces essentially a static, non-functional page by replacing all of MySpace&#8217;s code with your own.<\/p>\n<p>What we really want to do here is simply decrappify our home page as much as we can without violating the Terms of Use and replace all evil design elements with a cleaner, more professional look.  We also want to maintain MySpace&#8217;s actual HTML so our page is functional and not just a facade hiding our grotesque underbelly.<\/p>\n<h3>Enter the dragon<\/h3>\n<p>Like a biologist over a petri dish, I pulled out my copy of <a href=\"http:\/\/culturedcode.com\/xyle\/index.html\" target=\"_blank\">XyleScope<\/a> and began observing the organisms at play within the MySpace profile page.  How difficult was this going to be?  Was everything coded semantically?  Did the company provide enough hooks in the form of CSS classes and IDs for users to easily style most elements on the page?  Was anything &#8220;off-limits&#8221;?  Over the next several hours, I slowly identified every element on the page by its programmatic hook.  The good news was that a lot could be done here.  The bad news was that the CSS was going to be ugly, ugly, ugly.<\/p>\n<p>If <a href=\"http:\/\/www.mezzoblue.com\" target=\"_blank\">Dave Shea<\/a> built the <a href=\"http:\/\/www.csszengarden.com\" target=\"_blank\">CSS Zen Garden<\/a>, this was going to be the CSS Weed Patch; a block of code so semantically twisted that it would turn <a href=\"http:\/\/www.joeclark.org\" target=\"_blank\">Joe Clark<\/a> straight.<\/p>\n<p>It was upon thinking of this analogy, however, that I really started to get psyched about this project.  After all, it doesn&#8217;t take a genius to make <a href=\"http:\/\/csszengarden.com\/?cssfile=\/069\/069.css&#038;page=0\" target=\"_blank\">perfect code dance<\/a>.  But it would be a real accomplishment to make a pig do the <a href=\"http:\/\/en.wikipedia.org\/wiki\/Pachanga\" target=\"_blank\">pachanga<\/a>.<\/p>\n<h4>Step One &#8211; Learning the r001z<\/h4>\n<p>There are certain things you can&#8217;t do on MySpace. Autoplaying &#8220;Maneater&#8221; is perfectly ok apparently, but these things are not:<\/p>\n<ul>\n<li>Using the # sign anywhere in your CSS.  This is to avoid you messing with ID&#8217;ed elements, but its brute force removal also precludes you from properly specifying hex values.  Instead, you must do things like <code>color: FFFFFF<\/code> or <code>color: white<\/code>.  Note also that because the pound sign is missing, you cannot use shorthand like <code>color: FFF<\/code>.<\/li>\n<li>Specifying style rules for iframes.  Apparently, this is to keep you from hiding MySpace&#8217;s banner ad, although it&#8217;s easy to do this anyway without touching the iframe.  Don&#8217;t do it though unless you want your profile deleted.<\/li>\n<li>Placing comments in your CSS file.  If you mark up your CSS file with standard (<code>\/*whatever*\/<\/code>) CSS comments, they will get stripped.  Other styles of commenting &#8220;kind of&#8221; work, like double brackets (<code>[[whatever]]<\/code>) but they end up messing up the CSS code in some browsers.  Interestingly though, downlevel-revealed (but not downlevel-hidden) IE conditional comments work just fine. We&#8217;ll use these in our hack in fact.<\/li>\n<li>Using shorthand for border styles.  If you try something like <code>border: 1px solid FF0000<\/code>, it will not work in Firefox.  Interesting, it seems to work if you use a keyword like <code>red<\/code> instead, so this probably has something to do with the hex issue mentioned above.  The unfortunate workaround is to always specify your borders in longhand.<\/li>\n<li>Putting CSS anywhere but right smack dab in the middle of the content.  You&#8217;d think it would be easy for the MySpace crew to let you specify your style rules in the <code>head<\/code> element where they belong, but nope, you have to stuff them into the &#8220;About Me&#8221; module which sits in the middle of the HTML.  The result is an unavoidable FOBUC (or &#8220;Flash Of Butt-Ugly Content&#8221;) before your style rules kick in, but oh well.  Such is life in the ghetto.<\/li>\n<\/ul>\n<h4>Step Two &#8211; Visualizing The Finished Product<\/h4>\n<p>As I saw it, there were mainly four things I could do here: a) clean up all of the margins, padding, spacing, alignment, type, and color issues, b) create a new background image and associated design theme, c) make a branded header, and d) add some extras with the magic of CSS.<\/p>\n<p>I felt a <a href=\"http:\/\/www.cameronmoll.com\/archives\/000024.html\" target=\"_blank\">Wicked Worn<\/a> theme a la <a href=\"http:\/\/www.authenticboredom.com\" target=\"_blank\">Cameron Moll<\/a> would be pretty killer, so I mocked it up in Photoshop using various weathering techniques until it looked sufficiently unlike any other page I&#8217;d seen on MySpace.  I then planned out how each piece of the design could be shoehorned into the Weed Patch with the most convoluted of coding schemes.<\/p>\n<h4>Step Three &#8211; Getting the ducklings in a row<\/h4>\n<p>The third order of business was to create CSS entries for everything I needed to style and group them into logical categories so I didn&#8217;t have to jump all over the place during the decrappification process.  In a normal web design workflow, you have something like this:<\/p>\n<p><code><br \/>\n.modules {<br \/>\n\tbackground-color: #fff;<br \/>\n\tpadding: 15px;<br \/>\n}<\/p>\n<p>.modules p {<br \/>\n\tcolor: #aaa;<br \/>\n\tline-height: 150%;<br \/>\n}<br \/>\n<\/code><\/p>\n<p>In MySpace&#8217;s world, it&#8217;s more like this:<\/p>\n<p><code><br \/>\ntable table table table td, table table table table tbody td {<br \/>\n\tbackground-color: transparent !important;<br \/>\n\tpadding: 15px !important;<br \/>\n}<\/p>\n<p>table table table table td font, table table table table tbody td font {<br \/>\n\tcolor: aaaaaa !important;<br \/>\n\tline-height: 150% !important;<br \/>\n}<br \/>\n<\/code><\/p>\n<p>That&#8217;s right.  Almost everything you can do during the customization process relies on styling various nesting levels and hoping they don&#8217;t affect other areas of the page which may be similarly nested.  In many cases, you have to go back and override the conflicting nests by specifying additional, more specific rules.  And to top things off, the elements on the page which <em>are<\/em> &#8220;properly&#8221; classed are given names like <code>lightbluetext8<\/code> and <code>orangetext15<\/code>.  These are the sorts of things that give <a href=\"http:\/\/hesketh.com\/schampeo\/\">Steve Champeon<\/a> heart attacks.<\/p>\n<p>By the time your CSS is properly grouped though, you&#8217;re all ready to start customizing.<\/p>\n<h4>Step Four &#8211; Cleaning Up The Mess<\/h4>\n<p>Explaining all of the style rules associated with the general janitorial work performed here would take weeks, so since I&#8217;m providing my CSS file, just go ahead and examine them there if you&#8217;re interested.  Everything is clearly commented and explained so you don&#8217;t have to go through the same long process I did.<\/p>\n<h4>Step Five &#8211; Injecting The Design<\/h4>\n<p>There are only four images used in the Mike Industries MySpace design layout.  The first is the background image: an aged piece of parchment, centered horizontally and tiled vertically in a seamless manner.  <\/p>\n<p>The second is the branded header.  <del>This header unfortunately only works in non-IE browsers for the stupidest of all possible reasons: there is no <code>doctype<\/code> provided on any MySpace pages.  This <code>doctype<\/code> problem was probably the single biggest stumbling point in the entire project.  There were certain really weird things happening in IE at every turn and I had no idea what was going on.  The branded header is positioned absolutely with a width of 100% and for some reason in IE, it was inheriting the width of the table it was in, despite the fact that the table was not even positioned relatively at all.  Such weirdness!  I was beside myself for hours, until I finally noticed the lack of a <code>doctype<\/code>.  These are things you just don&#8217;t think about when you write good code.   By the way, if anyone can figure out a way around the IE <code>doctype<\/code> problem, let me know and I&#8217;ll post it.  Specifically a way to get the branded header to show in IE.  Until then, we have a graceful workaround below.<\/del> <ins>Thanks to a negative margin solution by <a href=\"http:\/\/www.danielstout.net\/\" target=\"_blank\">Daniel Stout<\/a>, the branded header now works in PC IE!<\/ins><\/p>\n<p>The third image is the &#8220;Contacting Mike D.&#8221; table.  We&#8217;ve gone ahead and replaced MySpace&#8217;s default ugly GIF buttons with a background image that sits behind the now transparent button set.  I first saw this on <a href=\"http:\/\/www.justwatchthesky.com\" target=\"_blank\">Ryan Sims&#8217;<\/a> MySpace page but have since seen it elsewhere as well.<\/p>\n<p>The final image is my name: &#8220;Mike D.&#8221;.  This was accomplished using a brand new image replacement technique I&#8217;m unveiling today:  <strong><em>MIMSIR<\/em><\/strong> or &#8220;Mike Industries My Space Image Replacement&#8221;.  The technique essentially takes a block level element (a span, in this case, with a <code>display: block<\/code> property), sets a static height, applies a background image with custom rendered text, turns the browser text the same color as the background, and shrinks it down to 1 pixel (effectively hiding it).  The technique is intentionally gritty because this is a gritty place.<\/p>\n<h4>Step Six &#8211; Coddling IE<\/h4>\n<p>Since Internet Explorer (even version 7) is such a pile, we make a few quick hacks in our css to basically chew its food for it and rub its tummy to keep it from puking all over the place.  <del>There are two things IE can&#8217;t handle about our hacks:  a) our newly aligned and nicely padded tables, and b) our branded header.  Both are likely due to IE&#8217;s rendering behavior in the absence of a <code>doctype<\/code> and both will be handled by a downlevel IE conditional comment at the end of our CSS code.  To hide the fact that the table spacing isn&#8217;t quite right, we apply a new background image that is the same color as the tables and turn off the borders.  This effectively hides the boundaries of the tables altogether and looks just fine.  To get around the branded header issue, we simply don&#8217;t show the header and slide the rest of the content up to eliminate the void.<\/del> <ins>Thanks to Daniel&#8217;s header solution above, and my own ridiculously hacky solution for getting the tables to align perfectly, we&#8217;re now 100% IE compliant! Not sure I&#8217;m proud of that, but ok. If you&#8217;ve ever set a &#8220;strong&#8221; tag to display:block and given it a width, you&#8217;ll know the extent of this ridiculousness.<\/ins><\/p>\n<h4>Step Seven (The Final Step!) &#8211; Add CSS Extras<\/h4>\n<p>When I first created my MySpace profile page, I was given one &#8220;friend&#8221;.  Some guy named &#8220;Tom&#8221; who apparently started MySpace and can now buy and sell my entire family with what he makes in one day.  Well done Tom, and I&#8217;m happy you&#8217;re my friend, but having one friend who isn&#8217;t even really my friend is kind of lame, no?  Especially when there&#8217;s a big headline on my page that says &#8220;Mike D. has 1 friends.&#8221;  How am I going to be one of the l33t d00dz on teh intarweb with only one friend?<\/p>\n<p>Most people would take the obvious step and send e-mails to all of their friends asking them to join their buddy list, but why do that when you have the power of CSS generated content!  Using this simple CSS rule, I was able to increase my friend count from &#8220;1&#8221; to &#8220;1 billion&#8221; in about ten seconds:<\/p>\n<p><code><br \/>\n.redbtext:after {<br \/>\ncontent: \" billion\";<br \/>\n}<br \/>\n<\/code><\/p>\n<p>This is really great when you&#8217;re just getting off the ground, but it also scales very well.  Now that I have 29 meatspace &#8220;friends&#8221;, my MySpace count shows &#8220;29 billion&#8221;&#8230; a number surely no CSS-ignorant friend-whore can top.<\/p>\n<p>As one last cherry on this project, I thought I&#8217;d throw in another bit of CSS generated content.  There&#8217;s a line at the top of everyone&#8217;s profile that says &#8220;_____ is in your extended network&#8221;.  I could never really figure out what that means since everyone in the entire MySpace population appears to be in my &#8220;extended network&#8221; so I thought I&#8217;d at least make it sound a little more dramatic with the exclamation &#8220;OMFG!&#8221; before it.  This can be accomplished with the following CSS rule:<\/p>\n<p><code><br \/>\n.blacktext12:before {<br \/>\ncontent: \"OMFG! \";<br \/>\n}<br \/>\n<\/code><\/p>\n<h3>Final thoughts<\/h3>\n<p>So there you have it.  How to hack your way to a more tasteful MySpace profile.  Hopefully, my many hours of weeding will save you from having to fully examine the bowels of this beast.  I&#8217;m providing my CSS file, fully commented, along with image files to use as templates for your own profiles.  I do ask that you don&#8217;t use my <em>exact<\/em> theme but hopefully I&#8217;m providing you enough so that a few minutes in Photoshop is all you need to produce something you&#8217;re proud of.<\/p>\n<p>Additionally, I will say this: after working this thing into a tasteful state, I find myself actually quite taken with it. Many MySpace outsiders knock the service because its garish appearance and overall clunkiness overshadow anything good that may be underneath.  But imagine what a service like this could be with a professional makeover.  Get a company like <a href=\"http:\/\/www.adaptivepath.com\" target=\"_blank\">Adaptive Path<\/a> or a few <a href=\"http:\/\/www.avalonstar.com\" target=\"_blank\">Bryan Velosos<\/a> in there and you could open up a whole new world of user enjoyment and customization.<\/p>\n<p>I&#8217;ve heard people say that the reason MySpace is so successful is <em>because<\/em> of its garishness, but I don&#8217;t buy that for a second.  The freedom to <em>be<\/em> garish is certainly an advantage, but I hold that between garishness and beauty, most people will pick beauty for themselves if given the choice.<\/p>\n<p>This theory will be tested as we roll more social elements and customization into <a href=\"http:\/\/www.newsvine.com\" target=\"_blank\">Newsvine<\/a> in the coming weeks.<\/p>\n<p>Until then, however, you can have yourself <a href=\"http:\/\/www.myspace.com\/mikeindustries\" target=\"_blank\">a more tasteful looking MySpace page<\/a>. Here are the sample images and CSS file to get you started:<\/p>\n<div class=\"update\">DOWNLOAD: <a href=\"https:\/\/mikeindustries.com\/scratch\/myspace\/myspace_layout_mikeindustries.zip\">Sample CSS and images (zip file)<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>The social phenomenon that is MySpace is one I don&#8217;t fully understand, and yet, one I must fully respect.  In fact, with over 50 million unique users, it is something everybody must respect.  Any website which rolls up that amount of usership is doing something very, very right, and no matter what your thoughts on it as a vehicle for your own expression are, you must give it its full due for what it is to seemingly everyone else.<\/p>\n<p>Several weeks ago, I finally signed up for an account, and within seconds I was instantly put-off by what had been created for me: a hastily-designed &#8220;profile page&#8221; with uninspired colors, misaligned tables, and a mish-mash of extraneous cruft and design elements which made this feel more like a halfway house than a &#8220;home&#8221;.  Now, granted, I am a designer by trade so my tolerance for this stuff is orders of magnitude lower than most of the population, but clearly, this was not a place I even felt comfortable having my name on.<\/p>\n<p>So with the default home page this underwhelming, what is a MySpacer to do?  Customize, of course.  One of MySpace&#8217;s greatest features is its ability to let you skin your own home page.  Unfortunately, 99% of the customizations I&#8217;ve seen are chalkboard-screechingly awful, but what could a MySpace home page look like if some actual design thought went into it?  That is the question I sought to answer&#8230;<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[36,282],"tags":[],"class_list":["post-172","post","type-post","status-publish","format-standard","hentry","category-design","category-original"],"_links":{"self":[{"href":"https:\/\/mikeindustries.com\/blog\/wp-json\/wp\/v2\/posts\/172","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mikeindustries.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mikeindustries.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mikeindustries.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/mikeindustries.com\/blog\/wp-json\/wp\/v2\/comments?post=172"}],"version-history":[{"count":0,"href":"https:\/\/mikeindustries.com\/blog\/wp-json\/wp\/v2\/posts\/172\/revisions"}],"wp:attachment":[{"href":"https:\/\/mikeindustries.com\/blog\/wp-json\/wp\/v2\/media?parent=172"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mikeindustries.com\/blog\/wp-json\/wp\/v2\/categories?post=172"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mikeindustries.com\/blog\/wp-json\/wp\/v2\/tags?post=172"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}