Board ansicht ändern

Begonnen von Sascha1981, 04 März 2003, 17:51:57

⏪ vorheriges - nächstes ⏩

0 Mitglieder und 1 Gast betrachten dieses Thema.

Sascha1981

Hey @ll!!!

Da ich das Eboard alls Archiv für Songtexte und Gedichte verwende würde ich gerne in der Board ansicht denn Berreich für die Thread Antworten entfernen!
Allso denn teil in der Board ansicht wo angezeigt wird wieviele ANtworten bei dem Thread vorhanden sind!
Ist das irgendwie möglich ohne das probleme beim dem Eboard auftreten?
Wenn ich da richtig durchblicke dann muß ich in der forumdisplay.php die entsprechenden felder auskommentieren!?!?!
Welche Datein muß ich dann auch noch bearbeiten damit die Zahl der ANtworten nicht mehr angezeigt werden?

Ich hoffe es kann mir jemand weiter helfen!


DarkBoy

Öffne die forumsdisplay.php und suche nach folgendem
Zitat<td width="6%" class="header"><?=_TEXTREPLIES?></td>
<td width="6%" class="header"><?=_TEXTVIEWS?></td>
das dann löschen und die Ansicht VIEWS und ANTWORTEN sollte in der eBoard ansicht verschwinden.
Sollte auch ohne probleme gehen und keine verursachen

Sascha1981

Hey @ll!!

Hab das jetzt versucht aber das ergebnis ist noch nicht das was ich wollte!
Ich denke da muß man noch ein paar andere sachen raus löschen!
Ich hoffe ihr könnt mir da auch wieder weiter helfen!
Sie Screenshot!!!!

  Sorry , den Screenshot habe ich geklaut, da der Server dahinter eingeschlafen ist und es ewig laden musste..... War nur eine Skizze was wech sollte und  ich hoffe das nun ein Post tiefer die Lösung steht


[Editiert am 5/3/2003 von Admin DarkBoy]

DarkBoy

So , hier hasst du dazu die gesamte   forumsdisplay.php......Ich betone aber, das es ebend mitten in der Nacht entstanden ist und es  nicht getestet worden ist.  Sollte aber deinen Wünschen entsprechen..... Also backup machen und die gesammten Codedatein übernehmen. Es zeigt nun eigentlich wenn ich nicht falsch gegusckt habe nur POST und AUTHOR an wie du es wolltest. Teste es bitte und gebe mir Bescheid  ob es so ist oder nicht. Wenn es nicht funzt muss ich mich hinterklemmen, da ich nicht der eBoard Fachmann bin, weil der hat zu tun :)

 
Zitat<?php
// eBoard module, file last modified for version 1.0.2 - 26.09.2002 - mgl
/************************************************************************/
/* rewrite and modified by:                                             */
/* http://www.fsz-design.de and http://www.maax-design.de                */
/*                                                      */
/* Original source-code made by the XMB-team                      */
/* (XMB-Forum, http://www.xmbforum.com), modified for nukestyle-systems */
/* by Trollix (XForum, http://www.trollix.com).                     */
/*                                                      */
/* Original-sourcecode is published under the GPL, all eBoard additions */
/* and modifications ARE NOT published under the GPL.               */
/* They are copyright by fsz- and maax-design.                     */
/************************************************************************/

/************************************************************************/
/* Original from PHP-NUKE: Advanced Content Management System           */
/* ============================================                         */
/*                                                                      */
/* Copyright (c) 2002 by Francisco Burzi (fbc@mandrakesoft.com)         */
/* http://phpnuke.org                                                   */
/*                                                                      */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/************************************************************************/

global $page, $cusdate, $ascdesc, $fwd_back , $jumplink, $lid;

$ModName = $GLOBALS['name'];
$pathHeader = "modules/$ModName/";

require $pathHeader."header.php";

if($linkstatus == "on"){
     if($linktype == "thread"){
     $jumper = "&linkstatus=on&jumplink=$jumplink&linktype=thread&lid=$lid";
     }else{
     $jumper = "&linkstatus=on&jumplink=$jumplink&linktype=forum&lid=$lid";
     }
  } else {
  $jumper = "";
}

