\n"; if (is_array($data) && count($data) > 0) { foreach ($data as $id) { $result = dbquery("SELECT user_id, user_name, user_status, user_avatar FROM ".DB_USERS." WHERE user_id='$id' ORDER BY user_id ASC"); if (dbrows($result) > 0) { while ($data = dbarray($result)) { echo "
\n
\n"; echo "\n"; echo "
".display_avatar($data, '50px')."
\n"; echo "
".profile_link($data['user_id'], $data['user_name'], $data['user_status'])."
\n"; echo "".$locale['uf_blacklist_002']."\n"; echo "
\n"; echo "
\n
\n"; } } } } add_to_jquery(" $('.unblock').bind('click', function(e) { var user_id = $(this).val(); $.ajax({ type: 'POST', url: '".INCLUDES."user_fields/user_blacklist.ajax.php', data: { user_id : user_id }, dataType: 'html', success: function(data) { alert(data); $('#'+user_id+'-user-list').addClass('display-none'); $('#ignore-message').html(data).removeClass('display-none'); }, error: function() { alert('".$locale['uf_blacklist_desc']."'); } }); }); "); } } // Display user field input if ($profile_method == "input") { if (isset($user_data['user_blacklist']) && $user_data['user_blacklist']) { $user_blacklist = $user_data['user_blacklist']; } else { $user_blacklist = ""; } // Display in profile } else if ($profile_method == "display") { //Are we not missing something here? } else if ($profile_method == "validate_insert" || $profile_method == "validate_update") { $user_blacklist = ''; $userdata = $this->userData; $userdata_blacklist = isset($userdata) && array_key_exists('user_blacklist', $userdata) ? explode('.', $userdata['user_blacklist']) : []; if (count($userdata_blacklist) && isset($_POST['user_blacklist']) && isnum($_POST['user_blacklist']) && !in_array($_POST['user_blacklist'], $userdata_blacklist) ) { $userdata_blacklist[] = $_POST['user_blacklist']; $userdata_blacklist = implode('.', $userdata_blacklist); } else if (isset($_POST['user_blacklist']) && isnum($_POST['user_blacklist'])) { $userdata_blacklist = $userdata['user_blacklist']; } if ($userdata_blacklist != 0 || $this->_isNotRequired("user_blacklist")) { $this->_setDBValue("user_blacklist", $userdata_blacklist); } else { $this->_setError("user_blacklist", $locale['uf_blacklist_error'], TRUE); } }