| Enjoy reading this post and subscribe to Bontb RSS Feeds |
Just in: Myspace relased button where bloggers like you and I can submit our content to myspace profile and spread the word. Here is How to Add Post To MySpace.
Link to original MySpace Implementation should work but looks like myspace is working on it and is offline at the moment. Please try later
How to add Post To MySpace:
To add the MySpace icon on your site follow these simple instructions:
1. Add the following line of code in the body section of your HTML:
<script type=”text/javascript”>
function GetThis(T, C, U, L)
{
var targetUrl = ‘http://www.myspace.com/Modules/PostTo/Pages/?’ + ‘t=’ + encodeURIComponent(T)
+ ‘&c=’ + encodeURIComponent(C) + ‘&u=’ + encodeURIComponent(U) + ‘&l=’ + L;
window.open(targetUrl);
}
</script>
Add the following line of code where you want the MySpace icon to appear on your page:
<a href=”javascript:GetThis(’Title’, ‘Content’, ‘URL’, Location)”>
<img src=”http://x.myspace.com/images/myspace_logo_16.gif” border=”0? alt=”Post to MySpace!” /> </a>
1. The code you add will place a small MySpace icon on your site. It’s a good idea to add the button in a place that is visible to users and close to the content you’re sharing.
2. In the code, modify the following parameters:
1. “T” – Title: If your content has a title, add it to this parameter
i. Note: If you provide a URL and a Title, the Title will link to the URL on MySpace
2. “C” – Content: Place the content of what you’re sharing inside this parameter
i. Note: The “C” parameter can contain HTML (e.g. text, images, objects, etc.)
3. “U” – URL: If you want to send a clickable URL, add it to this parameter
4. “L” – Location: Select the default location you want your content posted to:
i. MySpace users will have the option of changing the default location on the confirmation page.
ii. If you do not specify a location, by default “About Me” section will be selected
· L=1, Blog
· L=2, Bulletin
· L=3, About Me
· L=4. I’d like to Meet
· L=5, Interests
· L=6, Music
· L=7, Movies
· L=8, Television
· L=9, Books,
· L=10, Heroes
Finished Link Example
<a href=”javascript:GetThis(’MySpace Post To Feature Example’, ‘<p>HTML content to post goes here <i>(e.g. text, images, objects, etc.)</i></p>’, ‘http://www.myspace.com’, 3)”>
<img src=”http://x.myspace.com/images/myspace_logo_16.gif” border=”0? alt=”Post to MySpace!” /> </a>
Actual Url:
Implementation Notes:
* Do not remove any of the parameters (T, C, U, L) – each is required. However, you do not need to put content in any of the fields; they could be left empty.
* The “Location” parameter has not been turned on as of the launch of this product but will be available soon. If you choose a default location before MySpace turns on this parameter, it will not work. However, once the parameter is turned on, it will work.
* MySpace is only able to accept a maximum of 1,000 characters which includes any HTML markup. Please make sure what you’re sending MySpace does not exceed this limit. Users will receive an error message on MySpace.
* If you are sending MySpace photos, videos, or objects please be sure NOT to exceed a width of 475 pixels. MySpace will automatically resize these types of contents and it could distort once inside MySpace.
* MySpace filters some HTML content as necessary to protect against malicious content. You can test your desired content by creating a MySpace account and adding the content into the Profile Editor. If it displays appropriately, you’ll know your content will work using Post.





Horaayy..there are 6 comment(s) for me so far ;)
Sweet! Finally! Thank you!
Hey, i find this comments very interested. Thanks and Regards from Germany
[...] auch dabei. 2008-03-10 Update: Icons für Webnews und Digg sind auch dabei und dank einem prima Tutorial auch [...]
Thank you very much for the nice Tutorial, I just integrated the MySpace Icon into my Wordpress Blog Sidebar!
I like the code but it does not work in ie.
If you use the button Onlick event to call the JS instead of using href, the code will work in IE.