$database->setQuery("SELECT avatar,email FROM #__fb_users WHERE userid='$ulrow->id'");
									$user = null;
									$database->loadObject($user);

									if ($user->avatar != '') {

									if(!file_exists(KUNENA_ABSUPLOADEDPATH . '/avatars/s_' . $user->avatar)) {
										$uslavatar = '<img  border="0" class="usl_avatar" src="' . KUNENA_LIVEUPLOADEDPATH . '/avatars/' . $user->avatar . '" alt="" />';
										}else {
										$uslavatar = '<img  border="0" class="usl_avatar" src="' . KUNENA_LIVEUPLOADEDPATH . '/avatars/s_' . $user->avatar . '" alt="" />';
										}
									}
									else {$uslavatar = '<img  border="0" class="usl_avatar" src="http://www.gravatar.com/avatar/'.md5($user->email).'?s='.$fbConfig->avatarsmallwidth.'&d=' . urlencode(KUNENA_LIVEUPLOADEDPATH . '/avatars/s_nophoto.jpg').'" alt="" />'; }