if( $is_logged and ($member_id['user_id'] == $row['user_id'] OR $member_id['user_group'] == 1) ) {
$tpl->set( '{edituser}', "[ <a href=\"javascript:ShowOrHide('options')\">" . $lang['news_option'] . "</a> ]" );
$tpl->set( '[not-logged]', "" );
$tpl->set( '[/not-logged]', "" );
$ignore_list = array();
$temp_result = $db->query( "SELECT * FROM " . USERPREFIX . "_ignore_list WHERE user='{$row['user_id']}'" );
while ( $temp_row = $db->get_row( $temp_result ) ) {
if( $config['allow_alt_url'] == "yes" ) {
$user_name = $config['http_home_url'] . "user/" . urlencode( $temp_row['user_from'] ) . "/";
$user_name = "onclick=\"ShowProfile('" . urlencode( $temp_row['user_from'] ) . "', '" . htmlspecialchars( $user_name ) . "', '" . $user_group[$member_id['user_group']]['admin_editusers'] . "'); return false;\"";
$user_name = "<a {$user_name} class=\"pm_list\" href=\"" . $config['http_home_url'] . "user/" . urlencode( $temp_row['user_from'] ) . "/\">" . $temp_row['user_from'] . "</a>";
} else {
$user_name = "$PHP_SELF?subaction=userinfo&user=" . urlencode( $temp_row['user_from'] );
$user_name = "onclick=\"ShowProfile('" . urlencode( $temp_row['user_from'] ) . "', '" . htmlspecialchars( $user_name ) . "', '" . $user_group[$member_id['user_group']]['admin_editusers'] . "'); return false;\"";
$user_name = "<a {$user_name} class=\"pm_list\" href=\"$PHP_SELF?subaction=userinfo&user=" . urlencode( $temp_row['user_from'] ) . "\">" . $temp_row['user_from'] . "</a>";
}
$ignore_list[] = "<span id=\"dle-ignore-list-{$temp_row['id']}\">{$user_name} <a title=\"{$lang['del_from_ignore_1']}\" href=\"javascript:DelIgnorePM('" . $temp_row['id'] . "', '" . $lang['del_from_ignore'] . "')\"><img style=\"vertical-align: middle;border:none;\" alt=\"\" src=\"{THEME}/dleimages/delete.png\" /></a>";
}
$db->free( $temp_result );
if (count($ignore_list)) $tpl->set( '{ignore-list}', implode(", </span>", $ignore_list)."</span>" ); else $tpl->set( '{ignore-list}', "" );
} else {
$tpl->set( '{edituser}', "" );
$tpl->set( '{ignore-list}', "" );
$tpl->set_block( "'\\[not-logged\\](.*?)\\[/not-logged\\]'si", "<!-- profile -->" );
}