$query = $dbxf->sql_query("SELECT moderator, name, private, fid, userlist, threads, type, fup, postperm FROM $table_forums WHERE fid='$fid'");
$forum = $dbxf->sql_fetch_object($query);

if($forum->type != "forum" && $forum->type != "sub") { $notexist = _TEXTNOFORUM; }
else { $notexist = ""; $validuser = true;}

if($catsonly == "on" && $forum->type == "sub")
{
  $query = $dbxf->sql_query("SELECT fup FROM $table_forums WHERE fid='".$forum->fup."'");
  $forum1 = $dbxf->sql_fetch_object($query);
  $query = $dbxf->sql_query("SELECT fid, name FROM $table_forums WHERE fid='".$forum1->fup."'");
  $cat = $dbxf->sql_fetch_object($query);
}
elseif($catsonly == "on" && $forum->type == "forum")
{
  $query = $dbxf->sql_query("SELECT fid, name FROM $table_forums WHERE fid='".$forum->fup."'");
  $cat = $dbxf->sql_fetch_object($query);
}

if($catsonly == "on")
{ $navigation = "<a href=\""._BMindex0."\">"._TEXTINDEX."</a> > <a href=\""._BMindex1."gid=".$cat->fid."\">".$cat->name."</a> > "; } else
{ $navigation = "<a href=\""._BMindex0."\">"._TEXTINDEX."</a> > "; }

if($linkstatus == "on"){
  $query = $dbxf->sql_query("SELECT name, fid FROM $table_forums WHERE fid='".$jumplink."'");
  $fup = $dbxf->sql_fetch_object($query);
  $navigation .= "<a href=\""._BMforumdisplay1."fid=".$fup->fid."\">".$fup->name."</a> > ".$forum->name;
}
else
{
if($forum->type == 'forum')
{
  $navigation .= $forum->name;
}
else
{
  $query = $dbxf->sql_query("SELECT name, fid FROM $table_forums WHERE fid='".$forum->fup."'");
  $fup = $dbxf->sql_fetch_object($query);
  $navigation .= "<a href=\""._BMforumdisplay1."fid=".$fup->fid."\">".$fup->name."</a> > ".$forum->name;
}
}

$page_down = '<a href="#bas">'._IMG_PAGEDOWN.'</a>';
$page_up   = '<a href="#haut">'._IMG_PAGEUP.'</a>';

$html = template("header.html");
eval("echo stripslashes(\"$html\");");

$query = $dbxf->sql_query("SELECT name FROM $table_forums WHERE type='sub' AND fup='$fid'");
$sub = $dbxf->sql_fetch_object($query);

if($linkforumstatus == "on"){
$querylink = $dbxf->sql_query("SELECT lid FROM $table_links WHERE type='forum' AND toid='$fid' AND status='on'");
$sub2 = $dbxf->sql_fetch_object($querylink);
} else {
$sub2->lid = $sub->name;
}

