'; $("#SiteLoginDiv").html(statusLoginStr); $("#CommonLoginDiv").hide(); $("#SiteLoginDiv").show(); }  else{ $("#CommonLoginDiv").show(); $("#SiteLoginDiv").hide(); } // FB Login function getFacebookLogin(){ 	$.closeOverlay();         update_user_box();          /*FB.Connect.get_status().waitUntilReady(function(status) {                       	    	FB.Connect.requireSession(function(statusLogin) { 		    	if(statusLogin==1){ 		    		update_user_box(); 			    	} 		    	else{ 	} 	    	});    	 	    	});*/ 	 } function update_user_box() { 	//----------To Hide login div and the comment box      $("#logindiv").hide(); 	 $("#showerrorComment").hide(); 	 $("#commentBoxRes").hide(); 	// var api = FB.Facebook.apiClient; 	 //var loginusertypeid = api.get_session().uid;           FB.login(function(response) {                 if (response.authResponse) {                      var loginusertypeid = response.userID;                      FB.api('/me', function(data){                                 //$.post(ROOTURLPATH+"fb/getprofiledata.php",{'userId':loginusertypeid},function(data){ 		 //  var jObj=eval("("+data+")"); 		//   var conArr=jObj.content;                    var conArr = data; 		   var first_name = conArr.first_name; 		   var last_name = conArr.last_name; 		   var screenName = conArr.name; 		   var profileImage = conArr.pic_big_with_logo; 		   var profile_url = conArr.profile_url;	 			//-------------Set Value in the Hidden variable 			$("#first_name").val(first_name); 			$("#second_name").val(last_name); 			$("#userscreenname").val(screenName); 			$("#userprofilelink").val(profile_url); 			$("#userprofileimage").val(profileImage); 			$("#loginusertypeid").val(loginusertypeid); 			if(profileImage==''){ 				profileImage = ROOTURLPATH+"/images/50X50_User.jpg"; 			}	  		  //For Top Details when user Logins 		  statusLoginStr       = '
Welcome '+screenName+'';
 		  statusLoginStr      += ' | Sign Out
'; 		  $("#SiteLoginDiv").html(statusLoginStr);	    			  $("#logindiv").hide(); 			  $("#usernamepassworddiv").hide(); 			  $("#facebooktwitteruserdetails").show(); 			  //$("#facebooktwitteruserdetails").html(embededlogeddetails); 			  $("#facebooktwitteruserdetails").show(); 			  $("#whichusertype").val('1'); 			  $("#CommonLoginDiv").hide(); 			  $("#SiteLoginDiv").show();                                                      $("#anonymousDiv").show();                           $("#sociallogin").hide();                           $("#commentSubmit").show();                                                      $("#login_thank_u").html('Thank you for logging in. Please go ahead and submit your comment');                           $("#login_thank_u").show();                           $("#login_thank_u").fadeOut(10000); 		 });                 }               });       }
Source: http://healthmeup.com/news-buzz/coconut-oil-combats-tooth-decay/15489
cheney heart transplant  weather san diego  unitarian  new black panther party  lost in space  elizabeth banks  battle royale 
কোন মন্তব্য নেই:
একটি মন্তব্য পোস্ট করুন