Top 10 Membros  - Amigo Google Gadget Conecte
Autor: Edilene brandao da silva | Publicado: 2011-10-14T17:32:00-07:00

fonte e créditos deste presente post:
blog.xmlgadgets


Excelente dica, &nbsp;que , pesquisando encontrei:



Top 10 Members – Google Friend Connect gadget





Add ‘Top 10 Members’ to Blogger&nbsp;|&nbsp;Recent Visitors&nbsp;|Members Count
Update on Top 10 Members gadget
This Top Ten Members gadget for Blogger, displays the top 10 Google friend connect members of your site, according to the number of times they visit your site.
The gadget code is&nbsp;available here.
How to add this gadget to a&nbsp;Blogger&nbsp;powered blog/site?
Click here to Add “Top 10 Members” gadget&nbsp;to your blogger blog.
Otherwise,

1. Goto the Layout page of your blog.
2. Click “Add gadget”
3. Click “Add your own”
4. Give the gadget url as&nbsp;http://xmlgadgets.com/ig/top10.xml&nbsp;and save.
How to add this gadget for non-Blogger sites?
1. Login to&nbsp;Google Friend connect, and select the site you want to add the gadget to.
2. Click on “Social Gadgets”
3. Click “All Gadgets” tab.
4. Locate “Top 10 Members” gadget, and click, “Get this gadget”

5. Click “Generate Code” under “Create the HTML code”
6. Copy the code, add it to your site, Start using “Top 10 Members” gadget !!!
I had taken&nbsp;Eiji’s Footprint gadget&nbsp;as a base, and modified it for my requirement.
Please provide your valuable feedback/suggestion by commenting, which will be useful for improving the gadget.
See the Gadget in action:&nbsp;BSE Stock watch
Also Read
GFC Members gadget that directly links to Member’s sites
Recent readers gadget for Google Friend Connect / Blogger sites
Recent readers gadget by Gene
Friend connect – Member details and Site Community gadget



traduzido: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;



Top 10 Membros&nbsp;- Amigo Google Gadget Conecte





Adicione 'Top 10 dos membros para Blogger&nbsp;|Visitantes Recentes&nbsp;|&nbsp;Contagem membros
Atualização sobre dispositivo Top 10 Membros


Este gadget Dez membros superiores para Blogger, exibe o top 10 do Google Friend Connect membros do seu site, de acordo com o número de vezes que eles visitam seu site.
O código gadget é&nbsp;disponível aqui&nbsp;.:


&lt;?xml version="1.0"&nbsp;encoding="UTF-8"&nbsp;?&gt;
&lt;Module&gt;
&lt;ModulePrefs&nbsp;title="Top 10 Members"&nbsp;scrolling="true"&nbsp;description="Lists top 10 members of your site, accoring to the number of times a member visits your site"&nbsp;author="Karthik"&nbsp;author_email="manikarthik84@gmail.com"&nbsp;directory_title="Top 10 Members"&nbsp;thumbnail="http://xmlgadgets.com/ig/img/top10.png"
screenshot="http://xmlgadgets.com/ig/img/top10_.png"
&gt;
&nbsp;&nbsp;&lt;Require&nbsp;feature="opensocial-0.8"&nbsp;/&gt;
&nbsp;&nbsp;&lt;Require&nbsp;feature="views"&nbsp;/&gt;
&nbsp;&nbsp;&lt;Require&nbsp;feature="dynamic-height"&nbsp;/&gt;
&nbsp;&nbsp;&lt;Require&nbsp;feature="friendconnect"&nbsp;/&gt;
&nbsp;&nbsp;&lt;Require&nbsp;feature="minimessage"&nbsp;/&gt;
&nbsp;&nbsp;&lt;Optional&nbsp;feature="skins"&nbsp;/&gt;
&nbsp;&lt;/ModulePrefs&gt;
&nbsp; &nbsp; &nbsp;&lt;UserPref&nbsp;name="imagewidth"display_name="Thumbnail Size"
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;default_value="25"&nbsp;datatype="enum"&nbsp;&gt;
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&lt;EnumValue&nbsp;value="20"&nbsp;display_value="20 Smallest"&nbsp;/&gt;
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&lt;EnumValue&nbsp;value="25"&nbsp;display_value="25 Smaller"&nbsp;/&gt;
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&lt;EnumValue&nbsp;value="30"&nbsp;display_value="30 Small"&nbsp;/&gt;
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&lt;EnumValue&nbsp;value="35"&nbsp;display_value="35 Small Medium"&nbsp;/&gt;
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&lt;EnumValue&nbsp;value="40"&nbsp;display_value="40 Medium"&nbsp;/&gt;

