Ich habe denn Profilansicht Modifizierung.1.2.1.1.P bei mir auf der HP Eingebaut und Jetzt Habe ich mal eine frage an euch.
in der memb_list.php möchte ich ein Online Icons haben mit denn Status von Messenger.
Das Habe ich schon Eingebaut:
in: include/contents/user/memb_list.php
<?php # Copyright by: Manuel + BennY # Support: www.ilch.de + www.projekt-ab.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(); # Pro-AB - User gesamt on $anz = @db_result(db_query("SELECT count(ID) FROM prefix_user"),0); # Pro-AB - User gesamt test off $limit = 20; // Limit $tpl = new tpl ( 'user/memb_list.htm' ); if($menu->exists('filtername')){ $page = ($menu->getA(3) == 'p' ? $menu->getE(3) : 1 ); $filtername = escape($menu->get(2), 'string'); }else{ $page = ($menu->getA(1) == 'p' ? $menu->getE(1) : 1 ); } $anfang = ($page - 1) * $limit; $tpl = new tpl ( 'user/memb_list.htm' ); if(isset($_GET['filtername']) AND !empty($_GET['filtername'])){ $filtername = escape($_GET['filtername'], 'string'); } if(!empty($filtername)){ $sql_search=" WHERE prefix_user.name LIKE '%".$filtername."%'"; $MPL = db_make_sites ($page , $sql_search , $limit , '?user-filtername-'.$filtername , 'user' ); }else{ $sql_search=""; $MPL = db_make_sites ($page , "" , $limit , '?user' , 'user' ); } $tpl->set_out ( 'SITELINK', $MPL, 0); $class = ''; $erg = db_query("SELECT llogin, posts, prefix_user.id, prefix_grundrechte.name as recht_name, regist, prefix_user.name FROM prefix_user LEFT JOIN prefix_grundrechte ON prefix_user.recht = prefix_grundrechte.id ORDER by $sql_search $sort $aufab recht,prefix_user.posts DESC LIMIT ".$anfang.",".$limit); while ($row = db_fetch_object($erg)) { # Pro-AB - AKTIV test on $anzna = round((time()-$row->llogin)/(24*60*60),0); if ($anzna < 9) { $aktiv = '<img src="include/images/icons/online.gif" alt="" border="0"> '; }elseif ($anzna < 20) { $aktiv = '<img src="include/images/icons/na.gif" alt="" border="0"> '; } else { $aktiv = '<img src="include/images/icons/offline.gif" alt="" border="0"> '; } # Pro-AB - AKTIV test off if ($class == 'Cmite') { $class = 'Cnorm'; } else { $class = 'Cmite'; } $ar = array ( 'NAME' => $row->name, 'RANG' => userrang($row->posts,$row->id), # Pro-AB - AKTIV test on 'AKTIV' => $aktiv, # Pro-AB - AKTIV test off # Pro-AB - User gesamt on 'anz' =>$anz, # Pro-AB - User gesamt off 'CLASS' => $class, 'POSTS' => $row->posts, 'UID' => $row->id, 'DATE' => date('d.m.Y',$row->regist), 'GRUPE' => $row->recht_name, # Pro-AB - Zuletzt Online on on 'LLOGIN' => date('d.m.Y - H:i',$row->llogin).' Uhr', # Pro-AB - Zuletzt Online off # Pro-AB - Messenger on 'ONLINE' => $row->online # Pro-AB - Messenger off ); $tpl->set_ar_out($ar,1); } $tpl->set_out('filtername',$filtername ? $filtername : '',2); $design->footer(); ?>
in: include/templates/user/memb_list.htm
<table width="100%" border="0" cellpadding="3" cellspacing="1" class="border"> <tr class="Chead" > <th height="30" width="25%">Nickname</th> <th align="center" width="15%">Messenger</th> <th align="center" width="15%">Status</th> <th width="10%">Zuletzt Online</th> <th width="25%" align="center">{_lang_regtime}</th> <th align="center" width="15%">Forenstatus</th> <th width="15%" align="center">{_lang_posts}</th> </tr> {EXPLODE} <tr class="{CLASS}"> <td> {AKTIV} <a href="index.php?user-details-{UID}"><b>{NAME}</b></a></td> <td align="center"><a href="javascript:void(0)" onclick="javascript:chatWith({UID},'{NAME}')">{ONLINE2}</a></font></td> <td align="center"><font size="-2"><b>{GRUPE}</b></font></td> <td align="center" width="30%"><font size="1"><b>{LLOGIN}</b></font></td> <td align="center"><font size="-2"><b>{DATE}</b></font></td> <td align="center"><font size="1"><b>{RANG}</b></font></td> <td align="center">{POSTS}</td> </tr> {EXPLODE} </table> <br /> <font size="-2">User gesamt: <b>{anz}</b> {SITELINK}</font><br><br><br>
verwendete ilch Version: 1.1 P
Zuletzt modifiziert von FightClub am 11.08.2016 - 20:19:43