if($sub->name != "" || $sub2->lid != "") {
?>

<table cellspacing="0" cellpadding="0" border="0" width="<?=$tablewidth?>" align="center">
<tr><td bgcolor="<?=$bordercolor?>">

<table border="0" cellspacing="<?=$borderwidth?>" cellpadding="<?=$tablespace?>" width="100%">
<tr>
<td width="3%" class="header"> </td>
<td width="58%" class="header"><?=_TEXTFORUM?></td>
<td width="6%" class="header"><?=_TEXTTOPICS?></td>

</tr>

<?

$fulist = $forum->userlist;
$fuprivate = $forum->private;
$fpperm = $forum->postperm;

$querys = $dbxf->sql_query("SELECT fid, name, lastpost, moderator, private, description, userlist, posts, threads  FROM $table_forums WHERE type='sub' AND fup='$fid' AND status='on' ORDER BY displayorder");

while($forum = $dbxf->sql_fetch_object($querys))
{
   $selectedres = lastPostForumTID( $forum->fid );
 
     if($linkstatus == "on"){
        $forum->fid = $forum->fid.$jumper;
     }

     echo Ligneforum($forum->lastpost, $timeoffset, $forum->moderator, $lastvisitdate, $hideprivate, $status, $forum->private, $forum->posts, $forum->threads, $altbg1, $altbg2, $forum->name, $forum->fid, $forum->description, $timecode, $dateformat, $thisuser, $forum->userlist, $selectedres);
}

##################
## LINKERGÄNZUNG
## Wird benötigt, um gelinkte Foren anzuzeigen
if($linkforumstatus == "on"){

$queryslink = $dbxf->sql_query("SELECT lid, fromid, toid FROM $table_links WHERE type='forum' AND toid='$fid' AND status='on'");

while($forumlink = $dbxf->sql_fetch_object($queryslink))
{
 $queryslinks = $dbxf->sql_query("SELECT fid, name, lastpost, moderator, private, description, userlist, posts, threads FROM $table_forums WHERE fid='".$forumlink->fromid."'");
  $forumlinks = $dbxf->sql_fetch_object($queryslinks);
  $sql1 = $dbxf->sql_query("SELECT IF(LENGTH(LEFT(lastpost, INSTR(lastpost, '|')-1))<10, CONCAT('0',lastpost), lastpost) as  lastpost, tid FROM $table_threads where fid='".$forumlinks->fid."' ORDER BY lastpost DESC limit 0,1");
  $res1 = $dbxf->sql_fetch_array($sql1);
  $selectedlastpost[time] = $res1[lastpost];
  $selectedres = $res1[tid]."&linkstatus=on&jumplink=".$forumlink->toid."&linktype=thread&lid=".$forumlink->lid."";

        $sql3 = $dbxf->sql_query("SELECT IF(LENGTH(LEFT(lastpost, INSTR(lastpost, '|')-1))<10, CONCAT('0',lastpost), lastpost) as  lastpost, type, fromid, toid, lid FROM $table_links WHERE type='thread' AND toid='".$forumlinks->fid."' AND status='on' ORDER BY lastpost DESC limit 0,1");
          $res3 = $dbxf->sql_fetch_array($sql3);
        
          $sql4 = $dbxf->sql_query("SELECT IF(LENGTH(LEFT(lastpost, INSTR(lastpost, '|')-1))<10, CONCAT('0',lastpost), lastpost) as  lastpost, type, fromid, toid, lid FROM $table_links WHERE type='forum' AND toid='".$forumlinks->fid."' AND status='on' ORDER BY lastpost DESC limit 0,1");
          $res4 = $dbxf->sql_fetch_array($sql4);
                if ($res3[lastpost] > $res4[lastpost]) {
               $selectedreslink = $res3[fromid]."&linkstatus=on&jumplink=".$res3[toid]."&linktype=".$res3[type]."&lid=".$res3[lid]."";
            $selectedlastpostlink[time] = $res3[lastpost];
            } else {
            $selectedreslink = $res4[fromid]."&linkstatus=on&jumplink=".$res4[toid]."&linktype=".$res4[type]."&lid=".$res4[lid]."";
            $selectedlastpostlink[time] = $res4[lastpost];
            }
                    
        
        if($selectedlastpostlink[time] > $selectedlastpost[time]){
        $selectedres = $selectedreslink;
        }
 
  $comefromlink = $forumlinks->fid."&linkstatus=on&jumplink=".$forumlink->toid."&linktype=forum&lid=".$forumlink->lid."";

  echo Ligneforum($forumlinks->lastpost, $timeoffset, $forumlinks->moderator, $lastvisitdate, $hideprivate, $status, $forumlinks->private, $forumlinks->posts, $forumlinks->threads, $altbg1, $altbg2, $forumlinks->name._IMG_LINK, $comefromlink, $forumlinks->description, $timecode, $dateformat, $thisuser, $forumlinks->userlist, $selectedres);
}
}
## LINKTEST ENDE
#################

$forum->userlist = $fulist;
$forum->private = $fuprivate;
$forum->postperm = $fpperm;
?>
</table>
</td></tr></table>
<?
}

if(md5($lastvisittime) != _BASEKEY){$validuser = false;}

