Moin,
wie kann ich es anstellen das im Forum anstatt z.B Join Us als Text da ein Kategorie Banner zu sehen ist?
Gruß
Hier kann eine Notiz zum Merk-Eintrag hinzugefügt werden (optional)
Geschlossen |
<a href="index.php?forum-showcat-{cid}">{cname}</a>
<a href="index.php?forum-showcat-{cid}"><img src="pfadzumbild/{cname}.jpg" alt="{cname}" /></a>
$r['cname'] = '<img src="pfad/'.$r['cname'].'.jpg" alt="'.$r['cname'].'">';
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'] ); $tpl->set_ar ($r);
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['cname'] = '<img src="pfad/'.$r['cname'].'.jpg" alt="'.$r['cname'].'">'; $tpl->set_ar ($r);
$r['cname'] = '<img style="margin:-4px;" src="pfad/'.$r['cname'].'.jpg" alt="'.$r['cname'].'">';
$r['cname'] = '<img style="margin:0 -4px 0 -4px;" src="pfad/'.$r['cname'].'.jpg" alt="'.$r['cname'].'">';
@charset "utf-8"; /* CSS Document */ body { background-color: #333333; background-image: url('Bilder/DDvX_bg.jpg') ; background-attachment:fixed; background-position: 50% 0%; background-repeat:no-repeat; margin:0; padding:0; } td { font-family: Verdana; font-size: 12px; color: #FFF; } a, #left_col .Cmite a, #left_col .Cnorm a, #left_col .Cdark a { color: #3CF; font-family: Verdana; font-size: 11px; text-decoration: none; } a. { color: #666; } a:hover { text-decoration: none; } a.box { color: #3CF; font-family: Verdana; font-size: 11px; text-decoration: underline; } a.box:hover { text-decoration: none; color: #39F; } .Chead { background: #333; color: #ffffff; } .Chead a { color: #3CF; } .Chead td, .Chead td strong, .Chead h4, .Chead td b { background: #16639b; color: #ffffff; } .Callg { background-color: #EFEFEF; color: #FFF; } .Callg td { color: #ffffff; } .Cnorm { background-color: #222222; } .Cmite { background-color: #222222; } .Cdark { background-color: #222; } .rand { border: solid #222 1px; } .smalfont { font-size: 10px; text-decoration: none; } .border { background-color: #; } hr { height: 0px; border: solid #003366 0px; border-top-width: 1px; } input, textarea, select { color: #000000; font: 12px Verdana; border-color: #185685; border-width: 1px; border-style: solid; font-weight: none; text-decoration: none; background-color: #EFEFEF; }
<table width="100%" cellpadding="0" cellspacing="0" class="border" border="0"> <tr class="Chead" > <td > <table width="100%" cellpadding="4" cellspacing="0" border="0"> <th width="58%" colspan="2" align="center" style="font-size:x-small;">{_lang_board}</th> <th width="6%" align="center" valign="middle"style="font-size:x-small;">{_lang_post}</th> <th width="6%" align="center" valign="middle"style="font-size:x-small;">{_lang_topic}</th> <th width="25%" align="center"style="font-size:x-small;">{_lang_lastpost}</th> </table></td></tr> {EXPLODE} <tr class="Cdark"> <td colspan="5" height="20"><strong><a href="index.php?forum-showcat-{cid}" style="color:#000000"> {cname}</a></strong></td> </tr> </table> <table width="100%" cellpadding="4" cellspacing="1" class="border" border="0">{EXPLODE}<tr class="Cmite"> <td colspan="5"><strong> » <a href="index.php?forum-showcat-{cid}" style="color:#FFFFFF">{cname}</a></strong></td> </tr>{EXPLODE}<tr class="Cnorm" cellspacing="1"> <td width="5%" align="center" valign="middle" class="Cdark"><img alt="" src="include/images/forum/{ORD}.png" border="0"></td> <td width="53%" class="Cnorm"> <a href="index.php?forum-showtopics-{id}">{name}</a> <br /> <span class="smalfont">{besch} {mods} </span> </td> <td align="center" class="Cdark" width="6%"><span class="smalfont">{posts}</span></td> <td align="center" class="Cdark" width="6%"><span class="smalfont">{topics}</span></td> <td class="Cdark" width="25%"> <span class="smalfont"> <a class="smalfont" title="{topicl}" href="index.php?forum-showposts-{tid}-p{page}#{pid}" style="color:#FFFFFF">{topic} <img src="include/images/forum/post.png" border="0"></a> <br /> {_lang_from}: {erst} </span> </td> </tr>{EXPLODE} </table> <table cellpadding="0" cellspacing="0" border="0" width="100%"><tr> <td width="50%" valign="top"> <a href="index.php?forum-markallasread">{_lang_markallasread}</a> </td><td width="50%" style="text-align: right" valign="top"> <a href="index.php?search-augt">{_lang_newtopicssincelastvisit}</a> <br /><a href="index.php?search-aubt">{_lang_topicwithnoreply}</a> <br /><a href="index.php?search-aeit">{_lang_ownposts}</a> </td></tr></table> <br /> <br /> <table width="100%" border="0" cellpadding="5" cellspacing="1" class="border"> <tr class="Cmite"> <td class="Cdark">{_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} </td> </tr> <tr class="Cmite"> <td><p><b>{users}</b> {_lang_membershaveritten} <b>{posts}</b> {_lang_postsin} <b>{topics}</b> {_lang_topics}</p> </td> </tr> <tr class="Cnorm"> <td class="Cdark"><img src="include/images/forum/ntop.png" alt="neue Beiträge" border="0" align="middle" /> {_lang_newposts} <img src="include/images/forum/top.png" alt="keine neuen Beiträge" border="0" align="middle" /> {_lang_nonewposts} <img src="include/images/forum/ctop.png" alt="Thema geschlossen" border="0" align="middle" /> {_lang_topicclosed} <img src="include/images/forum/htop.png" alt="brisantes Thema" border="0" align="middle" /> brisantes Thema</td> </tr> {privmsgpopup} </table> <br />
.Chead td, .Chead td strong, .Chead h4, .Chead td b { background: #16639b; color: #ffffff; padding:2px; }
a href="index.php?forum-showcat-{cid}"><img src="include/designs/Blackline_v2/Bilder/test.jpg{cname}.jpg</a>
a href="index.php?forum-showcat-{cid}"><img src="include/designs/Blackline_v2/Bilder{cname}.jpg</a>
a href="index.php?forum-showcat-{cid}"><img src="include/designs/Blackline_v2/Bilder/{cname}.jpg</a>
<tr class="Cdark"> <a href="index.php?forum-showcat-{cid}"><img src="include/images/forum/forumcats/{cname}.png</a> </tr>
<a href="index.php?forum-showcat-{cid}"><img src="include/images/forum/forumcats/{cname}.png" alt="{cname}"></a>
include/images/forum/forumcats/liegen? Sind irgentwelche Automatismen die ich noch nicht gesehen habe? Bitte um Aufklärung
<?php # Copyright by: Manuel Staechele # 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.'"'); $erg = db_query("SELECT fid FROM `prefix_posts` WHERE tid = ".$tid); $row = db_fetch_assoc($erg); $newth = '<a href="index.php?forum-newtopic-'.$row['fid'].'"><img src="include/images/forum/newth.png" border="0"></a>'; # 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" border="0"></a>'; } $class = 'Cmite'; $tpl = new tpl ( 'forum/showpost' ); $ar = array ( 'SITELINK' => $MPL, 'tid' => $tid, 'ANTWORTEN' => $antworten, 'TOPICNAME' => $aktTopicRow['name'], 'HMENU' => $hmenu, 'NEWTH' => $newth ); $tpl->set_ar_out($ar,0); $i = $anfang +1; $ges_ar = array ('wurstegal', 'maennlich', 'weiblich'); ################################## #Forenmod by matthias-schlich.de - Vorlage von Benjamin Rau #Posts $erg = db_query("SELECT geschlecht, prefix_posts.id,txt,time,erstid,erst,sig,icq,avatar,posts,steam 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' ); $icq1 = str_replace("-","",$row['icq']); $icq2 = str_replace(" ","",$icq1); // icq abfrage // 0 - keine ICQ abfrage // 1 - ICQ standartbilder bei &design= kann man zwischen den 26 verschiedenen icq bildern wechseln // 2 - für eigne ICQ Statsubilder $own_pics = "1"; $icqdesign = "25"; if ($own_pics == "1") { if (is_numeric($icq2) ){ $row['icq'] = '<a href="http://www.icq.com/whitepages/cmd.php?uin='.$icq2.'&action=add"><img src="http://web.icq.com/whitepages/online?web='.$icq2.'&img='.$icqdesign.'" border="0"></a>'; } else {$row['icq'] = '';} } elseif ($own_pics == "0"){ $row['icq'] = '';} else{ if (is_numeric($icq2) ){ // Eigene ICQ-Bilder $status = (icq_status($icq2)); if ($status == "1"){ $row['icq'] = '<a href="http://www.icq.com/whitepages/cmd.php?uin='.$icq2.'&action=add"><img src="include/images/forum/icqonline.png" border="0"></a>'; }elseif ($status == "0"){ $row['icq'] = '<a href="http://www.icq.com/whitepages/cmd.php?uin='.$icq2.'&action=add"><img src="include/images/forum/icqoffline.png" border="0"></a>'; }elseif ($status == "2"){ $row['icq'] = '<a href="http://www.icq.com/whitepages/cmd.php?uin='.$icq2.'&action=add"><img src="include/images/forum/icqinactive.png" border="0"></a>'; }else {$row['icq'] = '';} }else {$row['icq'] = '';} } # 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 (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['rang2'] = userrang ($row['posts'],$row['erstid']); $rank_name = $row['rang2']; $row['txt'] = (isset($_GET['such']) ? markword(bbcode ($row['txt']),$_GET['such']) : bbcode ($row['txt']) ); $row['i'] = $i; if ( $row['erstid'] != '' ) { $user_row = db_fetch_assoc(db_query("SELECT posts,regist FROM prefix_user WHERE id = ".$row['erstid'])); $posts = $row['posts']; $row['posts'] = 'Beiträge: '.$row['posts'].'<br />'; if ( $posts == '' ) { $row['posts'] = '<br>Nicht registriert';} #Ranking Balken #Grafiken definieren $rank_01 = '<img src="include/images/forum/rank/rank01.png" alt="" border="0"><br>'; $rank_02 = '<img src="include/images/forum/rank/rank02.png" alt="" border="0"><br>'; $rank_03 = '<img src="include/images/forum/rank/rank03.png" alt="" border="0"><br>'; $rank_04 = '<img src="include/images/forum/rank/rank04.png" alt="" border="0"><br>'; $rank_05 = '<img src="include/images/forum/rank/rank05.png" alt="" border="0"><br>'; #Bezugnehmen auf das Ranking des users if ( $row['posts'] != '' ) { $row['rang'] = $rank_name.'<br>'; if ($posts <= '200') { $row['rang'] .= $rank_01; } elseif ($posts <= '500') { $row['rang'] .= $rank_02;} elseif ($posts <= '800') { $row['rang'] .= $rank_03; } elseif ($posts < '1000') { $row['rang'] .= $rank_04; } elseif ($posts >= '1000') { $row['rang'] .= $rank_05; } } else {$row['rang'] .= ""; } } #User Details if ( $posts != '' ) { $abf1 = 'SELECT * FROM prefix_user where id = '.$row["erstid"]; $erg1 = db_query($abf1); $user = db_fetch_object($erg1); $zeit = date('d. M Y',$user->regist); $llogin = date('d. M Y',$user->llogin); $ort = $user->wohnort; $www = $user->homepage; $email = $user->opt_mail; $pm = $user->opt_pm; $land = $user->staat; $steam = $user->steam; #Flagge if ($land != '') {$row['land'] = '<img src="include/images/flags/'.$land.'" >';} else{$row['land'] = '';} #Dabei seit $row['details'] = "<br><br>Dabei seit: ".$zeit."<br>"; #Wohnort if ($ort != ''){$row['details'] .= "Wohnort: ".$ort."<br>";} #Homepage if ($www != ''){$row['www'] = '<a href="'.$www.'" target="_blank"><img src="include/images/forum/www.png" border="0" alt="Website des Users besuchen"></a>';} #Steam if ($steam != ''){$row['steam'] = '<img src="include/steamprofile/spimage.php?id='.$row['steam'].'" />';} #Steam if ($steam != ''){$row['steam'] = '<img src="include/steamprofile/spimage.php?id='.$row['steam'].'" />';} if ($www != ''){$row['www'] = '<a href="http://steamcommunity.com/id/'.$row['steam'].'"><img src="include/images/forum/www.png" border="0" alt="Website des Users besuchen"></a>';} #Letzter Login $row['details'] .= "Letzter Login: ".$llogin."<br>"; #PM if ($pm == '1'){ $row['pm'] = "<a href='?forum-privmsg-new=0&empfid=".$row['erstid']."'><img src='include/images/forum/pm.png' border='0' alt='Private Nachricht an den User senden'></a>"; }else{$row['pm'] = '';} #email if ($email == '1'){ $row['email'] = "<a href='?user-mail-".$row['erstid']."'><img src='include/images/forum/email.png' border='0' alt='E-Mail an den User senden'></a>"; }else{$row['email'] = '';} } else { $row['details'] = ""; $row['land'] = ''; $row['pm'] = ''; $row['email'] = ''; $row['www'] = ''; } if ( $posts != '' ) { #User Online o Offline $abf1 = "SELECT * FROM prefix_online where uid = ".$row['erstid']; $erg1 = db_query($abf1); $status = db_fetch_object($erg1); if ($status->uid == $row['erstid']) { $row['online'] = ' <img src="include/images/forum/uonline.png" border="0">'; } else { $row['online'] = ' <img src="include/images/forum/uoffline.png" border="0">'; } } else {$row['online'] = '';} # #Edit Ende ################################## $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'; } 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 />'.$row['posts']:'').'<br />'; $tpl->set_ar_out($row,1); $i++; } $tpl->set_ar_out( array ( 'SITELINK' => $MPL, 'ANTWORTEN' => $antworten ) , 2 ); // anfang qpost if (loggedin()) { $dppk_time = time(); $time = time(); if (!isset($_SESSION['klicktime'])) { $_SESSION['klicktime'] = 0; } $topic = ''; $txt = ''; $xnn = ''; if (isset($_POST['txt_qp'])) { $txt = trim(escape($_POST['txt_qp'], 'textarea')); } $tpl = new tpl ('forum/qpost'); $ar = array ( 'txt_qp' => escape_for_fields(unescape($txt)), 'tid' => $tid, ); $tpl->set_ar_out($ar,1); if (($_SESSION['klicktime'] + 150) > $dppk_time OR empty($txt) OR !empty($_POST['priview']) OR (empty($_POST['Gname']) AND !loggedin())) { } else { # save qpost $_SESSION['klicktime'] = $dppk_time; $design = new design ( $title , $hmenu, 1); $design->header(); if (loggedin()) { $uid = $_SESSION['authid']; $erst = escape($_SESSION['authname'],'string'); db_query("UPDATE `prefix_user` set posts = posts+1 WHERE id = ".$uid); } else { $erst = $xnn; $uid = 0; } db_query ("INSERT INTO `prefix_posts` (tid,fid,erst,erstid,time,txt) VALUES ( ".$tid.", ".$fid.", '".$erst."', ".$uid.", ".$time.", '".$txt."')"); $pid = db_last_id(); db_query("UPDATE `prefix_topics` SET last_post_id = ".$pid.", rep = rep + 1 WHERE id = ".$tid); db_query("UPDATE `prefix_forums` SET posts = posts + 1, last_post_id = ".$pid." WHERE id = ".$fid ); $page = ceil ( ($aktTopicRow['rep']+1) / $allgAr['Fpanz'] ); # topic als gelesen markieren $_SESSION['forumSEE'][$fid][$tid] = time(); wd ( array ( $lang['backtotopic'] => 'index.php?forum-showposts-'.$tid.'-p'.$page.'#'.$pid, $lang['backtotopicoverview'] => 'index.php?forum-showtopics-'.$fid ) , $lang['createpostsuccessful'] , 3 ); } } $tpl = new tpl ( 'forum/showpost' ); // end qpost 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(); ?>
Geschlossen | ||
Zurück zu Design und Templates |