ilch Forum » Allgemein » HTML, PHP, SQL,... » Forum Rank Bild

Geschlossen
  1. #1
    User Pic
    flaky12 Mitglied
    Registriert seit
    03.04.2007
    Beitrge
    424
    Beitragswertungen
    0 Beitragspunkte
    Guten Tag,
    ich habe mal wieder eine Frage.Wie kann man für einen spezail rank eine grafik einfügen???
    So wie hier -> www.zocker-eppingen.de/?m=forum&um=2&tid=90

    Code aus include/contents/forum/show_posts.php:
    <?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&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;
    $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']  = 'Beitrge: '.$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 <= '20') { $row['rang'] .= $rank_01; }
                    elseif ($posts <= '50') { $row['rang'] .= $rank_02;}
                    elseif ($posts <= '80') { $row['rang'] .= $rank_03; }
                    elseif ($posts < '100') { $row['rang'] .= $rank_04; }
                    elseif ($posts >= '300') { $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'] = '&nbsp;<img src="include/images/forum/uonline.png" border="0">'; }
                    else {
                    $row['online'] = '&nbsp;<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'] = '&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();
    ?>


    Das ist der Code von dem Forum was ich benutze [Foren-mod unstable 0.2].Jedich weiß ich nicht was ich ändern muss damit es geht:S

    mfg.{HTF}Flaky


    verwendete ilchClan Version: 1.1

    betroffene Homepage: www.htf2007.de.tl


    0 Mitglieder finden den Beitrag gut.
  2. #2
    User Pic
    SLJ Hall Of Fame
    Registriert seit
    18.05.2004
    Beitrge
    15.492
    Beitragswertungen
    3 Beitragspunkte
    Ih könnts ja schreiben dann wäre aber jemand zimlich sauer auf mich daher lasse ich es,...

    P.s. ich habe das auch für 1.1 gecodet, aber darfs net hergeben, sorry,...:(
    www.zocker-eppingen.de
    Ilch 1.0.4 PHP 7.0 und PDO Fähig na klar lcheln
    0 Mitglieder finden den Beitrag gut.
  3. #3
    User Pic
    flaky12 Mitglied
    Registriert seit
    03.04.2007
    Beitrge
    424
    Beitragswertungen
    0 Beitragspunkte
    Achso ok grumml

    Trotzdem danke lcheln


    0 Mitglieder finden den Beitrag gut.
  4. #4
    User Pic
    dastiii Mitglied
    Registriert seit
    27.12.2005
    Beitrge
    2.354
    Beitragswertungen
    84 Beitragspunkte
    man könnte es ja so machen das man einfach bilder so nennt wie den Rank und dann einfach ausgeben zunge

    Wenn niemand schneller ist mach ich das wohl mal *g* Gib mal die passende htm datei dazu
    0 Mitglieder finden den Beitrag gut.
  5. #5
    User Pic
    flaky12 Mitglied
    Registriert seit
    03.04.2007
    Beitrge
    424
    Beitragswertungen
    0 Beitragspunkte
    <br />
    
    
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr> 
        <td width="60%">{SITELINK}</td>
        <td width="40%" align="right">{ANTWORTEN}</td>
      </tr>
    </table>
    <table width="100%" border="0" cellspacing="1" cellpadding="2" class="border">
      <tr class="Chead"> 
        <th colspan="2" height="30"><b>{TOPICNAME}</b></td>
      </tr>
            {EXPLODE}
      <tr class="{class}"> 
        <td width="20%" valign="top"><a name="{id}"></a>{erst} {land}<br />
          <font class="smalfont">{rang}{posts}{avatar}{details}</font></td>
        <td width="80%" valign="top">
                      <div style="float: left; width:50%;" class="smalfont"><a class="smallfont" href="index.php?forum-showposts-{TID}#{id}" title="{i}. Post in diesem Thema">#</a>&nbsp;{date}</div>
          <div style="float: right; width: 50%; text-align:right;">{delete} &nbsp; {change} &nbsp; <a href="index.php?forum-newpost-{TID}-z{id}">{_lang_quote}</a></div>
          <br />
          <hr />      
                            <br />
                                                                            
                                                                            {txt}
                                                    {sig}
    
                    </td>
      </tr>
      <tr class="{class}">
      <td>{online}</td>
      <td><font class="smalfont">{pm} {email} {www} {icq}</font></td>
      </tr>
      
      <tr> 
        <td colspan="2" class="Cdark" height="2"></td>
      </tr>
            {EXPLODE}
    </table>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr> 
        <td width="60%">{SITELINK}</td>
        <td width="40%" align="right">{ANTWORTEN}</td>
      </tr>
    </table>
    {EXPLODE}
    <br />
    <strong>{_lang_administrattopic}</strong><br />
    <a href="javascript:renametopic()">{_lang_rename}</a>
    &nbsp;,&nbsp;
    <a href="index.php?forum-edittopic-{tid}-2">{_lang_delete}</a>
    &nbsp;,&nbsp;
    <a href="index.php?forum-edittopic-{tid}-3">{_lang_shift}</a>
    &nbsp;,&nbsp;
    <a href="index.php?forum-edittopic-{tid}-4-2">{status}</a>
    &nbsp;,&nbsp;
    <a href="index.php?forum-edittopic-{tid}-5">{festnorm}</a>
    
    <script language="JavaScript" type="text/javascript">
    <!--
      function renametopic () {
              var x = prompt ( "Bitte den neuen Namen vom Thema eintragen" , "" );
                    if ( x ) {
                      document.location.href="index.php?forum-edittopic-{tid}-1=0&newTopic="+x;
                    }
            }
            
    //-->
    </script>


    Hoffe das ist das richtige lcheln


    0 Mitglieder finden den Beitrag gut.
  6. #6
    User Pic
    dastiii Mitglied
    Registriert seit
    27.12.2005
    Beitrge
    2.354
    Beitragswertungen
    84 Beitragspunkte
    Wenn es die show_post.htm ist, ja^^
    0 Mitglieder finden den Beitrag gut.
  7. #7
    User Pic
    flaky12 Mitglied
    Registriert seit
    03.04.2007
    Beitrge
    424
    Beitragswertungen
    0 Beitragspunkte
    ZitatZitat geschrieben von DaStIaC

    Wenn es die show_post.htm ist, ja^^


    Ja das ist die shopost.htm lcheln


    0 Mitglieder finden den Beitrag gut.
  8. #8
    User Pic
    dastiii Mitglied
    Registriert seit
    27.12.2005
    Beitrge
    2.354
    Beitragswertungen
    84 Beitragspunkte
    show_posts.php:
    <?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&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;
    $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']  = 'Beitrge: '.$row['posts'].'<br />';
    
                    if ( $posts == '' ) { $row['posts'] = '<br>Nicht registriert';}
    #bild fuer rank
    $row['rankpic'] = "<img src=\"images/ranks/".$rank_pic."".$rank_pic_end."\" 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 <= '20') { $row['rang'] .= $rank_01; }
                    elseif ($posts <= '50') { $row['rang'] .= $rank_02;}
                    elseif ($posts <= '80') { $row['rang'] .= $rank_03; }
                    elseif ($posts < '100') { $row['rang'] .= $rank_04; }
                    elseif ($posts >= '300') { $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'] = '&nbsp;<img src="include/images/forum/uonline.png" border="0">'; }
                    else {
                    $row['online'] = '&nbsp;<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'] = '&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();
    ?>


    showpost.htm:
    <br />
    
    
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="60%">{SITELINK}</td>
        <td width="40%" align="right">{ANTWORTEN}</td>
      </tr>
    </table>
    <table width="100%" border="0" cellspacing="1" cellpadding="2" class="border">
      <tr class="Chead">
        <th colspan="2" height="30"><b>{TOPICNAME}</b></td>
      </tr>
            {EXPLODE}
      <tr class="{class}">
        <td width="20%" valign="top"><a name="{id}"></a>{erst} {land}<br />
          <font class="smalfont">{rang}{rankpic}{posts}{avatar}{details}</font></td>
        <td width="80%" valign="top">
                      <div style="float: left; width:50%;" class="smalfont"><a class="smallfont" href="index.php?forum-showposts-{TID}#{id}" title="{i}. Post in diesem Thema">#</a>&nbsp;{date}</div>
          <div style="float: right; width: 50%; text-align:right;">{delete} &nbsp; {change} &nbsp; <a href="index.php?forum-newpost-{TID}-z{id}">{_lang_quote}</a></div>
          <br />
          <hr />      
                            <br />
                                                                            
                                                                            {txt}
                                                    {sig}
    
                    </td>
      </tr>
      <tr class="{class}">
      <td>{online}</td>
      <td><font class="smalfont">{pm} {email} {www} {icq}</font></td>
      </tr>
      
      <tr>
        <td colspan="2" class="Cdark" height="2"></td>
      </tr>
            {EXPLODE}
    </table>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="60%">{SITELINK}</td>
        <td width="40%" align="right">{ANTWORTEN}</td>
      </tr>
    </table>
    {EXPLODE}
    <br />
    <strong>{_lang_administrattopic}</strong><br />
    <a href="javascript:renametopic()">{_lang_rename}</a>
    &nbsp;,&nbsp;
    <a href="index.php?forum-edittopic-{tid}-2">{_lang_delete}</a>
    &nbsp;,&nbsp;
    <a href="index.php?forum-edittopic-{tid}-3">{_lang_shift}</a>
    &nbsp;,&nbsp;
    <a href="index.php?forum-edittopic-{tid}-4-2">{status}</a>
    &nbsp;,&nbsp;
    <a href="index.php?forum-edittopic-{tid}-5">{festnorm}</a>
    
    <script language="JavaScript" type="text/javascript">
    <!--
      function renametopic () {
              var x = prompt ( "Bitte den neuen Namen vom Thema eintragen" , "" );
                    if ( x ) {
                      document.location.href="index.php?forum-edittopic-{tid}-1=0&newTopic="+x;
                    }
            }
            
    //-->
    </script>


    Die Bilder in images/ranks und sie müssen genauso heißen wie die Ranks im Adminbereich -> Ranks!
    Teste es einfach aus, wenn es fehler gibt sag bescheid.
    0 Mitglieder finden den Beitrag gut.
  9. #9
    User Pic
    flaky12 Mitglied
    Registriert seit
    03.04.2007
    Beitrge
    424
    Beitragswertungen
    0 Beitragspunkte
    Die Bilder werden bei mir leider nicht angezeigt -> flaky12.fl.funpic.de/index.php?forum-showposts-55


    0 Mitglieder finden den Beitrag gut.
  10. #10
    User Pic
    dastiii Mitglied
    Registriert seit
    27.12.2005
    Beitrge
    2.354
    Beitragswertungen
    84 Beitragspunkte
    <?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&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;
    $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']  = 'Beitrge: '.$row['posts'].'<br />';
    
                    if ( $posts == '' ) { $row['posts'] = '<br>Nicht registriert';}
    #bild fuer rank
    $rank_pic_end = ".jpg"; # Dateiendung
    $row['rankpic'] = "<img src=\"images/ranks/".$rank_name."".$rank_pic_end."\" 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 <= '20') { $row['rang'] .= $rank_01; }
                    elseif ($posts <= '50') { $row['rang'] .= $rank_02;}
                    elseif ($posts <= '80') { $row['rang'] .= $rank_03; }
                    elseif ($posts < '100') { $row['rang'] .= $rank_04; }
                    elseif ($posts >= '300') { $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'] = '&nbsp;<img src="include/images/forum/uonline.png" border="0">'; }
                    else {
                    $row['online'] = '&nbsp;<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'] = '&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();
    ?>
    0 Mitglieder finden den Beitrag gut.
  11. #11
    User Pic
    flaky12 Mitglied
    Registriert seit
    03.04.2007
    Beitrge
    424
    Beitragswertungen
    0 Beitragspunkte
    Schade es steht immer noch <i><b>Admin</b></i> aber kein bild traurig

    Datei endung ist .jpg


    Zuletzt modifiziert von flaky12 am 06.05.2007 - 14:43:39


    0 Mitglieder finden den Beitrag gut.
  12. #12
    User Pic
    dastiii Mitglied
    Registriert seit
    27.12.2005
    Beitrge
    2.354
    Beitragswertungen
    84 Beitragspunkte
    Bin gerade auch nicht ganz bei der Sache lachen

    Vom vielen PHP Code seh ich schon Sterne lachen
    0 Mitglieder finden den Beitrag gut.
  13. #13
    User Pic
    dastiii Mitglied
    Registriert seit
    27.12.2005
    Beitrge
    2.354
    Beitragswertungen
    84 Beitragspunkte
    Aber wenn er nur Admin anzeigt, ist das eigentlich nen Anzeichen das kein Bild mit dem Namen da ist.

    Oder der Code ist falsch zunge
    0 Mitglieder finden den Beitrag gut.
  14. #14
    User Pic
    flaky12 Mitglied
    Registriert seit
    03.04.2007
    Beitrge
    424
    Beitragswertungen
    0 Beitragspunkte
    Also ich habe das Bild bei include/images/ranks hochgeladen.
    Und genannt hab ich es Admin.jpg [jpg Format ist es].
    Include/images/ranks/Admin.jpg .Liegt es vielleicht daran das es ein spzialrank ist oder hat das damit nichts zu tun??


    0 Mitglieder finden den Beitrag gut.
  15. #15
    User Pic
    dastiii Mitglied
    Registriert seit
    27.12.2005
    Beitrge
    2.354
    Beitragswertungen
    84 Beitragspunkte
    Hm.. also ich finde es schon komisch das dort ein <i> <b> auftaucht...

    Das könnte der fehler sein... da er vllt das bild <i><b>Admin</i></b>.jpg sucht
    0 Mitglieder finden den Beitrag gut.
  16. #16
    User Pic
    flaky12 Mitglied
    Registriert seit
    03.04.2007
    Beitrge
    424
    Beitragswertungen
    0 Beitragspunkte
    Nur den namen kann ich nehemen da sonderzeichen bei umbennen nicht erlaubt sind <i><b>Admin</i></b>.jpg

    / <- das zeichen geht nicht:S


    0 Mitglieder finden den Beitrag gut.
  17. #17
    User Pic
    dastiii Mitglied
    Registriert seit
    27.12.2005
    Beitrge
    2.354
    Beitragswertungen
    84 Beitragspunkte
    <?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&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;
    $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']  = 'Beitrge: '.$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);
    $rank_pic_end = ".jpg"; # Dateiendung
    $row['rankpic'] = "<img src=\"images/ranks/".$rank_name."".$rank_pic_end."\" 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 <= '20') { $row['rang'] .= $rank_01; }
                    elseif ($posts <= '50') { $row['rang'] .= $rank_02;}
                    elseif ($posts <= '80') { $row['rang'] .= $rank_03; }
                    elseif ($posts < '100') { $row['rang'] .= $rank_04; }
                    elseif ($posts >= '300') { $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'] = '&nbsp;<img src="include/images/forum/uonline.png" border="0">'; }
                    else {
                    $row['online'] = '&nbsp;<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'] = '&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 DaStIaC am 06.05.2007 - 18:52:50
    0 Mitglieder finden den Beitrag gut.
  18. #18
    User Pic
    flaky12 Mitglied
    Registriert seit
    03.04.2007
    Beitrge
    424
    Beitragswertungen
    0 Beitragspunkte
    Hmmm nun steht da Admin also nur der name.Das Bild ist aber hochgeladen und auch richtig genannt.


    0 Mitglieder finden den Beitrag gut.
  19. #19
    User Pic
    dastiii Mitglied
    Registriert seit
    27.12.2005
    Beitrge
    2.354
    Beitragswertungen
    84 Beitragspunkte
    <?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&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;
    $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']  = 'Beitrge: '.$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=\"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 <= '20') { $row['rang'] .= $rank_01; }
                    elseif ($posts <= '50') { $row['rang'] .= $rank_02;}
                    elseif ($posts <= '80') { $row['rang'] .= $rank_03; }
                    elseif ($posts < '100') { $row['rang'] .= $rank_04; }
                    elseif ($posts >= '300') { $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'] = '&nbsp;<img src="include/images/forum/uonline.png" border="0">'; }
                    else {
                    $row['online'] = '&nbsp;<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'] = '&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();
    ?>
    0 Mitglieder finden den Beitrag gut.
  20. #20
    User Pic
    flaky12 Mitglied
    Registriert seit
    03.04.2007
    Beitrge
    424
    Beitragswertungen
    0 Beitragspunkte
    Schade es geht immernoch nicht traurig
    Hoffe ich nerve nicht grumml

    Aber super Hilfe lcheln


    0 Mitglieder finden den Beitrag gut.
  21. #21
    User Pic
    flaky12 Mitglied
    Registriert seit
    03.04.2007
    Beitrge
    424
    Beitragswertungen
    0 Beitragspunkte
    muss das bild eine bestimmte größe haben oder ist das egal???
    vielleicht muss man es auch in include/images/forum/ranks
    hochladen.


    0 Mitglieder finden den Beitrag gut.
  22. #22
    User Pic
    SLJ Hall Of Fame
    Registriert seit
    18.05.2004
    Beitrge
    15.492
    Beitragswertungen
    3 Beitragspunkte
    Egal,... zwinker nur auf die endung kommts an und schreibweiße.

    P.s. ich habe meine funktion elleganter gelöst aber egal,... lcheln
    www.zocker-eppingen.de
    Ilch 1.0.4 PHP 7.0 und PDO Fähig na klar lcheln
    0 Mitglieder finden den Beitrag gut.
  23. #23
    User Pic
    flaky12 Mitglied
    Registriert seit
    03.04.2007
    Beitrge
    424
    Beitragswertungen
    0 Beitragspunkte
    Ich glaube man muss einfach nur das hier ändern :
     #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>';
                    $rank_06 = '<img src="include/images/forum/rank/rank06.png" alt="" border="0"><br>'; 
    
    
                    #Bezugnehmen auf das Ranking des users
                    if ( $row['posts'] != '' ) {
                    $row['rang'] = $rank_name.'<br>';
                    if ($posts <= '15') { $row['rang'] .= $rank_01; }
                    elseif ($posts <= '30') { $row['rang'] .= $rank_02;}
                    elseif ($posts <= '50') { $row['rang'] .= $rank_03; }
                    elseif ($posts < '90') { $row['rang'] .= $rank_04; }
                    elseif ($posts >= '120') { $row['rang'] .= $rank_05; }
                    elseif ($rank <= 'Admin') { $row['rang'] .= $rank_06; }
                    }
    
                    else {$row['rang'] .= ""; }


    Vielleicht stimmt es zwinker jedoch weiß ich trotzdem nicht wie man es umschreiben muss damit spezailränge angezeigt werden traurig


    0 Mitglieder finden den Beitrag gut.
  24. #24
    User Pic
    dastiii Mitglied
    Registriert seit
    27.12.2005
    Beitrge
    2.354
    Beitragswertungen
    84 Beitragspunkte
    <?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&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;
    $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']  = 'Beitrge: '.$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 <= '20') { $row['rang'] .= $rank_01; }
                    elseif ($posts <= '50') { $row['rang'] .= $rank_02;}
                    elseif ($posts <= '80') { $row['rang'] .= $rank_03; }
                    elseif ($posts < '100') { $row['rang'] .= $rank_04; }
                    elseif ($posts >= '300') { $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'] = '&nbsp;<img src="include/images/forum/uonline.png" border="0">'; }
                    else {
                    $row['online'] = '&nbsp;<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'] = '&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();
    ?>


    Big lol...

    der Pfad war aufjedenfall falsch lachen
    Er hat ja immer in images/ranks gesucht statt in include/images/ranks :x
    0 Mitglieder finden den Beitrag gut.
  25. #25
    User Pic
    flaky12 Mitglied
    Registriert seit
    03.04.2007
    Beitrge
    424
    Beitragswertungen
    0 Beitragspunkte
    Es geht lachenlachen

    Großes Danke für deine Hilfe lachen


    0 Mitglieder finden den Beitrag gut.
  26. #26
    User Pic
    turkish-dream Mitglied
    Registriert seit
    15.08.2006
    Beitrge
    383
    Beitragswertungen
    0 Beitragspunkte
    hab das irgendwie nicht verstanden... was muss ich jetzt alles machen da sind soviele codes welche sind jetzt nun die richtigen ?!?


    Zuletzt modifiziert von turkish-dream am 07.05.2007 - 22:22:04
    0 Mitglieder finden den Beitrag gut.
  27. #27
    User Pic
    flaky12 Mitglied
    Registriert seit
    03.04.2007
    Beitrge
    424
    Beitragswertungen
    0 Beitragspunkte
    Hier die showpost.htm ändern:
    <br />
    
    
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="60%">{SITELINK}</td>
        <td width="40%" align="right">{ANTWORTEN}</td>
      </tr>
    </table>
    <table width="100%" border="0" cellspacing="1" cellpadding="2" class="border">
      <tr class="Chead">
        <th colspan="2" height="30"><b>{TOPICNAME}</b></td>
      </tr>
            {EXPLODE}
      <tr class="{class}">
        <td width="20%" valign="top"><a name="{id}"></a>{erst} {land}<br />
          <font class="smalfont">{rang}{rankpic}{posts}{avatar}{details}</font></td>
        <td width="80%" valign="top">
                      <div style="float: left; width:50%;" class="smalfont"><a class="smallfont" href="index.php?forum-showposts-{TID}#{id}" title="{i}. Post in diesem Thema">#</a>&nbsp;{date}</div>
          <div style="float: right; width: 50%; text-align:right;">{delete} &nbsp; {change} &nbsp; <a href="index.php?forum-newpost-{TID}-z{id}">{_lang_quote}</a></div>
          <br />
          <hr />      
                            <br />
                                                                            
                                                                            {txt}
                                                    {sig}
    
                    </td>
      </tr>
      <tr class="{class}">
      <td>{online}</td>
      <td><font class="smalfont">{pm} {email} {www} {icq}</font></td>
      </tr>
      
      <tr>
        <td colspan="2" class="Cdark" height="2"></td>
      </tr>
            {EXPLODE}
    </table>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="60%">{SITELINK}</td>
        <td width="40%" align="right">{ANTWORTEN}</td>
      </tr>
    </table>
    {EXPLODE}
    <br />
    <strong>{_lang_administrattopic}</strong><br />
    <a href="javascript:renametopic()">{_lang_rename}</a>
    &nbsp;,&nbsp;
    <a href="index.php?forum-edittopic-{tid}-2">{_lang_delete}</a>
    &nbsp;,&nbsp;
    <a href="index.php?forum-edittopic-{tid}-3">{_lang_shift}</a>
    &nbsp;,&nbsp;
    <a href="index.php?forum-edittopic-{tid}-4-2">{status}</a>
    &nbsp;,&nbsp;
    <a href="index.php?forum-edittopic-{tid}-5">{festnorm}</a>
    
    <script language="JavaScript" type="text/javascript">
    <!--
      function renametopic () {
              var x = prompt ( "Bitte den neuen Namen vom Thema eintragen" , "" );
                    if ( x ) {
                      document.location.href="index.php?forum-edittopic-{tid}-1=0&newTopic="+x;
                    }
            }
            
    //-->
    </script>



    Dann die show_posts.php ändern :
    <?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&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;
    $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']  = 'Beitrge: '.$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 <= '20') { $row['rang'] .= $rank_01; }
                    elseif ($posts <= '50') { $row['rang'] .= $rank_02;}
                    elseif ($posts <= '80') { $row['rang'] .= $rank_03; }
                    elseif ($posts < '100') { $row['rang'] .= $rank_04; }
                    elseif ($posts >= '300') { $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'] = '&nbsp;<img src="include/images/forum/uonline.png" border="0">'; }
                    else {
                    $row['online'] = '&nbsp;<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'] = '&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();
    ?>


    Dann nur noch Bilder hochladen in include/images/ranks und dann sollte es gehen.Bilder müssen .jpg format sein^^


    0 Mitglieder finden den Beitrag gut.
  28. #28
    User Pic
    turkish-dream Mitglied
    Registriert seit
    15.08.2006
    Beitrge
    383
    Beitragswertungen
    0 Beitragspunkte
    danke ....
    0 Mitglieder finden den Beitrag gut.
  29. #29
    User Pic
    tuvok Mitglied
    Registriert seit
    16.11.2006
    Beitrge
    132
    Beitragswertungen
    0 Beitragspunkte
    Hallo, ich habe das alles so gemacht wie es sein sollte.. und habe mir die bilder auch hochgeladen ..

    Ich habe mir die Bilder von www.spieler-daten.de/battlefield2+rang+informationen.html

    herunter geladen
    für meine Battlefield2 Spezial Ranks im Ilch nun habe ich auch bei den Rängen leerzeichen dazwischen wie z.b. "First Sergeant"
    kann es daran liegen, das er die Bilder nicht läd?

    was ich noch wissen wollte.. werden die Bilder auch im kleinen Format in der "mitgliederliste" angezeigt vor dem Rang Namen? und wenn man auf der Detail Ansicht ist unter dem Rang Namen beim Avatar auch? wäre super .. wenn mir einer helfen könnte Danke


    Zuletzt modifiziert von tuvok am 16.05.2007 - 11:51:26
    Lebet Lange und in Frieden
    0 Mitglieder finden den Beitrag gut.
  30. #30
    User Pic
    dastiii Mitglied
    Registriert seit
    27.12.2005
    Beitrge
    2.354
    Beitragswertungen
    84 Beitragspunkte
    Zum 1. wie sind denn die Namen der Bilder??? Mit _ oder zusammengeschrieben?
    Weil dann könnte man die " " (Lücken) mit _ oder "" (nix) ersetzen.
    Müsste ich wissen zwinker
    0 Mitglieder finden den Beitrag gut.
Geschlossen

Zurck zu HTML, PHP, SQL,...

Optionen: Bei einer Antwort zu diesem Thema eine eMail erhalten