Register or Login
Exclusive premium software and giveaways
', containerID: 'gigyalogindiv', enabledProviders:'facebook,twitter,google,messenger,yahoo' }; gigya.services.socialize.showLoginUI(conf,login_params); gigya.services.socialize.addEventHandlers(conf,{ onLogin:function(userObject){ Gigya.Ajax.setUserObject(userObject); Gigya.Ajax.login(); } }); } function renderLoginNavForComments(){ Gigya.Ajax.setUrl("http://www.makeuseof.com/wp-admin/admin-ajax.php"); Gigya.Ajax.onSignIn = function(){ window.location.reload(true); }; var login_params = { showTermsLink:false, headerText:'', height:50, width:250, context:'GigCommentsLogin', pendingRegistration : true, UIConfig:'', containerID: 'gigyalogindivforcomments', enabledProviders:'facebook,twitter,google,messenger,yahoo' }; gigya.services.socialize.showLoginUI(conf,login_params); gigya.services.socialize.addEventHandlers(conf,{ onLogin:function(userObject){ Gigya.Ajax.setUserObject(userObject); Gigya.Ajax.login(); } }); } function populateUserGameStats(response) { //console.log(response); if ( response.errorCode == 0 ) { if ( null!=response.achievements && response.achievements.length>0) { var msg = 'My achievements are:\n\n'; for (var index in response.achievements) { var currAchievement = response.achievements[index]; msg += "Challange - " + currAchievement['challengeTitle']+ " : " + "Level - " + currAchievement ['levelTitle'] + ", Rank - " + currAchievement ['rank']+ '\n' ; } userGameStats = response.achievements[0]; $("#user-points").html(''+userGameStats['pointsCurrent']+" points : "+userGameStats['levelTitle']); $("#profile-block").prepend(''); //populate the reward block $("#reward-block").load("http://www.makeuseof.com/random-reward/",function(){ var rCost = $("#rewards").data("cost"); if(rCost > userGameStats['pointsCurrent']){ $("#reward-text").append("You only need "+(rCost-userGameStats['pointsCurrent'])+" more points!"); } else{ $("#reward-text").append("Exchange for just "+rCost+" points!"); } }); } } };
-
September 25, 2012
- By Kaly
More articles about:
No Comments
Get a MakeUseOf account using one of your online accounts below.
Why? Earn points, unlock giveaways, access locked exclusives.
Get the best MakeUseOf articles in your email for free.
Access Exclusives. Over 400,000 subscribers!
More Subscribe Options
Several of my friends who use Facebook almost every day recently told me how they hate always getting notifications for dumb games people want them...
The computer mouse is an incredibly nifty device, which unfortunately, a lot of people do not use to its full potential. There are many more...
Much advice has been given on how to keep your computer running smoothly, as well as how to fix it when it has become slow....
For many advanced computer users, Dropbox is the premiere cloud-based storage and sharing document service. It has replaced the Documents folder on my Mac, and...
One of the things I enjoy the most about the Internet - and writing about it - is that I never know what is coming...
Puzzle game fans rejoice -- we’re giving away yet more software, and this time it’s a rather addictive three-in-a-row game from Playrix called Fishdom. The...
Emails are tough. It is really hard to get across what you really want to say in an email, and half the time people will...
With the amount of information we post online, we're putting an awful lot of faith in third party services to keep our content and photos...
If you’ve never ever sold or bought anything from eBay, please raise your hand (or leave a comment). In the 17 years eBay has been...
How many times have you installed copies of Windows on a computer following a major hardware change? A case in point is probably Windows XP...
Powered By WizardRSS.com | Full Text RSS Feed | Amazon Plugin Wordpress | Android Forums | Wordpress Tutorials