if($notexist != _TEXTNOFORUM)
{

  if ( userCanPost( $thisuser, $status, $forum->postperm, $fid, 0 ) || anonymousCanPost( $forum->postperm, $fid, 0 ) )
     {
     if($newtopicimg != "")
     {
           $newtopiclink = "<a href=\""._BMpostnewtopic1."fid=$fid$jumper\"><img src=\""._BASEMODIMG."/buttons/$langfile/$newtopicimg\" border=\"0\"></a>";
     }
     else
     {
           $newtopiclink = "<a href=\""._BMpostnewtopic1."fid=$fid$jumper\">"._TEXTNEWTOPIC."</a>";
     }
  } else {
    $newtopiclink = '';
  }

}

if ($piconstatus == "on")        { $picon1 = "<td width=\"4%\" class=\"header\"> </td>"; }
if (!isset($tpp) || $tpp == '')        { $tpp = $topicperpage; }

if ($page)        { $start_limit = ($page-1) *$tpp; }
else                { $start_limit = 0; $page = 1; }

if ($cusdate != 0)
{
  $cusdate = time() - $cusdate;
  $cusdate = "AND lastpost >= '$cusdate'";
}
else { $cusdate = ""; }

if(!$ascdesc) { $ascdesc = "DESC"; }

$querytop = $dbxf->sql_query("SELECT tid, subject, lastpost, views, replies, author, icon, closed, topped, (substring_index(lastpost, '|',1)+1) lastpostd FROM $table_threads WHERE fid='$fid' $cusdate ORDER BY topped $ascdesc,lastpostd $ascdesc LIMIT $start_limit, $tpp");

$query = $dbxf->sql_query("SELECT count(tid) as nbsites FROM $table_threads WHERE fid='$fid'");
$row = $dbxf->sql_fetch_object($query);

// links werden gezählt und ggf. die Seitenanzahl erhoeht
$querylinks = $dbxf->sql_query("SELECT count(lid) as nbsites FROM $table_links WHERE type='thread' AND toid='$fid' AND status='on'");
$rowlinks = $dbxf->sql_fetch_object($querylinks);

$topicsnum = $row->nbsites + $rowlinks->nbsites;

if(!$followlink || !$validuser){
$newtopiclink = "";
}

if ($topicsnum  > $tpp)
{
  $pages = $topicsnum  / $tpp;
  $pages = ceil($pages);

  if     ($page == $pages)   { $to = $pages;  }
  elseif ($page == $pages-1) { $to = $page+1; }
  elseif ($page == $pages-2) { $to = $page+2; }
  else                                                 { $to = $page+3; }

  if ($page == 1 || $page == 2 || $page == 3)        { $from = 1; }
  else                                                                                    { $from = $page-3; }

  $fwd_back .= "<a href=\""._BMforumdisplay1."fid=$fid&page=1$jumper\"><<</a>";

  for ($i = $from; $i <= $to; $i++)
  {
    if($i != $page)
    { $fwd_back .= "  <a href=\""._BMforumdisplay1."fid=$fid&page=$i$jumper\">$i</a>  "; }
    else
    { $fwd_back .= "  <u><b>$i</b></u>  "; }
   }

  $fwd_back .= "<a href=\""._BMforumdisplay1."fid=$fid&page=$pages$jumper\">>></a>";
  $multipage = $fwd_back;
}
else $multipage = "";
?>

<!-- Affichage de nouveau topics et des pages -->
<table width="<?=$tablewidth?>" cellspacing="0" cellpadding="0" align="center">
<tr height="30">
  <td class="multi" align="left"><?=$multipage?></td>
  <td class="post"  align="right"><?=$newtopiclink?></td>
</tr>
</table>
<!-- /Affichage de nouveau topics et des pages -->

<table cellspacing="0" cellpadding="0" border="0" width="<?=$tablewidth?>" align="center">
<tr><td bgcolor="<?=$bordercolor?>">

<table border="0" cellspacing="<?=$borderwidth?>" cellpadding="<?=$tablespace?>" width="100%">
<tr>