&nbsp; &nbsp;&nbsp;&lt;/UserPref&gt;
&nbsp; &nbsp; &nbsp; 
&nbsp;&lt;Content&nbsp;type="html"&nbsp;view="default"&gt;
&nbsp; &lt;![CDATA[
&nbsp;&lt;style&gt;
&nbsp; &nbsp; ul&nbsp;{&nbsp;list-style:none;&nbsp;margin:0px;&nbsp;padding:0px;&nbsp;}
&nbsp; &nbsp; li&nbsp;{&nbsp;background-color:&nbsp;#EFF7FF; margin:3px 0px; padding:0px; width:200px; height:56px; float:left; }
&nbsp; &nbsp; img&nbsp;{&nbsp;border:&nbsp;0px;&nbsp;}
&nbsp; &nbsp; li img&nbsp;{&nbsp;margin:0px&nbsp;auto;&nbsp;padding:2px;border:solid&nbsp;1px&nbsp;#aaaaaa; width: 50px; height: 50px; }
&nbsp; &nbsp; li span.note&nbsp;{&nbsp;font-size:0.8em;&nbsp;}
&nbsp; &nbsp; li p&nbsp;{&nbsp;margin:0;&nbsp;}
&nbsp; &nbsp; textarea&nbsp;{&nbsp;display:inline;&nbsp;width:136px;height:35px;&nbsp;margin:0;&nbsp;float:left;&nbsp;}
&nbsp; &nbsp; input&nbsp;{&nbsp;display:block;&nbsp;clear:left;&nbsp;}
&nbsp;&nbsp;&lt;/style&gt;
&nbsp;&nbsp;&lt;script&nbsp;type="text/javascript"src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"&gt;&lt;/script&gt;
&nbsp;&nbsp;&lt;script&nbsp;type="text/javascript"&gt;
&nbsp; &nbsp; &nbsp;&nbsp;var&nbsp;fp&nbsp;=&nbsp;{
&nbsp; &nbsp; &nbsp; &nbsp; viewer:null,
&nbsp; &nbsp; &nbsp; &nbsp; myVisits:[],
&nbsp; &nbsp; &nbsp; &nbsp; config:{&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;maxDisplay:&nbsp;10,&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;messageDisappear:&nbsp;3&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;},
&nbsp; &nbsp; &nbsp; &nbsp; init:function()
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;{
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;var&nbsp;viewParams&nbsp;=gadgets.views.getParams();
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;if&nbsp;(viewParams.maxDisplay&nbsp;!=&nbsp;undefined)
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;{
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;var&nbsp;max&nbsp;=parseInt(viewParams.maxDisplay);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;if&nbsp;(max&nbsp;&gt;=&nbsp;3&nbsp;&amp;&amp;&nbsp;max&nbsp;&lt;=&nbsp;20)&nbsp;{
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fp.config.maxDisplay&nbsp;=&nbsp;max;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;}
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;}
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $('body').css('background-color',gadgets.skins.getProperty('CONTENT_BG_COLOR'));
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $('body').css('color',gadgets.skins.getProperty('CONTENT_TEXT_COLOR'));
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $('body').css('font-face',gadgets.skins.getProperty('FONT_FAMILY'));
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $('#header').css('color',gadgets.skins.getProperty('CONTENT_HEADLINE_COLOR'));
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $('#header').css('background-color',gadgets.skins.getProperty('ENDCAP_BG_COLOR'));
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $('#footer').css('background-color',gadgets.skins.getProperty('ENDCAP_BG_COLOR'));
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $('#footer').css('color',gadgets.skins.getProperty('ENDCAP_TEXT_COLOR'));
&nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;var&nbsp;req&nbsp;=&nbsp;opensocial.newDataRequest();
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;var&nbsp;params&nbsp;=&nbsp;{};
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;params[opensocial.DataRequest.PeopleRequestFields.PROFILE_DETAILS]=&nbsp;[opensocial.Person.Field.PROFILE_URL];
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; req.add(req.newFetchPersonRequest(opensocial.IdSpec.PersonId.VIEWER,params),&nbsp;'viewer');
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;var&nbsp;idspec&nbsp;=opensocial.newIdSpec({'userId':opensocial.IdSpec.PersonId.OWNER,
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;'groupId':opensocial.IdSpec.GroupId.FRIENDS});
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; req.add(req.newFetchPersonAppDataRequest(idspec,'myVisit'),&nbsp;'myVisit');
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; req.send(function(response)
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;{
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;if&nbsp;(!response.get('viewer').hadError())
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;{
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fp.viewer&nbsp;=response.get('viewer').getData();
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;}
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;if&nbsp;(response.get('myVisit').hadError())
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;{
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fp.myVisits&nbsp;=&nbsp;[];
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;}
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;else
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;{
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;var&nbsp;myVisits&nbsp;=response.get('myVisit').getData();
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;var&nbsp;exist&nbsp;=&nbsp;false;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $.each(myVisits,&nbsp;function(myVisit)
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;{
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;var&nbsp;json&nbsp;=gadgets.util.unescapeString(this.myVisit);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;var&nbsp;foot&nbsp;=&nbsp;gadgets.json.parse(json);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fp.myVisits.unshift(foot);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;});
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fp.myVisits.sort(function(a,&nbsp;b)&nbsp;{
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;return&nbsp;b.myVisit1&nbsp;-&nbsp;a.myVisit1;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;});
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fp.showmyVisits();
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;}
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;});
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;},
&nbsp; &nbsp; &nbsp; &nbsp; showmyVisits:function()&nbsp;{
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $('#myVisits').empty();
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;var&nbsp;html&nbsp;=&nbsp;'';
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;var&nbsp;vhtml&nbsp;=&nbsp;'';
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;var&nbsp;noOfMembs&nbsp;=&nbsp;10;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;var&nbsp;linkColor&nbsp;=gadgets.skins.getProperty('CONTENT_LINK_COLOR');
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;var&nbsp;textColor&nbsp;=gadgets.skins.getProperty('CONTENT_TEXT_COLOR');
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;var&nbsp;fontFamily&nbsp;=gadgets.skins.getProperty('FONT_FAMILY');
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;var&nbsp;prefs&nbsp;=&nbsp;new&nbsp;_IG_Prefs();
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;var&nbsp;imgw&nbsp;=prefs.getInt("imagewidth");
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;var&nbsp;memName;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;fontFamily&nbsp;=&nbsp;'Tahoma';
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;for&nbsp;(var&nbsp;i&nbsp;in&nbsp;fp.myVisits)
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;{
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// if (i == fp.config.maxDisplay) break;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;var&nbsp;foot&nbsp;=&nbsp;fp.myVisits[i];&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;if&nbsp;(fp.viewer&nbsp;==&nbsp;null)
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;{}
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;else
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;{
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if(fp.viewer.getField(opensocial.Person.Field.PROFILE_URL)==&nbsp;foot.profile)
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; putViewerlink(foot.myVisit1);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;}
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if&nbsp;(i&nbsp;&lt;&nbsp;noOfMembs)
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;//if (foot.name.length &lt; 16)
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;// &nbsp; memName = foot.name;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;//else
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;// &nbsp; memName = foot.name.substr(0,15) + '&lt;br&gt;' + foot.name.substr(15,foot.name.length - 15);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; memName&nbsp;=&nbsp;foot.name;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; html&nbsp;+=&nbsp;'&lt;tr&gt;&lt;td valign=top&gt;&lt;img src = "'&nbsp;+&nbsp;foot.thumbnail&nbsp;+&nbsp;'" width='&nbsp;+&nbsp;imgw&nbsp;+&nbsp;' height='&nbsp;+&nbsp;imgw&nbsp;+&nbsp;'&gt;&lt;/td&gt;';
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; html&nbsp;+=&nbsp;'&lt;td valign=top&gt;&lt;a href="'&nbsp;+&nbsp;foot.profile&nbsp;+&nbsp;'" target="_top" &gt;';
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; html&nbsp;+=&nbsp;'&lt;span &nbsp;style="font-size:13px;color:'&nbsp;+&nbsp;linkColor&nbsp;+';font-family:'&nbsp;+fontFamily&nbsp;+';"&gt;&lt;b&gt;'&nbsp;+&nbsp;memName&nbsp;+&nbsp;'&lt;/b&gt;&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;&lt;td valign=top&gt;&lt;span &nbsp;style="font-size:12px;font-family:'&nbsp;+&nbsp;fontFamily&nbsp;+';"&gt;'+foot.myVisit1&nbsp;+' visits&lt;/span&gt;';
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; html&nbsp;+=&nbsp;&nbsp;'&lt;/td&gt;&lt;/tr&gt;';
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}&nbsp;&nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;//html += '&lt;img src="' + foot.thumbnail + '" width=36 height=36&gt;';
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;//html += '&lt;a href="' + foot.profile + '"&gt;' + foot.name + '&lt;/a&gt;&lt;br&gt;';
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;//html += '&lt;a href="' + foot.myVisit1 + '"&gt;Link&lt;/a&gt;';

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;};
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;if&nbsp;(fp.viewer&nbsp;==&nbsp;null)
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;{
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// var mmsg = new gadgets.MiniMessage();
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;// mmsg.createDismissibleMessage('Please Sign in for your visit to be counted');
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; vhtml&nbsp;=&nbsp;'&lt;span style="font-size:11px;color:'&nbsp;+&nbsp;textColor&nbsp;+';font-family:'&nbsp;+fontFamily&nbsp;+';"&gt;Please Sign in for your visit to be counted&lt;/span&gt;';
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $('#viewerDiv').html(vhtml);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;}
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;else
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;var&nbsp;visits&nbsp;=document.getElementById('hiddenlink').value;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;var&nbsp;v1&nbsp;=parseInt(visits);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;//v1 = v1 + 1;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;//vhtml = '&lt;span style="font-size:12px;"&gt;Welcome ' + fp.viewer.getDisplayName() + '&lt;/span&gt;&lt;br&gt;';
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; vhtml&nbsp;=&nbsp;'&lt;a href="'+fp.viewer.getField(opensocial.Person.Field.PROFILE_URL);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; vhtml&nbsp;+=&nbsp;'" target="_top"&gt;&lt;span style="font-size:13px;color:'&nbsp;+linkColor&nbsp;+';font-family:'&nbsp;+&nbsp;fontFamily&nbsp;+';"&gt;&lt;b&gt;You&lt;/b&gt;&lt;/span&gt;&lt;/a&gt; &lt;span style="font-size:13px;color:'&nbsp;+&nbsp;textColor&nbsp;+';font-family:'&nbsp;+fontFamily&nbsp;+';"&gt;('&nbsp;+&nbsp;v1&nbsp;+&nbsp;' Visits before)&lt;/span&gt;&lt;hr&gt;'&nbsp;;&nbsp;&nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $('#viewerDiv').html(vhtml);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; saveLink();
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;}
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; html&nbsp;=&nbsp;'&lt;table&gt;'&nbsp;+&nbsp;html&nbsp;+'&lt;/table&gt;';
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; html&nbsp;+=&nbsp;'&lt;br&gt;';
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $('#myVisits').html(html);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $('#myVisits li').css('background-color',gadgets.skins.getProperty('ALTERNATE_BG_COLOR'));
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; gadgets.window.adjustHeight();
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;}

&nbsp; &nbsp; &nbsp;&nbsp;};
&nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;function&nbsp;putViewerlink(link1)
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;{
&nbsp; &nbsp; &nbsp; &nbsp; document.getElementById('hiddenlink').value=&nbsp;link1;
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;}
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;function&nbsp;saveLink()
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;{
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;var&nbsp;visits&nbsp;=document.getElementById('hiddenlink').value;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;var&nbsp;v1&nbsp;=&nbsp;parseInt(visits);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; v1&nbsp;=&nbsp;v1&nbsp;+&nbsp;1;
&nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;var&nbsp;foot&nbsp;=&nbsp;{
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;'id':&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; fp.viewer.getId(),
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;'name':&nbsp;&nbsp; &nbsp; &nbsp; fp.viewer.getDisplayName(),
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;'thumbnail':&nbsp;fp.viewer.getField(opensocial.Person.Field.THUMBNAIL_URL),
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;'profile':&nbsp;&nbsp; &nbsp;fp.viewer.getField(opensocial.Person.Field.PROFILE_URL),
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;'myVisit1':&nbsp;&nbsp;v1
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;};
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;var&nbsp;&nbsp;myVisit1&nbsp;=gadgets.json.stringify(foot);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;var&nbsp;req&nbsp;=&nbsp;opensocial.newDataRequest();
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; req.add(req.newUpdatePersonAppDataRequest(opensocial.IdSpec.PersonId.VIEWER,'myVisit',&nbsp;myVisit1));
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; req.send();
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;}
&nbsp;&lt;/script&gt;
&nbsp;&nbsp;&lt;script&nbsp;type="text/javascript"&gt;
&nbsp; &nbsp; gadgets.util.registerOnLoadHandler(fp.init);
&nbsp;&nbsp;&lt;/script&gt;
&nbsp;&nbsp;&lt;div&nbsp;id="header"&nbsp;class="header"&gt;&lt;span&nbsp;style="font-size:13px;"&gt;&lt;b&gt;Top 10 Members&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&nbsp; &nbsp;&lt;div&nbsp;id="viewerDiv"&gt;&lt;/div&gt;
&nbsp;&nbsp;&lt;div&nbsp;id="myVisits"&gt;&lt;/div&gt;
&nbsp;&nbsp;&lt;div&nbsp;id="footer"&gt;
&nbsp;&nbsp;&lt;a&nbsp;href="http://blog.xmlgadgets.com/google-friend-connect/top-10-members-google-friend-connect-gadget/?utm_source=top10&amp;utm_medium=GFC&amp;utm_campaign=Gadget"target="_blank"&gt;&lt;span&nbsp;style="font-size:11px;"&gt;Get This!&lt;/span&gt;&lt;/a&gt;
&nbsp;&nbsp;&lt;/div&gt;
&nbsp;&nbsp;&lt;input&nbsp;type=hidden&nbsp;id=hiddenlink&nbsp;value="0"&gt;
&lt;script&nbsp;type="text/javascript"&gt;
var&nbsp;gaJsHost&nbsp;=&nbsp;(("https:"&nbsp;==document.location.protocol)&nbsp;?&nbsp;"https://ssl."&nbsp;:"http://www.");
document.write(unescape("%3Cscript src='"&nbsp;+&nbsp;gaJsHost+&nbsp;"google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
&lt;/script&gt;
&lt;script&nbsp;type="text/javascript"&gt;
try&nbsp;{
var&nbsp;pageTracker&nbsp;=&nbsp;_gat._getTracker("UA-4747275-3");
pageTracker._trackPageview();
pageTracker._trackEvent('Top10',&nbsp;'Viewed');
}&nbsp;catch(err)&nbsp;{}&lt;/script&gt;

&nbsp;]]&gt;
&nbsp;&lt;/Content&gt;
&lt;/Module&gt;




Como adicionar este gadget para um&nbsp;Blogger&nbsp;do site alimentado blog /?




Clique aqui para adicionar "Top 10 Membros" gadget&nbsp;para seu blog blogger.




Caso contrário,



1.&nbsp;Vá para a página de layout do seu blog.
2.&nbsp;Clique em "Adicionar gadget"
 3.&nbsp;Clique em "Adicionar o seu próprio"
 4.&nbsp;Dar a url gadget como&nbsp;http://xmlgadgets.com/ig/top10.xml&nbsp;e salvar.




Como adicionar este gadget para não-Blogger sites?


1.&nbsp;Acesso ao&nbsp;Google Friend Connect&nbsp;, e selecione o site que você deseja adicionar o gadget.


2.&nbsp;Clique em "Gadgets Social"

3.&nbsp;Clique em "Todos os Gadgets" tab.


4.&nbsp;Localize "Top 10 Membros" gadget e clique em "Get esse gadget"







   
var addthis_config = {"data_track_clickback":true};