Hallo
habe mir das script mal geladen und es funnzt auch soweit.
Leider zeigt er mir unter Internet Explorer ein Bild nicht an.
externer Link
hier mal das script
<?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>[ <a href="index.php?forum-newpost-'.$tid.'">'.$lang['answer'].'</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');
##################################
#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 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);
$own_pics = "0";
if ($own_pics == "0") {
if (is_numeric($icq2) ){
$row['icq'] = '<img src="http://status.icq.com/online.gif?icq='.$icq2.'&img=5">';
} else {$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'] = '';
$row['avatar'] = '<br /><br /><img src="'.(file_exists($row['avatar'])?$row['avatar']:'include/images/avatars/'.$ges_ar[$row['geschlecht']].'.jpg').'" alt="User Pic" 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;
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';}
#bild fuer rank
$rank_name = str_replace("<i>","",$rank_name);
$rank_name = str_replace("<b>","",$rank_name);
$rank_name = str_replace("</i>","",$rank_name);
$rank_name = str_replace("</b>","",$rank_name);
$row['rankpic'] = "<img src=\"include/images/ranks/".$rank_name.".jpg\" alt=\"".$rank_name."\"><br />";
$rankpic = $row['rankpic'];
#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 <= '25') { $row['rang'] .= $rank_01; }
elseif ($posts <= '50') { $row['rang'] .= $rank_02;}
elseif ($posts <= '75') { $row['rang'] .= $rank_03; }
elseif ($posts < '150') { $row['rang'] .= $rank_04; }
elseif ($posts >= '250') { $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;
#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>';}else{$row['www'] = '';}
#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'] = "";}
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">'; }
}
#
#Edit Ende
##################################
$row['page'] = $page;
if ( $row['erstid'] != 0 ) {
$row['erst'] = '<a href="index.php?user-details-'.$row['erstid'].'"><b>'.$row['erst'].'</b></a>';
}
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>';
}
$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();
?>
/edit by assault:
langen code bitte in [code] setzten
Zuletzt modifiziert von assault am 17.01.2008 - 20:01:18