<td width="4%" class="header"> </td>
<?=$picon1?>
<td width="47%" class="header"><?=_TEXTSUBJECT?></td>
<td width="14%" class="header"><?=_TEXTAUTHOR?></td>
</tr>
<?

#########
# Alte Priv-Check-Postition
#########
if($forum->private == "staff" && !$validadmin && $status != "Super Moderator" && $status != "Moderator") {
echo "<tr class=\"tablerow\"><td bgcolor=\"$altbg1\" colspan=\"8\">"._PRIVFORUMMSG."</td></tr></table></table>";
displayFooter($starttime); exit;
}

if($forum->userlist != "")
{
  if($thisuser == "")        { $thisuser = "blalaguestman123frzq"; }

  if(! preg_match("#".$thisuser."(,|$)"."#i", $forum->userlist) && ($superuser != 1)) {

  echo "<tr class=\"tablerow\"><td bgcolor=\"$altbg1\" colspan=\"8\">"._PRIVFORUMMSG."</td></tr></table></table>";
  displayFooter($starttime); exit;
}

if($thisuser == "blalaguestman123frzq") { $thisuser = ""; }
}

while($thread = $dbxf->sql_fetch_object($querytop))
{
  $lastpost = explode("|", $thread->lastpost);
  $dalast = $lastpost[0];

  if($lastpost[1] == _TEXTGUEST) { $lastpost[1] = $lastpost[1]; }
  else {
$lastpost[1] = "<a href=\""._BMmember1."action=viewpro&member=".rawurlencode($lastpost[1])."\">$lastpost[1]</a>";
}

$lastreplydate = gmdate($dateformat, $lastpost[0] + ($timeoffset * 3600));
$lastreplytime = gmdate($timecode, $lastpost[0] + ($timeoffset * 3600));
$lastpost = "$lastreplydate "._TEXTAT." $lastreplytime"._TEXTBY." $lastpost[1]";

if($thread->icon != "") {
$thread->icon = "<img src=\""._BASEMODIMG."/".$thread->icon."\" />";
} else {
$thread->icon = " ";
}

if($thread->replies >= $hottopic)        { $folder = _IMG_HOTFOLDER; }
else                                                                { $folder = _IMG_FOLDER;        }


if($thread->replies >= $hottopic && $lastvisitdate < $dalast)  { $folder = _IMG_HOTREDFOLDER; }
elseif($lastvisitdate < $dalast)                                 { $folder = _IMG_REDFOLDER;    }
else                                                          { $folder = $folder;                   }


if($thread->closed == "yes") {
$folder = _IMG_LOCKFOLDER;
}

if($thread->topped == 1) {
$XFprefix = "<span class=\"f11pix\">("._TOPPEDPREFIX.")</span>";
} else {
$XFprefix = "";
}

$thread->subject = stripslashes($thread->subject);

###### Link-Ergänzung für die Threads in einem gelinkten Forum
$threadlinkto = "<a href=\""._BMviewthread1."tid=".$thread->tid.$jumper."\">".$thread->subject."</a>";
$threadlinkto2 = ""._BMviewthread1."tid=".$thread->tid.$jumper;
###### Ende Link-Ergänzung

if($thread->author == _TEXTGUEST)
{ $authorlink = $thread->author; }
else
{ $authorlink = "<a href=\""._BMmember1."action=viewpro&member=".rawurlencode($thread->author)."\">".$thread->author."</a>"; }

if(!isset($ppp) || $ppp == '') { $ppp = $postperpage; }
if($thread->replies  > $ppp)
{
  $posts = $thread->replies;
  $posts++;
  $topicpages = $posts / $ppp;
  $topicpages = ceil($topicpages);
  for ($i = 1; $i <= $topicpages; $i++)
  {
    $pagelinks .= " <a href=\""._BMviewthread1."tid=".$thread->tid."&page=$i$jumper\">$i</a> ";
  }
  $multipage2 = "(<small>Pages: $pagelinks</small>)";
  $pagelinks = "";
}
else { $multipage2 = ""; }

if($piconstatus == "on")
{
  $picon2 =
         "<td bgcolor=\"$altbg1\" align=\"center\" class=\"tablerow\">".$thread->icon."</td>"
        ."<td bgcolor=\"$altbg2\" class=\"tablerow\" onMouseOver=\"this.style.backgroundColor='".$altbg1."'; this.style.cursor='hand';\" onMouseOut=\"this.style.backgroundColor='".$altbg2."'\" onclick=\"window.location.href='".$threadlinkto2."'\"><font class=\"f12pix\">$threadlinkto $XFprefix $multipage2</font></td>"
        ."<td bgcolor=\"$altbg1\" class=\"tablerow\">$authorlink</td>";

  $ratecol2 =
        ""
        ."";
}
else
{
  $picon2 =
         "<td bgcolor=\"$altbg1\" class=\"tablerow\"><font class=\"f12pix\">$threadlinkto $XFprefix $multipage</font></td>"
        ."<td bgcolor=\"$altbg2\" class=\"tablerow\">$authorlink</td>";

  $ratecol2 =
         "<td bgcolor=\"$altbg1\" class=\"tablerow\" align=\"center\"><font class=\"f12pix\">".$thread->replies."</font></td>"
        .""
        .""
        ."";
}

?>

<tr>
<td bgcolor="<?=$altbg2?>" align="center" class="tablerow"><?=$folder?></td>
<?=$picon2?>
<?=$ratecol2?>
</tr>

<?
}


