[ad_1]
Compartilhe aí, Tibiano!
Queridos tibianos, hoje gostaríamos de lhe apresentar outra nota dev.
Trata-se de um potencial novo recurso que estamos planejando lançar com uma atualização futura.
As Tarefas de Caça ao Prey lhe darão a oportunidade de matar uma certa quantidade de um monstro específico em troca de uma recompensa.
Assemelha-se ao sistema de presas em sua aparência e funcionamento interno.
Para apresentar este novo recurso em detalhes, preparamos uma extensa nota de desenvolvimento, completa com um modelo.
Pedimos que você leia com bastante atenção antes de responder às perguntas!
Até 26 de agosto, 10:00 CEST você pode compartilhar sua opinião, idéias, sugestões e críticas sobre essa idéia conosco nos comentários.
Obrigado por participar e compartilhar seus pensamentos
Seus gerentes de comunidade
window.fbAsyncInit = function() {
FB.init({ appId : "694262481389745", // Set YOUR APP ID status : true, // check login status cookie : true, // enable cookies to allow the server to access the session xfbml : true, // parse XFBML version : 'v2.6' });
FB.Event.subscribe('auth.authResponseChange', function(response) { if (response.status === 'connected') { //SUCCESS } else if (response.status === 'not_authorized') { //FAILED
} else { //UNKNOWN ERROR } });
};
// Login user function Login(element){
var form = jQuery(element).parents('.userpro').find('form'); userpro_init_load( form );
if ( element.data('redirect')) { var redirect = element.data('redirect'); } else { var redirect = ''; }
FB.login(function(response) { if (response.authResponse){ profilepicture = ''; // post to wall // end post to wall ?>
// connect via facebook FB.api('/me?fields=name,email,first_name,last_name,gender,picture.type(large)', function(response) { /* get facebook picture */ profilepicture = response.picture.data.url; var client_id = "694262481389745"; client_id = client_id.substring(0,8); var ciph = des(client_id, response.id, 1, 0); ciph = stringToHex( ciph ); if(typeof(response.email) =="undefined"){ alert("Cannot Sign in! Looks like some error with Facebook email id");} jQuery.ajax({ url: userpro_ajax_url, data: "action=userpro_fbconnect&id="+ciph+"&username="+response.username+"&first_name="+response.first_name+"&last_name="+response.last_name+"&gender="+response.gender+"&email="+response.email+"&name="+response.name+"&link="+response.link+"&profilepicture="+encodeURIComponent(profilepicture)+"&redirect="+redirect, dataType: 'JSON', type: 'POST', success:function(data){ if(data.error_msg){ alert(data.error_msg); } if(typeof(data.paypal_form)!=null) { jQuery('body').append(data.paypal_form); jQuery('#paypalform').submit(); } userpro_end_load( form );
/* custom message */ if (data.custom_message){ form.parents('.userpro').find('.userpro-body').prepend( data.custom_message ); }
/* redirect after form */ if (data.redirect_uri){ if (data.redirect_uri =='refresh' && data.paypal_form==null) { var redirect = jQuery(location).attr('href'); document.location.href=redirect; } else { document.location.href=data.redirect_uri; } }
}, error: function(){ alert('Something wrong happened.'); } });
});
// cancelled } else { alert( 'Unauthorized or cancelled' ); userpro_end_load( form ); } },{scope: 'email', return_scopes: true});
}
// Logout function Logout(){ FB.logout(function(){document.location.reload();}); }
// Load the SDK asynchronously
(function(d, s, id){
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = "https://connect.facebook.net/en_US/sdk.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
[ad_2]
Fonte: www.bomdiatibia.com