inherit
8275
0
Apr 8, 2024 11:05:50 GMT -8
M³
SF 49ers
2,120
March 2003
madmastermind
|
Post by M³ on Dec 4, 2010 14:20:17 GMT -8
Hey there, I run some online Xbox 360 Sports Leagues and as such, would love it if a code could be made that would allow those entering the forum to quickly and easily view their friends on their Xbox Live list. Even though it's fairly simple to sign into Xbox Live from the PC and check their Xbox Live friends list, they come to the forum more often and this would be such a help with assisting them with catching their opponents on LIVE to ultimately get their games played each week. Sometimes we have a member posting to scheduling his game with his opponent, meanwhile, his opponent is on LIVE at that very moment. It would be so nice if a code were made to allow some sort of scrolling action of his friends list that could be placed at the top of the forum boards .. showing, who's on and who's not from his friends list. If not this way, maybe another suggested way may be in order. I'm not sure how or what .. but, maybe some other way it -could- be done. This type of code may be wishful thinking but I felt was worth a shot. Any help would be great appreciated, Thanks!
|
|
inherit
8275
0
Apr 8, 2024 11:05:50 GMT -8
M³
SF 49ers
2,120
March 2003
madmastermind
|
Post by M³ on Dec 5, 2010 16:03:45 GMT -8
Bump
|
|
inherit
8275
0
Apr 8, 2024 11:05:50 GMT -8
M³
SF 49ers
2,120
March 2003
madmastermind
|
Post by M³ on Dec 6, 2010 16:06:31 GMT -8
Bump
|
|
inherit
8275
0
Apr 8, 2024 11:05:50 GMT -8
M³
SF 49ers
2,120
March 2003
madmastermind
|
Post by M³ on Dec 7, 2010 18:53:02 GMT -8
Anyone? If not this, any suggestions on a work around?
Thanks
|
|
inherit
King Oligochaete
126470
0
Feb 24, 2021 12:23:15 GMT -8
Wormopolis
Stop rating plugins with 1 star that dont deserve it.
20,002
June 2008
tbserialkillers
Wormo's Mini-Profile
|
Post by Wormopolis on Dec 7, 2010 19:54:48 GMT -8
does Xbox provide some sort of implementation that can be put into a website?
|
|
inherit
Official Code Helper
65613
0
1
May 11, 2024 14:19:23 GMT -8
Chris
"'Oops' is the sound we make when we improve"
8,883
December 2005
horace
|
Post by Chris on Dec 7, 2010 20:10:44 GMT -8
It might be possible using the social login recently added to Proboards. If I am recalling correctly the MSN client allows you to add XBox Live accounts as friends (might be a gold account requirement).
The gigya API now being used to power the social login on Proboards has a simple call to obtain the friends from all linked networks so I assume MSN login would also return Xbox friends...
|
|
inherit
8275
0
Apr 8, 2024 11:05:50 GMT -8
M³
SF 49ers
2,120
March 2003
madmastermind
|
Post by M³ on Dec 8, 2010 7:45:00 GMT -8
Good stuff, Eton. Is this something you could possibly help with ... I have little to no knowledge of how to begin such a thing.
|
|
inherit
Official Code Helper
65613
0
1
May 11, 2024 14:19:23 GMT -8
Chris
"'Oops' is the sound we make when we improve"
8,883
December 2005
horace
|
Post by Chris on Dec 8, 2010 15:28:12 GMT -8
The concept would first need to be tested and since I have no MSN account with a passport linked to XBox Live someone with those things (XBOX Live friends merged with MSN friends) would need to run a simple test: - Login to your Proboards forum using the messenger social login icon
- enter
javascript:void(gigya.services.socialize.showFriendSelectorUI(conf,{})) into the browser's address bar
- Confirm that XBox Live friends appear in the popup.
|
|
inherit
8275
0
Apr 8, 2024 11:05:50 GMT -8
M³
SF 49ers
2,120
March 2003
madmastermind
|
Post by M³ on Dec 9, 2010 12:28:28 GMT -8
I signed in using my hotmail account which is linked to my 360 account. However, when I place the code into my browser, the box does pop up with a search ability, but I cannot seem to pull up any names. There are no names in the box either. In fact, when I type in one of my Xbox Live friends into the search bar, the 'Ok' button is grey'd out to where I can't even advance.
|
|
inherit
Official Code Helper
65613
0
1
May 11, 2024 14:19:23 GMT -8
Chris
"'Oops' is the sound we make when we improve"
8,883
December 2005
horace
|
Post by Chris on Dec 9, 2010 20:37:20 GMT -8
I signed in using my hotmail account which is linked to my 360 account. However, when I place the code into my browser, the box does pop up with a search ability, but I cannot seem to pull up any names. There are no names in the box either. In fact, when I type in one of my Xbox Live friends into the search bar, the 'Ok' button is grey'd out to where I can't even advance. It appears Proboards logs you out of the network once it obtains the authentication token and logs you into the forum so pop this in your main header: <script> (function(){ var Gss=gigya.services.socialize; window.showFriends = function (){ Gss.showFriendSelectorUI(conf,{}) } Gss.addEventHandlers(conf,{onConnectionAdded:showFriends}); Gss.getUserInfo(conf,{callback:function(res){ if(res.errorCode==0){ if(!res.user.isConnected || pb_username=='Guest') Gss.showEditConnectionsUI(conf, {}); else showFriends(); }else alert(res.errorMessage); } }); })() </script> This code is only to test if you can indeed see XBOX friends once logged into messenger so remove it after you've confirmed whether you can or cannot or you'll get killed with popups on every page load.
|
|
inherit
8275
0
Apr 8, 2024 11:05:50 GMT -8
M³
SF 49ers
2,120
March 2003
madmastermind
|
Post by M³ on Dec 10, 2010 8:33:53 GMT -8
I tried plugging the code in and found the image below pops up automatically. However, whenever I sign in I pretty much get the same thing, only with the pop-up box being new. LOL, and you're right, I did get killed with pop-ups with every page load.
|
|
inherit
Official Code Helper
65613
0
1
May 11, 2024 14:19:23 GMT -8
Chris
"'Oops' is the sound we make when we improve"
8,883
December 2005
horace
|
Post by Chris on Dec 10, 2010 13:09:15 GMT -8
I tried plugging the code in and found the image below pops up automatically. However, whenever I sign in I pretty much get the same thing, only with the pop-up box being new. LOL, and you're right, I did get killed with pop-ups with every page load. You did click the connect link next to the messenger icon in the screenshot you just posted right? As I said before once you login Proboards automatically logs you out of any network you used for logging in (the screenshot show all of them giving an option to "connect" as opposed to "disconnect" which means you are not logged into any of them. When that popup shows click the "connect" next to and upon sucessfull connection your friends list should automatically open. It is after all the whole point of this exercise to see if Xbox friends are listed when connected to MSN.
|
|
inherit
8275
0
Apr 8, 2024 11:05:50 GMT -8
M³
SF 49ers
2,120
March 2003
madmastermind
|
Post by M³ on Dec 10, 2010 17:52:31 GMT -8
Yeah, I did click the 'connect' next to the MSN icon .. however, this is all that came up after doing so:
|
|
inherit
Official Code Helper
65613
0
1
May 11, 2024 14:19:23 GMT -8
Chris
"'Oops' is the sound we make when we improve"
8,883
December 2005
horace
|
Post by Chris on Dec 12, 2010 21:11:11 GMT -8
I'm not quite sure why you would not be getting returned friends from MSN except to say that network defines "friend" as someone who is not only on YOUR buddy list but they also have you on THEIR buddy list and sharing activity notifications (and of course only online friends are returned). As I said before I don't have any XBOX users but I definitely get returned results from MSN. The above image is a screener of the code below. It adds a new section to the InfoCenter that shows your currently online buddies. It's about 60% done in terms of features I have in mind but I'm posting it so you can test your MSN friends. Remove the previous code if you haven't done so already and install this in main footer. This is only compatible with the standard infocenter for now so if you have a infocenter remodel on your test site temporarily remove it in order to test it. <script type="text/javascript"> /* Social Network Friends -Eton */ (function(){ if(arguments[0]==false)return; var soE={ noNet:"Please use the Gigya social network selector to login to a network first", noFriends:"no friends are currently available" } var cv = {show:"show.png",hide:"hide.png"}; if(!window.console)window.console={log:function(){}}; var a,b=document.getElementsByTagName('tr'),c,d,e,re=/changevisibility&(amp;)?type=today/ var Gss=gigya.services.socialize; window.showFriends = function(response){ console.log((response.operation||response.eventName)+': %o',response); var friends = document.getElementById('socialFriends'), operation = (response.operation||response.eventName); if (!response.errorCode || response.errorCode == 0) { if(operation=="connectionRemoved" && !response.user.isConnected){friends.innerHTML=soE.noNet; friends.previousSibling.innerHTML="";return;} Gss.getFriendsInfo(conf,{ callback:function(res){ console.log(res.operation+': %o',res); if(res.errorCode==0){ var myFriends = res['friends'].asArray(),msg="",providers={},index,index2,currFriend; if ( null!=myFriends && myFriends.length>0) { for (index in myFriends) { currFriend = myFriends[index]; for(index2 in currFriend.identities){ if(!providers[index2+' friend'])providers[index2+' friend']=1; else providers[index2+' friend']++; var status = ''; //'<br>('+((currFriend.identities[index2].isLoginIdentity && !currFriend.identities[index2].isExpiredSession)?'online':'offline')+')'; } msg += '<div style="display:inline-block;padding-left:2px;float:left;" align="center"><img src="'+ currFriend['thumbnailURL']+ '" title="'+index2+'"><br>'+currFriend['nickname']+status+'</div>'; } if(friends.innerHTML!="hidden")friends.innerHTML=msg; msg=[""]; for(index in providers)msg.push(providers[index]+' '+index+(providers[index]>1?'s':'')); friends.previousSibling.innerHTML=(msg.join(", ")+"<br><br>").replace(/^,/,''); } else {if(friends.innerHTML!="hidden")friends.innerHTML=soE.noFriends;friends.previousSibling.innerHTML="";} }else friends.innerHTML='Error('+res.operation+') :' + res.errorMessage; } }); } else friends.innerHTML = 'Error('+response.operation+') :' + response.errorMessage; } Gss.addEventHandlers(conf,{onConnectionAdded:showFriends}); Gss.addEventHandlers(conf,{onConnectionRemoved:showFriends}); for(a=b.length-1;a>=0;a--){ if(b[a].firstChild && /\bcatbg\b/.test(b[a].firstChild.className) && re.test(b[a].firstChild.innerHTML)){ c=b[a]; d=c.cloneNode(-1); d.getElementsByTagName('b')[0].innerHTML='Social Networking Friends'; e = d.getElementsByTagName('a'); e=e[e.length-1]; e.href="javascript:void('hide friends')"; e.lastChild.onclick = function(){ var T=this,src=T.src; if(T.src.match(cv.hide)){ src = src.replace(cv.hide,cv.show); document.getElementById('socialFriends').innerHTML = "hidden" }else{ src = src.replace(cv.show,cv.hide); document.getElementById('socialFriends').innerHTML = ""; } document.cookie = "socialFriends="+escape(src)+";expires="+(new Date(+new Date + 1e11)).toGMTString()+";"; setTimeout(function(){T.src=src;},5); showFriends({errorCode:0,operation:'manualCallback'}); } e.lastChild.onload= function(){ var display = document.cookie.match(/socialFriends=([^;]+)/)?unescape(RegExp.$1):"",hide= new RegExp(cv.hide,"i"); if(display.length>0){ if(!hide.test(display))document.getElementById('socialFriends').innerHTML = "hidden"; if(display!=this.src)this.src=display; } } c.parentNode.appendChild(d); e=c.nextSibling.cloneNode(-1); c.parentNode.appendChild(e); d=e.lastChild.getElementsByTagName('font')[0]; d.innerHTML=soE.noFriends; d.id="socialFriends"; d.parentNode.insertBefore(document.createElement('div'),d); d.previousSibling.id="addNetwork"; d.previousSibling.style.cssFloat= d.previousSibling.style.styleFloat= "right"; d.parentNode.insertBefore(document.createElement('div'),d); Gss.showAddConnectionsUI(conf, { containerID:'addNetwork' ,showEditLink:true ,showTermsLink:false ,requiredCapabilities:'friends' ,cid:pb_forum+"."+pb_username+".onlinefriends" }); Gss.getUserInfo(conf,{callback:function(res){ console.log(res.operation+': %o',res); var friends = document.getElementById('socialFriends'); if(!res.user.isConnected){friends.innerHTML=soE.noNet; friends.previousSibling.innerHTML="";return;} if(res.errorCode==0){ if(res.user.isConnected) showFriends({errorCode:0,operation:'manualCallback'}); else {friends.innerHTML=soE.noNet; friends.previousSibling.innerHTML="";} }else document.getElementById('socialFriends').innerHTML= 'Error('+res.operation+') :' + res.errorMessage; } }); break; } } })(pb_action=="home" && pb_username!='Guest') </script>
|
|
inherit
8275
0
Apr 8, 2024 11:05:50 GMT -8
M³
SF 49ers
2,120
March 2003
madmastermind
|
Post by M³ on Dec 16, 2010 13:00:27 GMT -8
Hmmmm, unfortunately, I couldn't either of them to work properly. I suppose, I'll wait until something more official comes out.
*Scratches head*, on why it didn't work --
Thank you for your effort E, you've always been so helpful and patient.
|
|