ilch Forum » Ilch Clan 1.1 » Module und Modifikationen » Forum tuned !!!

Geschlossen
  1. #1
    User Pic
    marvman Mitglied
    Registriert seit
    22.05.2006
    Beiträge
    587
    Beitragswertungen
    3 Beitragspunkte
    Hallo

    Ich habe das forum tuned (von Moniwoll ) hochgeladen und nun sieht man auch einiges. leider funktioniert es nicht wenn ich auf HOMEPAGE des users drücke und die buttons über geschlecht und online oder offline sind auch nicht zu sehe.

    hmmm kann einer helfen???
    gruß Marv


    verwendete ilchClan Version: 1.1

    betroffene Homepage: externer Link


    Zuletzt modifiziert von marvman am 20.03.2007 - 18:39:54
    0 Mitglieder finden den Beitrag gut.
  2. #2
    User Pic
    Bolli Mitglied
    Registriert seit
    25.04.2006
    Beiträge
    87
    Beitragswertungen
    1 Beitragspunkte
    Das Problem habe ich auch. Scheinen ein paar Fehler drinne zu sein im Script. Vielleicht kann ja mal bitte einer drüberlesen.

    Hier ist der Code

    <?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&auml;ge zeigen';
    $hmenu  = $extented_forum_menu.'<a class="smalfont" href="index.php?forum">Forum</a><b> &raquo; </b><a class="smalfont" href="index.php?forum-showcat-'.$aktForumRow['cid'].'">'.$aktForumRow['kat'].'</a><b> &raquo; </b><a class="smalfont" href="index.php?forum-showtopics-'.$fid.'">'.$aktForumRow['name'].'</a><b> &raquo; </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;
    $erg = db_query("SELECT prefix_posts.id,txt,time,erstid,erst,sig, homepage, 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' );
    	
    	# 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'] = (file_exists($row['avatar'])?'<br /><img src="'.$row['avatar'].'" alt="User Pic" border="0" /><br />':'');
            $row['reng']   = userrang ($row['posts'],$row['erstid']);
            $row['erst'] .= "<br><br><a href='index.php?forum-privmsg-new&empfid=".$row['erstid']."'><img src='include/images/icons/privmsg.gif' border='0' alt='Private Nachricht an den User senden'></a>";
            $row['erst'] .= "<a href=\"{$row['www']}\"><img src=\"include/images/icons/uwebsite.gif\" border=\"0\" alt=\"Website des Users besuchen\"></a>";
            $row['erst'] .= "<a href=\"http://www.icq.com/whitepages/cmd.php?uin={$row['icq']}&action=add\"><img src=\"include/images/icons/icqblume.gif\" alt=\"User in ICQ Liste hinzufuegen\" border=\"0\"></a>";
            $row['posts']  = ($row['posts']?'<br />Posts: '.$row['posts']:'');
    	$row['txt']    = (isset($_GET['such']) ? markword(bbcode ($row['txt']),$_GET['such']) : bbcode ($row['txt']) );
    	$row['i']      = $i;
            $row['page']   = $page;
      
    	if ( $row['erstid'] != '' ) {
    		  $user_row = db_fetch_assoc(db_query("SELECT posts,regist FROM prefix_user WHERE id = ".$row['erstid']));
    		$row['erst'] = '<a href="index.php?user-details-'.$row['erstid'].'"><b>'.$row['erst'].'</b></a>';
    		$posts = $user_row['posts'];
    	$row['posts'] = '<br />Posts: '.$user_row['posts'];
    		
    		if ( $posts == '' ) { $row['posts'] = '<br>Nicht registriert';}
    		
    		
    		
    		#Ranking Balken
    		#Grafiken definieren
    		$rand_l = '<img src="include/images/icons/ranking/rank_left.jpg" width="8" height="17" alt="" border="0">';
    		$rand_r = '<img src="include/images/icons/ranking/rank_right.jpg" width="8" height="17" alt="" border="0">';
    		$rank_grey = '<img src="include/images/icons/ranking/rank_grey.jpg" width="8" height="17" alt="" border="0">';
    		$rank_02 = '<img src="include/images/icons/ranking/rank_02.jpg" width="8" height="17" alt="" border="0">';
    		$rank_03 = '<img src="include/images/icons/ranking/rank_03.jpg" width="8" height="17" alt="" border="0">';
    		$rank_04 = '<img src="include/images/icons/ranking/rank_04.jpg" width="8" height="17" alt="" border="0">';
    		$rank_05 = '<img src="include/images/icons/ranking/rank_05.jpg" width="8" height="17" alt="" border="0">';
    		$rank_06 = '<img src="include/images/icons/ranking/rank_06.jpg" width="8" height="17" alt="" border="0">';
    		$rank_07 = '<img src="include/images/icons/ranking/rank_07.jpg" width="8" height="17" alt="" border="0">';
    		$rank_08 = '<img src="include/images/icons/ranking/rank_08.jpg" width="8" height="17" alt="" border="0">';
    		$rank_09 = '<img src="include/images/icons/ranking/rank_09.jpg" width="8" height="17" alt="" border="0">';
    		$rank_10 = '<img src="include/images/icons/ranking/rank_10.jpg" width="8" height="17" alt="" border="0">';
    		
    		#Bezugnehmen auf das Ranking des users
    		if ( $posts != '' ) {
    		$row['rang'] = '<br>';
    		
                    if ($user_row['posts'] <= '9') { $row['rang'] .= $rand_l.$rank_grey.$rank_grey.$rank_grey.$rank_grey.$rank_grey.$rank_grey.$rank_grey.$rank_grey.$rank_grey.$rand_r; }
    		elseif ($user_row['posts'] <= '50') { $row['rang'] .= $rand_l.$rank_02.$rank_grey.$rank_grey.$rank_grey.$rank_grey.$rank_grey.$rank_grey.$rank_grey.$rank_grey.$rand_r; }
    		elseif ($user_row['posts'] <= '100') { $row['rang'] .= $rand_l.$rank_02.$rank_03.$rank_grey.$rank_grey.$rank_grey.$rank_grey.$rank_grey.$rank_grey.$rank_grey.$rand_r; }
    		elseif ($user_row['posts'] <= '175') { $row['rang'] .= $rand_l.$rank_02.$rank_03.$rank_04.$rank_grey.$rank_grey.$rank_grey.$rank_grey.$rank_grey.$rank_grey.$rand_r; }
    		elseif ($user_row['posts'] <= '300') { $row['rang'] .= $rand_l.$rank_02.$rank_03.$rank_04.$rank_05.$rank_grey.$rank_grey.$rank_grey.$rank_grey.$rank_grey.$rand_r; }
    		elseif ($user_row['posts'] <= '450') { $row['rang'] .= $rand_l.$rank_02.$rank_03.$rank_04.$rank_05.$rank_06.$rank_grey.$rank_grey.$rank_grey.$rank_grey.$rand_r; }
    		elseif ($user_row['posts'] <= '650') { $row['rang'] .= $rand_l.$rank_02.$rank_03.$rank_04.$rank_05.$rank_06.$rank_07.$rank_grey.$rank_grey.$rank_grey.$rand_r; }
    		elseif ($user_row['posts'] <= '850') { $row['rang'] .= $rand_l.$rank_02.$rank_03.$rank_04.$rank_05.$rank_06.$rank_07.$rank_08.$rank_grey.$rank_grey.$rand_r; }
    		elseif ($user_row['posts'] <= '1000') { $row['rang'] .= $rand_l.$rank_02.$rank_03.$rank_04.$rank_05.$rank_06.$rank_07.$rank_08.$rank_09.$rank_grey.$rand_r; }
    		elseif ($user_row['posts'] >= '1001') { $row['rang'] .= $rand_l.$rank_02.$rank_03.$rank_04.$rank_05.$rank_06.$rank_07.$rank_08.$rank_09.$rank_10.$rand_r; }
    		}
    		
    		else {$row['rang'] .= ""; }
    		
    		#Wenn der User registriert ist wird folgendes ausgelesen
    		if ( $posts != '' ) {
    		
    		#Male or Female		
    		$abf1 = "SELECT * FROM prefix_userfields where uid = ".$row['erstid']." and fid = 9";
    		$erg1 = db_query($abf1);
    		$gender = db_fetch_object($erg1);
    
    		if ($gender->val == "männlich" ){
    		$row['erst'] .= '&nbsp;<img src="include/images/icons/male.gif" border="0">';
    		}
    		elseif ($gender->val == "weiblich" ){
    		$row['erst'] .= '&nbsp;<img src="include/images/icons/female.gif" border="0">';
    		}
    		
    		#Messenger Daten werden ausgelesen		
    		if(!empty($row['icq'])){
    		$row['icq']=trim($row['icq']);
    		$row['icq']='<a href="http://www.icq.com/whitepages/cmd.php?uin='.$row['icq'].'&action=add"><img src="include/images/icons/icqblume.gif" alt="User in ICQ Liste hinzufuegen" border="0"></a>';
    	} else {
    		$row['icq']='';
    	}
    		
    		#Website des Users
    		if(!empty($row['homepage'])){
    		$www =str_replace('http://', '', $row['homepage']);
    		$row['www']='<a href="http://'.$www.'" taget="_blank"><img src="include/images/icons/uwebsite.gif" border="0" alt="Website des Users besuchen"></a>';
    	} else {
    		$row['www']='';
    	}
    	
    	 #eMail des Users
    	  if($row['opt_mail']==1){
    		$row['email']='<a href="?user-mail-'.$row['erstid'].'"><img src="include/images/icons/uwebsite.gif" border="0" alt="Website des Users besuchen"></a>';
    	} else {
    		$row['email']='';
    	}
    		
    		#User Details
    		if ( $posts != '' ) {
    		$abf1 = 'SELECT * FROM prefix_user where id = '.$row["erstid"];
    		$erg1 = db_query($abf1);
    		$user = db_fetch_object($erg1);
    		$bf1 = "SELECT * FROM prefix_userfields where uid = ".$row['erstid']." and fid = 1";
    		$rg1 = db_query($bf1);
    		$userfield = db_fetch_object($rg1);
    		
    		$zeit = date('d. M Y',$user->regist);
    		
    		$row['details'] = "<br><br>Dabei seit: ".$zeit."<br>";
    		if ($userfield->val != '') {
    		$row['details'] .= "Kommt aus: ".$userfield->val."<br>";
    		}
    		
    		}
    		else {
    		$row['details'] = "";}
    		}
    		#
    		#Edit Ende
    		##################################
    
    		# profilefields
    		$sig = @db_result(db_query("SELECT val FROM prefix_userfields WHERE uid = ".$row['erstid']." AND fid = 5"),0);
    		if (!empty($sig)) { $row['sig'] = '<br /><hr size="1" width="100" align="left">'.bbcode($sig); }
    		$avatar = @db_result(db_query("SELECT val FROM prefix_userfields WHERE uid = ".$row['erstid']." AND fid = 6"),0);
    		if (!empty($avatar)) { $row['avatar'] = '<br /><br /><img src="'.$avatar.'" alt="User Pic" border="0" /><br />'; }
    	}
    	
    	
             if(empty($points)){
    	$points=0;
    	}
    	$rang=$posts+$points;
    	//$row['rang'] = rangbildforum ($rang);
    	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'] = '&nbsp;<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();
    ?>



    Zuletzt modifiziert von Bolli am 16.01.2009 - 15:30:56
    0 Mitglieder finden den Beitrag gut.
Geschlossen

Zurück zu Module und Modifikationen

Optionen: Bei einer Antwort zu diesem Thema eine eMail erhalten