You are not logged in.   Log in | Register

MySpace

From $1

Guidelines for Posting Content to MySpace

  • Please refrain from using quote chars (') in your code. Use only double-quotes (").
  • MySpace does not allow <table> or <div> tags in bulletins (they remove these tags if added).
  • Links that open pop-ups are not allowed, so please avoid using those.
  • MySpace prefers the <object> tag over the <embed> tag and will alter the code if it does not meet their requirements. Below is an example of the format that will work for MySpace and across all social networks.

Example of a universal Flash embedded in HTML code:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000
    codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" 
    width="300" height="400" id="widget_name" align="middle">
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="allowFullScreen" value="false" />
    <param name="movie" value="http://www.domain.com/path/to/widget.swf" />
    <param name="quality" value="high" />
    <param name="bgcolor" value="#ffffff" />

    <embed src="http://www.domain.com/path/to/widget.swf" quality="high" bgcolor="#ffffff" 
        width="300" height="400" name="widget_name" align="middle" 
        allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" 
        pluginspage="http://www.macromedia.com/go/getflashplayer"  
        FlashVars="var1=12345&var2=67890"/>
    </embed>

    <param name="FlashVars" value="var1=12345&var2=67890" />
</object>
  • Please avoid Javascript-based embed codes. They can be identified by the <script>...</script> tags within which they are enclosed.
  • MySpace disables external links originating in Flash widgets. To walk around this issue, add to your widget code that will display a copy URL box.
     

Available Sections

The following is a list of the available sections for posting content to MySpace profiles:

Content Sections: About, Blog, Meet, Interests, Music, Movies, Television, Books, Heroes, Artist_Bio, Artist_Members, Artist_Influences, Artist_Sounds_Like.

Layout Sections: ProfileLayout, BlogLayout, AllLayouts.

 

You can restrict the list of sections displayed in the section selection dropdown by using the myspaceSections parameter.

Example:

To have MySpace show only the "About me" and "I'd like to meet" sections, add the following code to your configuration object:

myspaceSections:'About,Meet'

 

Note - Layout sections are meant to be used in conjunction with the contentIsLayout parameter. The next section elaborates on this point.

 

Posting a Layout to MySpace

You may post either a profile layout or a blog layout to MySpace, as described below:

Posting a Profile Layout

To post a profile layout, a couple of parameters in your configuration object should be set as follows:

  1. The contentIsLayout parameter should be set to 'true'.
  2. The myspaceSections parameter should be set to "ProfileLayout".
  3. The layout content should be provided in the myspaceProfileLayoutContent parameter.
contentIsLayout: 'true',
myspaceSections: 'ProfileLayout',

If the user is using MySpace Profile 2.0, the content will be placed within the "Custom Style Sheet" box. If the user has the old profile then the content will be placed in the content of the "About Me" section.

 

Posting a Blog Layout

To post a blog layout,  a couple of parameters in your configuration object should be set as follows:

  1. The contentIsLayout parameter should be to 'true'.
  2. The myspaceSections parameter should be to "BlogLayout".
  3. The layout content should be provided in the myspaceBlogLayoutContent parameter.

In this scenario, please tag the content you provide with the following tags:

<gigyaBlogLayoutHeader>
</gigyaBlogLayoutHeader>
<gigyaBlogLayoutCSS>
</gigyaBlogLayoutCSS>

The content within the first two tags will be placed in the "Header HTML" box and the content within the latter pair will be placed in the "Blog CSS" box.

Note: If you have configured Wildfire to show a codebox on MySpace, please use the myspaceContent parameter to provide content, making sure you have set it to the same content you provided within the <gigyaBlogLayoutCSS> tags.

 

Code Example

The following HTML code is an example of using Wildfire configured to post layout to a MySpace profile:

<textarea id="myspaceLayout" style="display: _fckstyle="display: none">
    <gigyaLayoutHeader>
        <!-- MEDIA CODE GOES HERE -->
    </gigyaLayoutHeader>
    <gigyaLayoutCSS>
        <!-- CSS CODE GOES HERE -->
     </gigyaLayoutCSS>
</textarea>

<div id="divWildfirePost"></div>

<script>
     var pconf={
       contentIsLayout: 'true',
       myspaceSections: 'ProfileLayout',
       myspaceProfileLayoutContent: 'myspaceLayout',
       myspaceContent: 'myspaceLayout',
       UIConfig: '<config><display showPost="true" networksToShow="myspace" networksWithCodebox="myspace"></display></config>'
     };

     Wildfire.initPost('123456', 'divWildfirePost', 400, 300, pconf);
</script>
Tags:
Files (0)