#############Threads links Anfang
#################
if($linkthreadstatus == "on"){
$linkpicture = _IMG_LINK;
$querytoplinks = $dbxf->sql_query("SELECT lid, fromid, toid, (substring_index(lastpost, '|',1)+1) lastpostd FROM $table_links WHERE type='thread' AND toid='$fid' AND status='on' $cusdate ORDER BY lastpostd $ascdesc LIMIT $start_limit, $tpp");

while($threadlink = $dbxf->sql_fetch_object($querytoplinks))
{
  $querytopthread = $dbxf->sql_query("SELECT tid, subject, lastpost, views, replies, author, icon, closed, topped, (substring_index(lastpost, '|',1)+1) lastpostd FROM $table_threads WHERE tid='".$threadlink->fromid."'");
  $thread = $dbxf->sql_fetch_object($querytopthread);
  $lastpost = explode("|", $thread->lastpost);
  $dalast = $lastpost[0];

  if($lastpost[1] == _TEXTGUEST) { $lastpost[1] = $lastpost[1]; }
  else {
$lastpost[1] = "<a href=\""._BMmember1."action=viewpro&member=".rawurlencode($lastpost[1])."\">$lastpost[1]</a>";
}

$lastreplydate = gmdate($dateformat, $lastpost[0] + ($timeoffset * 3600));
$lastreplytime = gmdate($timecode, $lastpost[0] + ($timeoffset * 3600));
$lastpost = "$lastreplydate "._TEXTAT." $lastreplytime"._TEXTBY." $lastpost[1]";

if($thread->icon != "") {
$thread->icon = "<img src=\""._BASEMODIMG."/".$thread->icon."\" />";
} else {
$thread->icon = " ";
}

if($thread->replies >= $hottopic)        { $folder = _IMG_HOTFOLDER; }
else                                     { $folder = _IMG_FOLDER;        }

if($thread->replies >= $hottopic && $lastvisitdate < $dalast)  { $folder = _IMG_HOTREDFOLDER; }
elseif($lastvisitdate < $dalast)                                 { $folder = _IMG_REDFOLDER;    }
else                                                          { $folder = $folder;                   }


if($thread->closed == "yes") {
$folder = _IMG_LOCKFOLDER;
}

if($thread->topped == 1) {
$XFprefix = "<span class=\"f11pix\">("._TOPPEDPREFIX.")</span>";
} else {
$XFprefix = "";
}

$thread->subject = stripslashes($thread->subject);


###### Link-Ergänzung für die Threads in einem gelinkten Forum
$threadlinkto = "<a href=\""._BMviewthread1."tid=".$thread->tid."&linkstatus=on&jumplink=".$threadlink->toid."&linktype=thread&lid=".$threadlink->lid."\">".$thread->subject."</a>";
$threadlinkto2 = ""._BMviewthread1."tid=".$thread->tid."&linkstatus=on&jumplink=".$threadlink->toid."&linktype=thread&lid=".$threadlink->lid."";
###### Ende Link-Ergänzung


if($thread->author == _TEXTGUEST)
{ $authorlink = $thread->author; }
else
{ $authorlink = "<a href=\""._BMmember1."action=viewpro&member=".rawurlencode($thread->author)."\">".$thread->author."</a>"; }

if(!isset($ppp) || $ppp == '') { $ppp = $postperpage; }
if($thread->replies  > $ppp)
{
  $posts = $thread->replies;
  $posts++;
  $topicpages = $posts / $ppp;
  $topicpages = ceil($topicpages);
  for ($i = 1; $i <= $topicpages; $i++)
  {
    $pagelinks .= " <a href=\""._BMviewthread1."tid=".$thread->tid."&page=$i&linkstatus=on&jumplink=".$threadlink->toid."&linktype=thread&lid=".$threadlink->toid."\">$i</a> ";
  }
  $multipage2 = "(<small>Pages: $pagelinks</small>)";
  $pagelinks = "";
}
else { $multipage2 = ""; }

if($piconstatus == "on")
{
  $picon2 =
         "<td bgcolor=\"$altbg1\" align=\"center\" class=\"tablerow\">".$thread->icon."</td>"
        ."<td bgcolor=\"$altbg2\" class=\"tablerow\" onMouseOver=\"this.style.backgroundColor='".$altbg1."'; this.style.cursor='hand';\" onMouseOut=\"this.style.backgroundColor='".$altbg2."'\" onclick=\"window.location.href='".$threadlinkto2."'\"><font class=\"f12pix\">$threadlinkto $linkpicture $XFprefix $multipage2</font></td>"
        ."<td bgcolor=\"$altbg1\" class=\"tablerow\">$authorlink</td>";

  $ratecol2 =
         "<td bgcolor=\"$altbg2\" class=\"tablerow\" align=\"center\"><font class=\"f12pix\">".$thread->replies."</font></td>"
        ."<td bgcolor=\"$altbg1\" class=\"tablerow\" align=\"center\"><font class=\"f12pix\">".$thread->views."</font></td>"
        ."<td bgcolor=\"$altbg1\" class=\"tablerow\"><font size=\"1\" face=\"verdana\">$lastpost</font></td>"
        ."<td bgcolor=\"$altbg2\" class=\"tablerow\"><a href=\""._BMprint1."fid=$fid&tid=".$thread->tid."\" target=\"_blank\">"._IMG_PRINT."</a></td>";
}
else
{
  $picon2 =
         "<td bgcolor=\"$altbg1\" class=\"tablerow\"><font class=\"f12pix\">$threadlinkto $linkpicture $XFprefix $multipage</font></td>"
        ."<td bgcolor=\"$altbg2\" class=\"tablerow\">$authorlink</td>";

  $ratecol2 =
         "<td bgcolor=\"$altbg1\" class=\"tablerow\" align=\"center\"><font class=\"f12pix\">".$thread->replies."</font></td>"
        ."<td bgcolor=\"$altbg2\" class=\"tablerow\" align=\"center\"><font class=\"f12pix\">".$thread->views."</font></td>"
        ."<td bgcolor=\"$altbg1\" class=\"tablerow\"><font size=\"1\" face=\"verdana\">$lastpost</font></td>"
        ."<td bgcolor=\"$altbg2\" class=\"tablerow\"><a href=\""._BMprint1."fid=$fid&tid=".$thread->tid."\" target=\"_blank\">"._IMG_FOLDER."</a></td>";
}

?>

<tr>
<td bgcolor="<?=$altbg2?>" align="center" class="tablerow"><?=$folder?></td>
<?=$picon2?>
<?=$ratecol2?>
</tr>

<?
}
}
########## Thread-Link ende
####################

