Hallo, ich habe da mal eine Frage. Ich würde gerne im Forum ein Bild anzeigen lassen anstatt den autor. Oder besser gesagt neben dem Autor das Profilbild
betroffene Homepage: newsgamer.de
Hier kann eine Notiz zum Merk-Eintrag hinzugefügt werden (optional)
Geschlossen |
<?php # Copyright by: Manuel # Support: www.ilch.de defined ('main') or die ( 'no direct access' ); $title = $allgAr['title'].' :: Forum'; $hmenu = $extented_forum_menu.'Forum'.$extented_forum_menu_sufix; $design = new design ( $title , $hmenu, 1); $design->header(); if ($menu->get(1) == 'markallasread') { $ilchBB->deleteNewTopics(); // user_markallasread (); } $tpl = new tpl ( 'forum/showforum' ); $tpl->out (0); $category_array = array(); $forum_array = array(); $q = "SELECT a.id, a.cid, a.name, a.besch, a.topics, a.posts, b.name as topic, c.id as pid, c.tid, b.rep, c.erst, c.time, a.cid, k.name as cname, u.avatar FROM prefix_forums a LEFT JOIN prefix_forumcats k ON k.id = a.cid LEFT JOIN prefix_posts c ON a.last_post_id = c.id LEFT JOIN prefix_topics b ON c.tid = b.id LEFT JOIN prefix_user u ON c.erstid = u.id LEFT JOIN prefix_groupusers vg ON vg.uid = ".$_SESSION['authid']." AND vg.gid = a.view LEFT JOIN prefix_groupusers rg ON rg.uid = ".$_SESSION['authid']." AND rg.gid = a.reply LEFT JOIN prefix_groupusers sg ON sg.uid = ".$_SESSION['authid']." AND sg.gid = a.start WHERE ((".$_SESSION['authright']." <= a.view AND a.view < 1) OR (".$_SESSION['authright']." <= a.reply AND a.reply < 1) OR (".$_SESSION['authright']." <= a.start AND a.start < 1) OR vg.fid IS NOT NULL OR rg.fid IS NOT NULL OR sg.fid IS NOT NULL OR -9 = ".$_SESSION['authright'].") AND k.cid = 0 ORDER BY k.pos, a.pos"; $erg1 = db_query($q); $xcid = 0; while ($r = db_fetch_assoc($erg1) ) { $class = ($class == 'Cmite' ? 'Cnorm' : 'Cmite' ); $r['class'] = $class; // IlchBB Forum 3.1 :: Get Forum Status :: Start $ord = $ilchBB->checkNewTopics($r['id']); if ($ord === TRUE) { $r['ORD'] = 'nord'; //$r['TORD'] = 'Neue Beiträge'; } else { $r['ORD'] = 'ord'; //$r['TORD'] = 'Keine neuen Beiträge'; } // IlchBB Forum 3.1 :: Get Forum Status :: Ende $r['topicl'] = $r['topic']; $r['topic'] = html_enc_substr($r['topic'],0,23); $r['mods'] = getmods($r['id']); $r['datum'] = date('d.m.y - H:i', $r['time']); $r['page'] = ceil ( ($r['rep']+1) / $allgAr['Fpanz'] ); $r['avatar'] = '<img src="' . $r['avatar'] . '" border="0" /><br />' ; $tpl->set_ar ($r); if ($r['cid'] <> $xcid) { $tpl->out(1); //Unterkategorien $sql = db_query("SELECT DISTINCT a.name as cname, a.id as cid FROM `prefix_forumcats` a LEFT JOIN `prefix_forums` b ON a.id = b.cid WHERE a.cid = {$r['cid']} AND a.id = b.cid ORDER BY a.pos, a.name"); while ($ucat = db_fetch_assoc($sql)) { $tpl->set_ar_out($ucat,2); } //Unterkategorien - Ende $xcid = $r['cid']; } $tpl->set_ar_out($r,3); } # statistic # $ges_online_user = ges_online(); $guests_online_today = user_online_gesamt_heute() - registered_online_gesamt_heute(); $most_visited = most_visited_day(); $timest_most_visited = strtotime($most_visited['date']); $most_visited_d = strftime('%d.%m.%Y', $timest_most_visited); $most_visited_c = $most_visited['count']; $newest_user = newest_user(); $newest_user_id = $newest_user['id']; $newest_user_name = $newest_user['name']; $stats_array = array ( 'privmsgpopup' => '', 'topics' => db_result(db_query("SELECT COUNT(ID) FROM `prefix_topics`"),0), 'posts' => db_result(db_query("SELECT COUNT(ID) FROM `prefix_posts`"),0), 'users' => db_result(db_query("SELECT COUNT(ID) FROM `prefix_user`"),0), 'istsind' => ( $ges_online_user > 1 ? 'sind' : 'ist' ), 'gesonline' => $ges_online_user, 'gastonline' => ges_gast_online(), 'useronline' => ges_user_online(), 'userliste' => user_online_liste(), 'useronlinetoday' => user_online_gesamt_heute(), 'regsonlinetoday' => registered_online_gesamt_heute(), 'guestsonlinetoday' => $guests_online_today, 'maxvisitorscount' => $most_visited_c, 'maxvisitorsday' => $most_visited_d, 'userlistonlinetoday' => userlist_online_today(), 'id' => $newest_user_id, 'name' => $newest_user_name ); $tpl->set_ar_out($stats_array,4); $design->footer(); ?>
<table width="100%" cellpadding="4" cellspacing="1" class="border" border="0"> <tr class="Chead"> <th width="58%" colspan="2" align="center"><b>{_lang_board}</b></th> <th width="6%">{_lang_post}</th> <th width="6%">{_lang_topic}</th> <th width="25%" align="center">{_lang_lastpost}</th> </tr> {EXPLODE} <tr class="Cdark"> <td colspan="5"><strong><a href="index.php?forum-showcat-{cid}">{cname}</a></strong></td> </tr> {EXPLODE} <tr class="Cmite"> <td colspan="5"><strong> » <a href="index.php?forum-showcat-{cid}">{cname}</a></strong></td> </tr> {EXPLODE} <tr class="{class}"> <td width="5%" align="center" valign="middle"><img alt="" src="include/images/forum/{ORD}.gif" width="20" height="20" border="0"></td> <td> <a href="index.php?forum-showtopics-{id}">{name}</a> <br /> <span class="smalfont">{besch} {mods} </span> </td> <td align="center"><span class="smalfont">{posts}</span></td> <td align="center"><span class="smalfont">{topics}</span></td> <td> <span class="smalfont"> <a class="smalfont" title="{topicl}" href="index.php?forum-showposts-{tid}-p{page}#{pid}">{topic}</a> <br /> {_lang_from}: {erst} {avatar} </span> </td> </tr>{EXPLODE} </table> <br /> <table class="border" width="100%" cellspacing="1" cellpadding="6" border="0"> <tr> <td class="Cdark"> <div align="center"> <a href="index.php?forum-markallasread">{_lang_markallasread}</a> </div> </td> <td class="Cdark"> <div align="center"> <a href="index.php?forum-augt">meine ungelesenen Beiträge</a> </div> </td> <td class="Cdark"> <div align="center"> <a href="index.php?forum-aubt">{_lang_topicwithnoreply}</a> </div> </td> <td class="Cdark"> <div align="center"> <a href="index.php?forum-aeit">{_lang_ownposts}</a> </div> </td> </tr> </table> <br /> <br /> <table width="100%" border="0" cellpadding="5" cellspacing="1" class="border"> <tr> <td valign="top" align="left"> <b>Wer ist online?</b> <hr style="height: 0px; border: dotted #999999 0px; border-top-width: 1px; "> </td> </tr> <tr> <td class="Cmite" valign="top" align="left"> Insgesamt {istsind} <b>{gesonline}</b> Besucher online: <b>{useronline}</b> {_if_{useronline}=='1'}{_lang_registredand}{/_endif}{_if_{useronline}!='1'}{_lang_registrededand}{/_endif} <b>{gastonline}</b> {_lang_guests} <br> <br> Online: {userliste} </td> </tr> <tr> <td><br></td> </tr> <tr> <td valign="top" align="left"> <b>Wer war da?</b> <hr style="height: 0px; border: dotted #999999 0px; border-top-width: 1px; "> </td> </tr> <tr> <td class="Cmite" valign="top" align="left"> Insgesamt {_if_{useronlinetoday}=='1'}war{/_endif}{_if_{useronlinetoday}!='1'}waren{/_endif} <b>{useronlinetoday}</b> Besucher online: <b>{regsonlinetoday}</b> {_if_{regsonlinetoday}=='1'}Registrierter{/_endif}{_if_{regsonlinetoday}!='1'}Registrierte{/_endif} und <b>{guestsonlinetoday}</b> {_if_{guestsonlinetoday}=='1'}Gast{/_endif}{_if_{guestsonlinetoday}!='1'}Gäste{/_endif} <br> Der Besucher-Rekord liegt bei <b>{maxvisitorscount}</b> {_if_{maxvisitorscount}=='1'}Besucher{/_endif}{_if_{maxvisitorscount}!='1'}Besuchern{/_endif}, {_if_{maxvisitorscount}=='1'}der{/_endif}{_if_{maxvisitorscount}!='1'}die{/_endif} am {maxvisitorsday} online war{_if_{maxvisitorscount}!='1'}en{/_endif}. <br> <br> Mitglieder, die heute online waren: {userlistonlinetoday} </td> </tr> <tr> <td valign="top" align="left" colspan="2"> <br> <b>Statistik</b> <hr style="height: 0px; border: dotted #999999 0px; border-top-width: 1px; "> </td> </tr> <tr> <td class="Cmite" valign="top" align="left"> Beiträge insgesamt: <b>{posts}</b> <b>•</b> Themen insgesamt: <b>{topics}</b> <b>•</b> Mitglieder insgesamt: <b>{users}</b> <b>•</b> Neuestes Mitglied: <a href="index.php?user-details-{id}">{name}</a> </td> </tr> </table> <br /> <br /> <table cellspacing="0" cellpadding="0" border="0" align="center" valign="top"> <tr> <td width="33"> <img src="include/images/forum/nord.gif" alt="neue Beiträge" border="0"> </td> <td width="200" valign="middle">neue Beiträge</td> <td width="33"> <img src="include/images/forum/ord.gif" alt="keine neuen Beiträge" border="0"> </td> <td width="200" valign="middle">keine neuen Beiträge</td> <td width="33"> <img src="include/images/forum/cord.gif" alt="Thema geschlossen" border="0"> </td> <td width="200" valign="middle">Thema geschlossen</td> </tr> </table>
<table style="width:998px; height:26px; background:url(include/designs/bf4_template/images/forum/forum-info_footer.png) top center no-repeat" cellpadding="0" cellspacing="0" border="0"> <td width="25%" style="text-align:center;"><a href="index.php?forum-markallasread">{_lang_markallasread}</a></td> <td width="25%" style="text-align:center;"><a href="index.php?forum-aubt">{_lang_topicwithnoreply}</a></td> <td width="25%" style="text-align:center;"><a href="index.php?forum-augt">{_lang_newtopicssincelastvisit}</a></td> <td width="25%" style="text-align:center;"><a href="index.php?forum-aeit">{_lang_ownposts}</a></td> {EXPLODE}</table> <table style="width:998px; height:70px; background:url(include/designs/bf4_template/images/forum/forum-top.png) top center no-repeat" cellpadding="0" cellspacing="0" class="border" border="0"> <tr class=""> <td align="center" style="padding-top:25px; text-align: center;" colspan="0" text="#ffffff"><strong><a class="cforum" href="index.php?forum-showcat-{cid}">{cname}</a></strong></td> </tr></table> <table style="width:998px;" cellpadding="0" cellspacing="0" border="0"> {EXPLODE} <tr class="" style="width:998px; height:25px; background:url(include/designs/bf4_template/images/forum/wb_content_back2.png) top center no-repeat"> <td colspan="5"><strong> » <a href="index.php?forum-showcat-{cid}">{cname}</a></strong></td> </tr> {EXPLODE} </table> <table style="width:998px; height:66px; background:url(include/designs/bf4_template/images/forum/wb_content_back.png) top center no-repeat"> <tr> <td width="50px" style="padding-left:20px;" align="center" valign="middle"><img alt="" src="include/images/forum/{ORD}.png" width="40" height="41" border="0"></td> <td width="50%"><a href="index.php?forum-showtopics-{id}">{name}</a><br /><span class="smalfont">{besch} {mods}</span></td> <td width="20%" align="center"><span>{topics} Themen</span><br /><span>{posts} Antworten</span></td> <td width="35%"> <div align="left"> <img alt="avatar" src="include/images/forum/pfeil.png" style="border: 0px solid; padding-right:20px;" align="left"> <span> <a title="{topicl}" href="index.php?forum-showposts-{tid}-p{page}#{pid}">{topic}</a> <br /> {_lang_from}: {erst} {avatar} </span></div> </td> </tr></table><table style="width:998px;" cellpadding="0" cellspacing="0" border="0"> {EXPLODE}</table> <table style="width:998px; height:14px; background:url(include/designs/bf4_template/images/forum/wb_content_bottom.png) top center no-repeat" cellpadding="0" cellspacing="0" border="0"></table> <br /> <br /> <!--foren hinweis--> <table cellpadding="0" cellspacing="0" border="0" style="width:998px; height:69px; background:url(include/designs/bf4_template/images/forum/forum_info.png) top center repeat-x"><tr> <td width="20%" style="text-align:center;"><img width="34px" height="35px" src="include/images/forum/nord.png" alt="neue Beiträge" border="0"> {_lang_newposts}</td> <td width="20%" style="text-align:center;"><img width="34px" height="35px" src="include/images/forum/ord.png" alt="keine neuen Beiträge" border="0"> {_lang_nonewposts}</td> <td width="20%" style="text-align:center;"><img width="34px" height="35px" src="include/images/forum/cord.png" alt="Thema geschlossen" border="0"> {_lang_topicclosed}</td> <td width="20%" style="text-align:center;"><img width="34px" height="35px" src="include/images/forum/oalt.png" alt="Thema geschlossen" border="0"> Alte Themen</td> </tr></table> <!--foren hinweis ende--> <br /> <table class="" style="width:998px; height:44px" cellpadding="0" cellspacing="0"> <tr> <td valign="top" style="width:998px; height:46px; background:url(include/designs/bf4_template/images/forum/stats/s_top.png) top center no-repeat"></td> </tr> </table> <table class="" cellpadding="0" cellspacing="0"> <tr> <td valign="top" style="width:17px; height:141px; background:url(include/designs/bf4_template/images/forum/stats/s_1.png) top center repeat-y"></td> <td valign="top" style="width:480px; height:141px; background:url(include/designs/bf4_template/images/forum/stats/s_2.png) top center repeat-y"><div class="box"> {_lang_it} {istsind} {gesonline} {_lang_guestsonline,ofthem} {useronline} {_if_{useronline}=='1'}{_lang_registredand}{/_endif}{_if_{useronline}!='1'}{_lang_registrededand}{/_endif} {gastonline} {_lang_guests}<br /> {userliste}<br /><br />{newewst_user}<br /><br /><span>Wer war heute Online? </span>{userliste_today}</div></td> <td valign="top" style="width:5px; height:141px; background:url(include/designs/bf4_template/images/forum/stats/s_3.png) top center repeat-y"></td> <td valign="top" style="width:480px; height:141px; background:url(include/designs/bf4_template/images/forum/stats/s_4.png) top center repeat-y"><div class="box"> Legende: <span class="Projektleiter">Projektleiter</span>, <span class="Site-Admin">Site-Admin</span>, <span class="Co-Admin">Co-Admin</span>, <span class="Moderator">Moderator</span>, <span class="Coder">Coder</span>, <span class="Designer">Designer</span>, User <br /><br /> Statistik:<br /> {users} {_lang_membershaveritten} {posts} {_lang_postsin} {topics} {_lang_topics}<br /> Besucher: heute {heute}, gestern {gestern}, gesamt {gesamt}<br /> </div></td> <td valign="top" style="width:16px; height:141px; background:url(include/designs/bf4_template/images/forum/stats/s_5.png) top center repeat-y"></td> </tr> </table> <table class="" style="width:998px; height:18px" cellpadding="0" cellspacing="0"> <tr> <td valign="top" style="width:998px; height:18px; background:url(include/designs/bf4_template/images/forum/stats/s_footer.png) top center no-repeat"></td> </tr> </table> <!--foren info ende--> <br /> <br /> {privmsgpopup}
$r['avatar'] = '<img src="' . $r['avatar'] . '" border="0" width="30" /><br />' ;
$r['avatar'] = '<img src="' . $r['avatar'] . '" border="0" width="30" alt="'.$r['erst'].'" title="'.$r['erst'].'" /><br />' ;
<?php # Copyright by: Manuel # Support: www.ilch.de defined ('main') or die ( 'no direct access' ); # check ob ein fehler aufgetreten ist. check_forum_failure($forum_failure); # toipc als gelesen markieren $_SESSION['forumSEE'][$fid][$tid] = time(); $title = $allgAr['title'].' :: Forum :: '.$aktTopicRow['name'].' :: Beiträge zeigen'; $hmenu = $extented_forum_menu.'<a class="smalfont" href="index.php?forum">Forum</a><b> » </b>'.aktForumCats($aktForumRow['kat']).'<b> » </b><a class="smalfont" href="index.php?forum-showtopics-'.$fid.'">'.$aktForumRow['name'].'</a><b> » </b>'; $hmenu .= $aktTopicRow['name'].$extented_forum_menu_sufix; $design = new design ( $title , $hmenu, 1); $design->header(); # Topic Hits werden eins hochgesetzt. db_query('UPDATE `prefix_topics` SET hit = hit + 1 WHERE id = "'.$tid.'"'); # mehrere seiten fals gefordert $limit = $allgAr['Fpanz']; // Limit $page = ($menu->getA(3) == 'p' ? $menu->getE(3) : 1 ); $MPL = db_make_sites ($page , "WHERE tid = ".$tid , $limit , 'index.php?forum-showposts-'.$tid , 'posts' ); $anfang = ($page - 1) * $limit; $antworten = ''; if (($aktTopicRow['stat'] == 1 AND $forum_rights['reply'] == TRUE) OR ($_SESSION['authright'] <= '-7' OR $forum_rights['mods'] == TRUE)) { $antworten = '<a href="index.php?forum-newpost-'.$tid.'"><img src="include/images/forum/antw.png" width="100" height="20" alt="'.$lang['answer'].'" /></a>'; } $class = 'Cmite'; $tpl = new tpl ( 'forum/showpost' ); $ar = array ( 'SITELINK' => $MPL, 'tid' => $tid, 'ANTWORTEN' => $antworten, 'TOPICNAME' => $aktTopicRow['name'] ); $tpl->set_ar_out($ar,0); $i = $anfang +1; $ges_ar = array ('wurstegal', 'maennlich', 'weiblich'); $erg = db_query("SELECT geschlecht, prefix_posts.id,txt,time,erstid,erst,sig,avatar,posts FROM `prefix_posts` LEFT JOIN prefix_user ON prefix_posts.erstid = prefix_user.id WHERE tid = ".$tid." ORDER BY time LIMIT ".$anfang.",".$limit); while($row = db_fetch_assoc($erg)) { $class = ( $class == 'Cnorm' ? 'Cmite' : 'Cnorm' ); # define some vars. $row['sig'] = ( empty($row['sig']) ? '' : '<br /><hr style="width: 50%;" align="left">'.bbcode($row['sig']) ); $row['TID'] = $tid; $row['class'] = $class; $row['date'] = date ('d.m.Y - H:i:s', $row['time'] ); $row['delete'] = ''; $row['change'] = ''; if (!is_numeric($row['geschlecht'])) { $row['geschlecht'] = 0; } if (file_exists($row['avatar'])) { $row['avatar'] = '<br /><br /><img src="'.$row['avatar'].'" alt="User Pic" border="0" /><br />'; } elseif ($allgAr['forum_default_avatar']) { $row['avatar'] = '<br /><br /><img src="include/images/avatars/'.$ges_ar[$row['geschlecht']].'.jpg" alt="User Pic" border="0" /><br />'; } else { $row['avatar'] = ''; } $row['rang'] = userrang ($row['posts'],$row['erstid']); $row['txt'] = (isset($_GET['such']) ? markword(bbcode ($row['txt']),$_GET['such']) : bbcode ($row['txt']) ); $row['i'] = $i; $row['page'] = $page; if ( $row['posts'] != 0 ) { $row['erst'] = '<a href="index.php?user-details-'.$row['erstid'].'"><b>'.$row['erst'].'</b></a>'; } elseif ( $row['erstid'] != 0 ) { $row['rang'] = 'gelöschter User'; $r['avatar'] = '<img src="' . $r['avatar'] . '" border="0" width="30" alt="'.$r['erst'].'" title="'.$r['erst'].'" /><br />' ; } if ($forum_rights['mods'] == TRUE AND $i>1) { $row['delete'] = '<a href="index.php?forum-delpost-'.$tid.'-'.$row['id'].'">'.$lang['delete'].'</a>'; } if ( $forum_rights['reply'] == TRUE AND loggedin() ) { $row['change'] = ' <a href="index.php?forum-editpost-'.$tid.'-'.$row['id'].'">'.$lang['change'].'</a>'; } $row['posts'] = ($row['posts']?'<br />Posts: '.$row['posts']:'').'<br />'; $tpl->set_ar_out($row,1); $i++; } $tpl->set_ar_out( array ( 'SITELINK' => $MPL, 'ANTWORTEN' => $antworten ) , 2 ); if (loggedin()) { if ($menu->get(3) == 'topicalert') { if (1 == db_result(db_query("SELECT COUNT(*) FROM prefix_topic_alerts WHERE uid = ".$_SESSION['authid']." AND tid = ".$tid),0)) { db_query("DELETE FROM prefix_topic_alerts WHERE uid = ".$_SESSION['authid']." AND tid = ".$tid); } else { db_query("INSERT INTO prefix_topic_alerts (tid,uid) VALUES (".$tid.", ".$_SESSION['authid'].")"); } } echo 'Optionen:'; if (1 == db_result(db_query("SELECT COUNT(*) FROM prefix_topic_alerts WHERE uid = ".$_SESSION['authid']." AND tid = ".$tid),0)) { echo '<br />- <a href="index.php?forum-showposts-'.$tid.'-topicalert">'.$lang['nomailonreply'].'</a><br />'; } else { echo '<br />- <a href="index.php?forum-showposts-'.$tid.'-topicalert">'.$lang['mailonreply'].'</a><br />'; } } if ( $forum_rights['mods'] == TRUE ) { $tpl->set ( 'status', ($aktTopicRow['stat'] == 1 ? $lang['close'] : $lang['open'] ) ); $tpl->set ( 'festnorm', ($aktTopicRow['art'] == 0 ? $lang['fixedtopic'] : $lang['normaltopic'] ) ); $tpl->set('tid',$tid); $tpl->out(3); } $design->footer(); ?>
<?php # Copyright by: Manuel # Support: www.ilch.de # © searchgame.de & .org By Norman, all rights reserved. defined ('main') or die ( 'no direct access' ); $title = $allgAr['title'].' :: Forum'; $hmenu = $extented_forum_menu.'Forum'.$extented_forum_menu_sufix; $design = new design ( $title , $hmenu, 1); $design->header(); if ($menu->get(1) == 'markallasread') { user_markallasread (); } $tpl = new tpl ( 'forum/showforum' ); $tpl->out (0); $category_array = array(); $forum_array = array(); $q = "SELECT a.id, a.cid, a.name, a.besch, a.topics, a.posts, b.name as topic, c.id as pid, c.tid, b.rep, c.erst, c.erstid, c.time, a.cid, k.name as cname, u.avatar FROM prefix_forums a LEFT JOIN prefix_forumcats k ON k.id = a.cid LEFT JOIN prefix_posts c ON a.last_post_id = c.id LEFT JOIN prefix_topics b ON c.tid = b.id LEFT JOIN prefix_user u ON c.erstid = u.id LEFT JOIN prefix_groupusers vg ON vg.uid = ".$_SESSION['authid']." AND vg.gid = a.view LEFT JOIN prefix_groupusers rg ON rg.uid = ".$_SESSION['authid']." AND rg.gid = a.reply LEFT JOIN prefix_groupusers sg ON sg.uid = ".$_SESSION['authid']." AND sg.gid = a.start WHERE ((".$_SESSION['authright']." <= a.view AND a.view < 1) OR (".$_SESSION['authright']." <= a.reply AND a.reply < 1) OR (".$_SESSION['authright']." <= a.start AND a.start < 1) OR vg.fid IS NOT NULL OR rg.fid IS NOT NULL OR sg.fid IS NOT NULL OR -9 = ".$_SESSION['authright'].") AND k.cid = 0 ORDER BY k.pos, a.pos"; $erg1 = db_query($q); $xcid = 0; while ($r = db_fetch_assoc($erg1) ) { $r['topicl'] = $r['topic']; $r['topic'] = html_enc_substr($r['topic'],0,23); $r['ORD'] = forum_get_ordner($r['time'],$r['id']); $r['mods'] = getmods($r['id']); $r['datum'] = date('d.m.y - H:i', $r['time']); $r['page'] = ceil ( ($r['rep']+1) / $allgAr['Fpanz'] ); $r['avatar'] = '<img src="' . $r['avatar'] . '" border="0" /><br />' ; $tpl->set_ar ($r); if ($r['cid'] <> $xcid) { $tpl->out(1); //Unterkategorien $sql = db_query("SELECT DISTINCT a.name as cname, a.id as cid FROM `prefix_forumcats` a LEFT JOIN `prefix_forums` b ON a.id = b.cid WHERE a.cid = {$r['cid']} AND a.id = b.cid ORDER BY a.pos, a.name"); while ($ucat = db_fetch_assoc($sql)) { $r['avatar'] = '<img src="' . $r['avatar'] . '" border="0" width="5" alt="'.$r['erst'].'" title="'.$r['erst'].'" /><br />' ; $tpl->set_ar_out($ucat,2); } //Unterkategorien - Ende $xcid = $r['cid']; } $tpl->set_ar_out($r,3); } function allianz(){ $allianz = ''; $allyErg = db_query("SELECT * FROM `prefix_partners` ORDER BY RAND() LIMIT 0,1"); while($allyRow = db_fetch_object($allyErg)) { $allianz .= '<a href="'.$allyRow->link.'" target="_blank"><img src="'.$allyRow->banner.'" alt="'.$allyRow->name.'" border="0"></a> '; } return($allianz); } function newewstuser(){ $lastmember = db_query ("SELECT a.id, a.name, a.regist, a.llogin, b.bez, a.spezrank FROM `prefix_user` a LEFT JOIN prefix_ranks b ON b.id = a.spezrank WHERE a.llogin > '". $dif."' ORDER BY regist DESC limit 1"); while($mem = db_fetch_assoc($lastmember)) { $user = 'Unser neuestes Mitglied heißt: <a class="'.$mem['bez'].'" href="index.php?user-details-'.$mem['id'].'">'.$mem['name'].'</a>'; } return ($user); } function user_online_today_liste(){ $OnListe = ''; $dif = mktime(0,0,0,date('m'),date('d'),date('Y')); $erg = db_query("SELECT a.id, a.name, a.llogin, b.bez, a.spezrank FROM `prefix_user` a LEFT JOIN prefix_ranks b ON b.id = a.spezrank WHERE a.llogin > '". $dif."' ORDER BY llogin"); while($row = db_fetch_object($erg)) { if ( $row->spezrank <> 0 ) { $OnListe .= '<a class="'.$row->bez.'" title="'.$row->bez.'" href="index.php?user-details-'.$row->id.'">'.$row->name.'</a>, '; } else { $OnListe .= '<a href="index.php?user-details-'.$row->id.'">'.$row->name.'</a>, '; } } $OnListe = substr($OnListe,0,strlen($OnListe) - 3); return ($OnListe); } # statistic # $ges_online_user = ges_online(); $heute = date ('Y-m-d'); $stats_array = array ( 'privmsgpopup' => check_for_pm_popup (), 'topics' => db_result(db_query("SELECT COUNT(ID) FROM `prefix_topics`"),0), 'posts' => db_result(db_query("SELECT COUNT(ID) FROM `prefix_posts`"),0), 'users' => db_result(db_query("SELECT COUNT(ID) FROM `prefix_user`"),0), 'istsind' => ( $ges_online_user > 1 ? 'sind' : 'ist' ), 'gesonline' => $ges_online_user, 'heute' => @db_result(db_query("SELECT count FROM prefix_counter WHERE date = '".$heute."'"),0), 'gestern' => @db_result(db_query('SELECT count FROM prefix_counter WHERE date < "'.$heute.'" ORDER BY date DESC LIMIT 1'),0), 'gesamt' => db_result(db_query("SELECT SUM(count) FROM prefix_counter"),0), 'gastonline' => ges_gast_online(), 'useronline' => ges_user_online(), 'allianz' => allianz(), 'userliste' => user_online_liste(), 'userliste_today' => user_online_today_liste(), 'newewst_user' => newewstuser(), ); $tpl->set_ar_out($stats_array,4); $design->footer(); ?>
<?php # Copyright by: Manuel # Support: www.ilch.de # © searchgame.de & .org By Norman, all rights reserved. defined ('main') or die ( 'no direct access' ); $title = $allgAr['title'].' :: Forum'; $hmenu = $extented_forum_menu.'Forum'.$extented_forum_menu_sufix; $design = new design ( $title , $hmenu, 1); $design->header(); if ($menu->get(1) == 'markallasread') { user_markallasread (); } $tpl = new tpl ( 'forum/showforum' ); $tpl->out (0); $category_array = array(); $forum_array = array(); $q = "SELECT a.id, a.cid, a.name, a.besch, a.topics, a.posts, b.name as topic, c.id as pid, c.tid, b.rep, c.erst, c.erstid, c.time, a.cid, k.name as cname, u.avatar FROM prefix_forums a LEFT JOIN prefix_forumcats k ON k.id = a.cid LEFT JOIN prefix_posts c ON a.last_post_id = c.id LEFT JOIN prefix_topics b ON c.tid = b.id LEFT JOIN prefix_user u ON c.erstid = u.id LEFT JOIN prefix_groupusers vg ON vg.uid = ".$_SESSION['authid']." AND vg.gid = a.view LEFT JOIN prefix_groupusers rg ON rg.uid = ".$_SESSION['authid']." AND rg.gid = a.reply LEFT JOIN prefix_groupusers sg ON sg.uid = ".$_SESSION['authid']." AND sg.gid = a.start WHERE ((".$_SESSION['authright']." <= a.view AND a.view < 1) OR (".$_SESSION['authright']." <= a.reply AND a.reply < 1) OR (".$_SESSION['authright']." <= a.start AND a.start < 1) OR vg.fid IS NOT NULL OR rg.fid IS NOT NULL OR sg.fid IS NOT NULL OR -9 = ".$_SESSION['authright'].") AND k.cid = 0 ORDER BY k.pos, a.pos"; $erg1 = db_query($q); $xcid = 0; while ($r = db_fetch_assoc($erg1) ) { $r['topicl'] = $r['topic']; $r['topic'] = html_enc_substr($r['topic'],0,23); $r['ORD'] = forum_get_ordner($r['time'],$r['id']); $r['mods'] = getmods($r['id']); $r['datum'] = date('d.m.y - H:i', $r['time']); $r['page'] = ceil ( ($r['rep']+1) / $allgAr['Fpanz'] ); $r['avatar'] = '<img src="' . $r['avatar'] . '" border="0" /><br />' ; $tpl->set_ar ($r); if ($r['cid'] <> $xcid) { $tpl->out(1); //Unterkategorien $sql = db_query("SELECT DISTINCT a.name as cname, a.id as cid FROM `prefix_forumcats` a LEFT JOIN `prefix_forums` b ON a.id = b.cid WHERE a.cid = {$r['cid']} AND a.id = b.cid ORDER BY a.pos, a.name"); while ($ucat = db_fetch_assoc($sql)) { $r['avatar'] = '<img src="' . $r['avatar'] . '" border="0" width="5" alt="'.$r['erst'].'" title="'.$r['erst'].'" /><br />' ; $tpl->set_ar_out($ucat,2); } //Unterkategorien - Ende $xcid = $r['cid']; } $tpl->set_ar_out($r,3); } function allianz(){ $allianz = ''; $allyErg = db_query("SELECT * FROM `prefix_partners` ORDER BY RAND() LIMIT 0,1"); while($allyRow = db_fetch_object($allyErg)) { $allianz .= '<a href="'.$allyRow->link.'" target="_blank"><img src="'.$allyRow->banner.'" alt="'.$allyRow->name.'" border="0"></a> '; } return($allianz); } function newewstuser(){ $lastmember = db_query ("SELECT a.id, a.name, a.regist, a.llogin, b.bez, a.spezrank FROM `prefix_user` a LEFT JOIN prefix_ranks b ON b.id = a.spezrank WHERE a.llogin > '". $dif."' ORDER BY regist DESC limit 1"); while($mem = db_fetch_assoc($lastmember)) { $user = 'Unser neuestes Mitglied heißt: <a class="'.$mem['bez'].'" href="index.php?user-details-'.$mem['id'].'">'.$mem['name'].'</a>'; } return ($user); } function user_online_today_liste(){ $OnListe = ''; $dif = mktime(0,0,0,date('m'),date('d'),date('Y')); $erg = db_query("SELECT a.id, a.name, a.llogin, b.bez, a.spezrank FROM `prefix_user` a LEFT JOIN prefix_ranks b ON b.id = a.spezrank WHERE a.llogin > '". $dif."' ORDER BY llogin"); while($row = db_fetch_object($erg)) { if ( $row->spezrank <> 0 ) { $OnListe .= '<a class="'.$row->bez.'" title="'.$row->bez.'" href="index.php?user-details-'.$row->id.'">'.$row->name.'</a>, '; } else { $OnListe .= '<a href="index.php?user-details-'.$row->id.'">'.$row->name.'</a>, '; } } $OnListe = substr($OnListe,0,strlen($OnListe) - 3); return ($OnListe); } # statistic # $ges_online_user = ges_online(); $heute = date ('Y-m-d'); $stats_array = array ( 'privmsgpopup' => check_for_pm_popup (), 'topics' => db_result(db_query("SELECT COUNT(ID) FROM `prefix_topics`"),0), 'posts' => db_result(db_query("SELECT COUNT(ID) FROM `prefix_posts`"),0), 'users' => db_result(db_query("SELECT COUNT(ID) FROM `prefix_user`"),0), 'istsind' => ( $ges_online_user > 1 ? 'sind' : 'ist' ), 'gesonline' => $ges_online_user, 'heute' => @db_result(db_query("SELECT count FROM prefix_counter WHERE date = '".$heute."'"),0), 'gestern' => @db_result(db_query('SELECT count FROM prefix_counter WHERE date < "'.$heute.'" ORDER BY date DESC LIMIT 1'),0), 'gesamt' => db_result(db_query("SELECT SUM(count) FROM prefix_counter"),0), 'gastonline' => ges_gast_online(), 'useronline' => ges_user_online(), 'allianz' => allianz(), 'userliste' => user_online_liste(), 'userliste_today' => user_online_today_liste(), 'newewst_user' => newewstuser(), ); $tpl->set_ar_out($stats_array,4); $design->footer(); ?>
$r['avatar'] = '<img src="' . $r['avatar'] . '" border="0" width="5" alt="'.$r['erst'].'" title="'.$r['erst'].'" /><br />'
$r['avatar'] = '<img src="' . $r['avatar'] . '" border="0" width="5" alt="'.$r['erst'].'" title="'.$r['erst'].'" style="float: left" /><br />'
<span> {avatar} <a title="{topicl}" href="index.php?forum-showposts-{tid}-p{page}#{pid}">{topic}</a> <br /> {_lang_from}: {erst} </span>
$r['avatar'] = '<img src="' . $r['avatar'] . '" border="0" width="5" alt="'.$r['erst'].'" title="'.$r['erst'].'" style="float: left; padding-right: 5px" /><br />'
while ($row = db_fetch_object($erg)) { if ($row->geschlecht == 1) { $geschlecht = 'maennlich.jpg'; }elseif ($row->geschlecht == 2) { $geschlecht = 'weiblich.jpg'; }else{ $geschlecht = 'wurstegal.jpg'; } if ( file_exists($row->avatar)) { $avatar = '<img src="'.$row->avatar.'" width="80px" height="80px" border="0">'; }else{ $avatar = '<img src="include/images/avatars/'.$geschlecht.'" width="80px" height="80px" border="0">'; }
Geschlossen | ||
Zurück zu Allgemein |