ich hab in mein neuen Gildenforum ein AdminAccount , dieser wird ja in der Memberliste mit angezeigt.
Wäre es möglich ein einzelnen User auszublenden?
<?php # Copyright by: Manuel Staechele # Support: www.ilch.de defined ('main') or die ( 'no direct access' ); $title = $allgAr['title'].' :: User :: '.$lang['listofmembers']; $hmenu = $extented_forum_menu.'User <b> » </b> '.$lang['listofmembers'].$extented_forum_menu_sufix; $design = new design ( $title , $hmenu, 1); $design->header(); $tpl = new tpl ( 'user/memb_list.htm' ); $limit = 50; // Limit $page = ($menu->getA(1) == 'p' ? $menu->getE(1) : 1 ); $MPL = db_make_sites ($page , "" , $limit , '?user' , 'user' ); $anfang = ($page - 1) * $limit; $tpl->set_out ( 'SITELINK', $MPL, 0); $filtername = isset($_GET['filtername']) ? " AND prefix_user.name LIKE '%".escape($_GET['filtername'],'string')."%'" : ""; $tpl->out(0); # alle anzuzeigenden rechte holen: $qry = db_query('SELECT `id`, `name` FROM `prefix_grundrechte` WHERE `show` = 1 ORDER BY `id` ASC'); while ($gr = db_fetch_assoc($qry)) { $erg = db_query("SELECT posts, icq, staat, status, homepage,email, llogin, avatar, prefix_user.id, prefix_grundrechte.name as recht_name, regist, prefix_user.name, recht FROM prefix_user LEFT JOIN prefix_grundrechte ON prefix_user.recht = prefix_grundrechte.id WHERE recht = ".$gr['id'].$filtername." ORDER by prefix_user.name ASC LIMIT ".$anfang.",".$limit); # wenn die gruppe leer ist, wird sie automatisch ausgeblendet: if(db_num_rows($erg)==0) continue; $tpl->set('group_id', $gr['id']); $tpl->set('group_name', $gr['name']); $tpl->out(1); while ($row = db_fetch_object($erg)) { if (file_exists($row->avatar)) { $avatar ='<img src="'.$row->avatar.'" border="0" >'; } elseif ($row->avatar == "" && $row->geschlecht == "1") { $avatar = '<img src="include/images/avatars/noavatar.png" border="0" width="100" >'; } elseif ($row->avatar == "" && $row->geschlecht == "2") { $avatar = '<img src="include/images/avatars/noavatar.png" border="0" width="100" >'; } else { $avatar = '<img src="include/images/avatars/noavatar.png" border="0" width="100" >'; } if ( $row->homepage ) { $homepage = '<a href="'.$row->homepage.'" target="_blank"><img src="include/images/icons/user_www.png" border="0"></a>'; } else { $homepage = '<img src="include/images/icons/user_nowww.png" border="0">'; } if ($class == 'Cmite') { $class = 'Cnorm'; } else { $class = 'Cmite'; } $ar = array ( 'NAME' => ''.$row->name.'', 'RANG' => userrang($row->posts,$row->id), 'POSTS' => $row->posts.' Beiträge', 'UID' => $row->id, 'DATE' => date('d.m.Y',$row->regist), 'GRUPE' => $row->recht_name, 'STAAT' => ($row->staat!="" ? $row->staat : "na.gif"), 'LLOGIN' => date('d.m.y',$row->llogin).'', 'AVATA' => $avatar, 'WWW' => $homepage, 'STATUS' => ($row->status == 1? "<img src=\"include/images/icons/active_user.png\" border=\"0\">" : "<img src=\"include/images/icons/inactive_user.png\" border=\"0\">"), ); $tpl->set_ar_out($ar,2); } } $tpl->set_out('filtername',escape(isset($_GET['filtername'])?$_GET['filtername']:'','string'),3); $design->footer(); ?>
verwendete ilch Version: 1.1 P
betroffene Homepage: externer Link
Zuletzt modifiziert von IRvD am 09.01.2016 - 23:53:16