kann sich bitte jemand melden, der bbcode 2.0 und das punktesystem auf seiner hp gleichzeitig laufen hat un der das anpassen kann?
verwendete ilchClan Version: 1.1
betroffene Homepage: mrkingkong.mr.funpic.de/index.php?
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' ); # 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><a class="smalfont" href="index.php?forum-showcat-'.$aktForumRow['cid'].'">'.$aktForumRow['kat'].'</a><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 ) { $antworten = '<b></ br> <a href="index.php?forum-newpost-'.$tid.'">Antworten</a> </b>'; } $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,url,sig,opt_mail, opt_pm, homepage, icq,avatar,posts,cpoints,fwarn,geschlecht,recht,status,regist 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['TID'] = $tid; $row['class'] = $class; $row['date'] = date ('d.m.Y - H:i:s', $row['time'] ); $row['delete'] = ''; $row['change'] = ''; $row['ohneavatar'] ='include/images/avatars/'.$ges_ar[$row['geschlecht']].'.gif'; if ($row['recht']==0) { $row['avatar'] = '<br /><br /><img src="'.(file_exists($row['avatar'])?$row['avatar']:(file_exists($row['ohneavatar'])?$row['ohneavatar']:'include/images/avatars/gast.gif')).'" alt="User Pic" border="0" /><br />'; } else { $row['avatar'] = '<br /><br /><img src="'.(file_exists($row['avatar'])?$row['avatar']:(file_exists($row['ohneavatar'])?$row['ohneavatar']:'include/images/avatars/keingast.gif')).'" alt="Kein Avatar" border="0" /><br />'; } $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; $row['page'] = $page; if($row['geschlecht']==1){ $row['gender']='<img src="include/images/forum/maennlich.gif" alt="männlich" border="0">'; } elseif($row['geschlecht']==2){ $row['gender']='<img src="include/images/forum/weiblich.gif" alt="weiblich" border="0">'; } else { $row['gender']='<img src="include/images/forum/zwitter.gif" alt="???" border="0">'; } $row['rrang'] = getlistrecht($row['recht']); $spezrank=spezrang($row['erstid']); if(!empty($spezrank)){$row['spezrank']='<br/> '.$spezrank;} else{$row['spezrank']='';} $rang=rangcount($row['erstid'],$row['posts'],$row['cpoints'],$row['fwarn']); $row['rang']=rangbildforum ($rang); $ast['0']='inaktiv'; $ast['1']='aktiv'; $ast['2']='gesperrt'; $row['aina']=$ast[$row['status']]; if (empty($row['aina'])){ $row['aina']='gast'; } $row['dabei'] = date('d.m.y',$row['regist']); /*** Verwarnungen ***/ $row['verw']=verwarnstu($row['fwarn'],1); if ( $row['erstid'] != 0 ) { $row['erst'] = '<b>'.$row['erst'].'</b>'; } 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';} if ($forum_rights['mods'] == TRUE AND $i>1) { $row['delete'] = '<a href="index.php?forum-delpost-'.$tid.'-'.$row['id'].'">Löschen</a>'; } if ( $forum_rights['reply'] == TRUE AND loggedin() ) { $row['change'] = ' <a href="index.php?forum-editpost-'.$tid.'-'.$row['id'].'">Ändern</a>'; } $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(); ?>
Geschlossen | ||
Zurück zu Installation und Upgrades |