Hi,
Thank you for the reply.
I did as u told me to do. But my application is just showing a blank
screen instead of loading the game.
Plz help.

On Jan 25, 5:13 pm, Dhaval Pancholi <[email protected]> wrote:
> Hi ramya,
>
> I assume you must be having  an swf url.  eg:http://yourserverurl.com/game.swf
>
> Now in orkut to develop application
>
> 1) you write an xml file and upload it on your server such that it is
> accessible byhttp://yourserverurl.com/game.xml
> 2) In this xml you write code to displaly your content in users
> profile view as well as application view.
> 3) Once you have made the xml and uploaded on your server you goto
> sandbox.orkut.com ---> Add Apps
> 4) Here you will get an option to enter a url.
> 5) Enter the url of your server xml and you have your game on orkut.
>
> Since you are a beginner and you just wanna upload game i will give
> you the simplest xml.
>
> XML is self explanatory just replace your swf url,name email etc.
> where required and then it should work fine.
>
> <?xml version="1.0" encoding="UTF-8" ?>
> <Module>
> <ModulePrefs title="YOUR_GAME_TITLE"
> thumbnail="YOUR_GAME_THUMBNAIL_LOGO_URL"
> screenshot="YOUR_GAME_PREVIEW_IMAGE_URL" description="GAME_DESC"
> author="AUTHOR_NAME" author_email="AUTHOR_EMAIL" icon="GAME_FAV_ICON">
> <Locale lang="en"/>
> <Require feature="opensocial-0.8"/>
> <Require feature="opensocial-data"/>
> <Require feature="tabs"/>
> <Require feature="opensocial-templates">
> <Param name="process-on-server">true</Param>
> </Require>
> <Require feature="dynamic-height"/>
> <Require feature="views"/>
> </ModulePrefs>
>
> <Content type="html" view="profile">
> <![CDATA[
> <script type="text/os-template"  xmlns:os="http://ns.opensocial.org/
> 2009/extensions">
>  <os:NavigateToApp>
>         <center style="padding:0; margin:0;"><img
> src="GAME_PREVIEW_IMAGE_URL" border=0 height="250"  style="overflow:
> hidden;"/></center>
> </os:NavigateToApp>
> </script>
> ]]>
> <!--
> The above code will render you game preview image in the profile view
> of the application
> -->
> </Content>
>
> <Content type="html" view="canvas">
>
> <![CDATA[
>     <!-- Load the application-specific css -->
>         <script type="text/javascript" >
>
>         /* gets owner and viewer info */
>                 function sendRequest()
>                 {
>                   if(gadgets.window)
>                   {
>                             gadgets.window.adjustHeight('800px');
>                   }
>
>                         
> document.getElementById('main').innerHTML='Loading...';
>                         var idspec = opensocial.newIdSpec({'userId' : 
> 'OWNER', 'groupId' :
> 'FRIENDS'});
>                         var idspecviewer = opensocial.newIdSpec({'userId' : 
> 'VIEWER',
> 'groupId' : 'FRIENDS'});
>
>                         var req = opensocial.newDataRequest();
>                         var owner_params = { };
>                         owner_params
> [opensocial.DataRequest.PeopleRequestFields.PROFILE_DETAILS] =
> [opensocial.Person.Field.NAME,opensocial.Person.Field.GENDER,opensocial.Per 
> son.Field.CURRENT_LOCATION,
>                         opensocial.Person.Field.PROFILE_URL];
>
>                         var viewer_params={};
>                         viewer_params
> [opensocial.DataRequest.PeopleRequestFields.PROFILE_DETAILS]=
> [opensocial.Person.Field.NAME,opensocial.Person.Field.PROFILE_URL];
>
>                         req.add(req.newFetchPersonRequest
> (opensocial.IdSpec.PersonId.OWNER,owner_params),"owner");
>                         req.add(req.newFetchPersonRequest
> (opensocial.IdSpec.PersonId.VIEWER,viewer_params),"viewer");
>
>                         /* get owner friends */
>                                 var friends_params = {};
>                                 
> friends_params[opensocial.DataRequest.PeopleRequestFields.MAX]
> =1000;
>                                 req.add(req.newFetchPeopleRequest
> (idspec,friends_params),'friends');
>                                 req.add(req.newFetchPeopleRequest
> (idspecviewer,friends_params),'friendsviewer');
>                                 req.send(getResponse);
>                         /*end owner friends */
>                 }
>         /*end*/
>
>                 function getResponse(data)
>                 {
>                         viewer = data.get("viewer").getData();
>                         owner = data.get("owner").getData();
>                         friends = data.get('friends').getData();
>                         friendsviewer = data.get('friendsviewer').getData();
>                         orkut_owner_pic_url=owner.getField
> (opensocial.Person.Field.THUMBNAIL_URL);
>
>                         /*get viewer and owner of application*/
>                                 orkut_profile_owner_id = getOrkutId(owner);
>                                 if(viewer != null){     
> orkut_profile_viewer_id = getOrkutId
> (viewer); }
>                         /*end*/
>
>         /*****************************************set canvas view html over
> here*********************************/
>
>                 document.getElementById('main').innerHTML ='<div 
> style="padding-
> bottom:15px;"></div><embed src="YOUR_GAME_SWF_URL" width="750"
> height="500" type="application/x-shockwave-flash"
> AllowScriptAccess="always" wmode="transparent" 
> pluginspage="http://www.macromedia.com/go/getflashplayer";></embed>';
>
>         /******************************************end canvas
> view**********************************************/
>         }//end get response function
>
> </script>
>
> <div id="main"></div>
>
>  ]]>
>
>   </Content>
> </Module>

-- 
You received this message because you are subscribed to the Google Groups 
"Orkut Developer Forum" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/opensocial-orkut?hl=en.

Reply via email to