if($notexist) {
echo "<tr class=\"tablerow\"><td colspan=\"8\" bgcolor=\"$altbg1\">$notexist</td></tr>";
}

if($topicsnum == 0 && !$notexist) {
echo "<tr class=\"tablerow\"><td colspan=\"8\" bgcolor=\"$altbg1\">"._NOPOSTS."</td></tr>";
}

?>

</table>
</td></tr></table>

<!-- Affichage de nouveau topics et des pages -->
<table width="<?=$tablewidth?>" cellspacing="0" cellpadding="0" align="center">
<tr height="30">
  <td class="multi" align="left"><?=$multipage?></td>
  <td class="post"  align="right"><?=$newtopiclink?></td>
</tr>
</table>
<!-- /Affichage de nouveau topics et des pages -->

<!--
<table width="<?=$tablewidth?>" cellspacing="0" cellpadding="0" align="center">
<tr>
<td bgcolor="<?=$bgcolor?>" class="multi"><?=$multipage?></td>
<td bgcolor="<?=$bgcolor?>" class="post" align="right">
<?=$newtopiclink?></td></tr>
-->
<?

global $check1, $check5, $check15, $check30, $check60, $check100, $checkyear, $checkall, $cusdate;

if($showsort == "on")
{
  if        ($cusdate == "86400")                                { $check1 = "selected=\"selected\""; }
  elseif($cusdate == "432000")                                { $check5 = "selected=\"selected\""; }
  elseif($cusdate == "1296000")                                { $check15 = "selected=\"selected\"";}
  elseif($cusdate == "2592000")                                { $check30 = "selected=\"selected\"";}
  elseif($cusdate == "5184000")                                { $check60 = "selected=\"selected\"";}
  elseif($cusdate == "8640000")                                { $check100 = "selected=\"selected\"";}
  elseif($cusdate == "31536000")                        {$checkyear = "selected=\"selected\"";}
  elseif($cusdate == "0" || $cusdate == "") { $checkall = "selected=\"selected\""; }
?>

<table width="<?=$tablewidth?>" cellspacing="0" cellpadding="0" align="center"><tr><td align="center">
<form method="post" action="<? echo _BMforumdisplay1."fid=".$fid.$jumper.""; ?>">
<span class="f11pix"><?=_SHOWTOPICS?></span>
<select name="cusdate">
<option value="86400" <?=$check1?>><?=_DAY1?></option>
<option value="432000" <?=$check5?>><?=_DAY5?></option>
<option value="1296000" <?=$check15?>><?=_DAY15?></option>
<option value="2592000" <?=$check30?>><?=_DAY30?></option>
<option value="5184000" <?=$check60?>><?=_DAY60?></option>
<option value="8640000" <?=$check100?>><?=_DAY100?></option>
<option value="31536000" <?=$checkyear?>><?=_LASTYEAR?></option>
<option value="0" <?=$checkall?>><?=_BEGINNING?></option>
</select>

<span class="f11pix"><?=_SORTBY?></span>
<select name="ascdesc">
<option value="ASC"><?=_ASC?></option>
<option value="DESC" selected="selected"><?=_DESC?></option>
</select>

<input type="submit" value="<?=_TEXTGO?>">
</form>
</td></tr></table>




<?
}
$multipage = "<div align=\"right\">$multipage</div>";
$foldernote = _IMG_REDFOLDER." "._OPENNEW." ("._IMG_HOTREDFOLDER." "._HOTTOPIC.")"._IMG_FOLDER." "._OPENTOPIC." ("._IMG_HOTFOLDER." "._HOTTOPIC.")"._IMG_LOCKFOLDER."  "._LOCKTOPIC;

//***************************************************************************//
// Footer                                                                         //
//***************************************************************************//

if($showtotaltime != 'off')
{
  $mtime2 = explode(" ", microtime());
  $endtime = $mtime2[1] + $mtime2[0];
  $totaltime = ($endtime - $starttime);
  $totaltime = number_format($totaltime, 7);
  $querynum = $dbxf->querynum;
  $totaltime = $totaltime.' - '.$querynum.' queries';
}

$html = template("footer.html");
eval("echo stripslashes(\"$html\");");

if ($afffooter == "off") { ob_start(); include("footer.php"); ob_end_clean(); }
else {include("footer.php");}
?>

[Editiert am 5/3/2003 von Admin DarkBoy]