DZCP Template Support#6 Last forum( PLEASE READ!)


31.08.2011, 03:45 - AreZ - Forumrang: Plappermaul - 1 Posts
Hi i know the fix for it
dorock wrote:

öffne die Datein "ftopics.php" im verzeichnis "inc\menu-functions" suchen.

dort sucht du dan denn
Code:
1.
if($f == $maxfposts) break; if(fintern($get['kid']))


den erstzt du durch
Code:
1.
if($f == $maxftopics) break; if(fintern($get['kid']))


das wars dann schon


but this is what i have in my ftopics.php :

[toggle=read more]<?php
function ftopics()
{
global $db,$maxftopics,$lftopics,$maxfposts,$allowHover;

$f = 1;
$qry = db("SELECT s1.*,s2.id AS subid FROM ".$db['f_threads']." s1, ".$db['f_skats']." s2, ".$db['f_kats']." s3
WHERE s1.kid = s2.id AND s2.sid = s3.id ORDER BY s1.lp DESC LIMIT 100");
while($get = _fetch($qry))
{
if($f == $maxfposts) break;
if(fintern($get['kid']))
{
$lp = cnt($db['f_posts'], " WHERE sid = '".$get['id']."'");
$pagenr = ceil($lp/$maxfposts);

if($pagenr == 0) $page = 1;
else $page = $pagenr;

if($allowHover == 1)
$info = 'onmouseover="DZCP.showInfo(\'<tr><td colspan=2 align=center padding=3 class=infoTop>'.jsconvert(re($get['topic'])).'</td></tr><tr><td><b>'._forum_posts.':</b></td><td>'.$lp.'</td></tr><tr><td><b>'._forum_lpost.':</b></td><td>'.date("d.m.Y H:i", $get['lp'])._uhr.'</td></tr>\')" onmouseout="DZCP.hideInfo()"';

$ftopics .= show("menu/forum_topics", array("id" => $get['id'],
"pagenr" => $page,
"p" => $lp +1,
"titel" => cut(re($get['topic']),$lftopics),
"info" => $info,
"forumpostl" => $lp,
"kid" => $get['kid']));
$f++;
}
}
return empty($ftopics) ? '' : '<table class="navContent" cellspacing="0">'.$ftopics.'</table>';
}
?>
[/toggle]

Please help, ty unhappy

nm...
found fix...
[toggle=read more]
HyberSign wrote:


Code:
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
<?php
function ftopics()
{
  global $db,$maxftopics,$lftopics,$maxfposts,$allowHover;

    if(!permission("intforum")) $fintern = "AND s3.intern = 0";
    $qry = db("SELECT s1.*,s2.id AS subid FROM ".$db['f_threads']." s1, ".$db['f_skats']." s2, ".$db['f_kats']." s3
               WHERE s1.kid = s2.id
               ".$fintern."
               AND s2.sid = s3.id
               ORDER BY s1.lp DESC
               LIMIT ".$maxftopics."");
               while($get = _fetch($qry))
      {
                    if(fintern($get['kid']))
        {
          $lp = cnt($db['f_posts'], " WHERE sid = '".$get['id']."'");
          $pagenr = ceil($lp/$maxfposts);

          if($pagenr == 0) $page = 1;
          else $page = $pagenr;

          if($allowHover == 1)
          $info = 'onmouseover="DZCP.showInfo(\'<tr><td colspan=2 align=center padding=3 class=infoTop>'.jsconvert(re($get['topic'])).'</td></tr><tr><td><b>'._forum_posts.':</b></td><td>'.$lp.'</td></tr><tr><td><b>'._forum_lpost.':</b></td><td>'.date("d.m.Y H:i", $get['lp'])._uhr.'</td></tr>\')" onmouseout="DZCP.hideInfo()"';

          $ftopics .= show("menu/forum_topics", array("id" => $get['id'],
                                                      "pagenr" => $page,
                                                      "p" => $lp +1,
                                                      "titel" => cut(re($get['topic']),$lftopics),
                                                      "info" => $info,
                                                                   "forumpostl" => $lp,
                                                      "kid" => $get['kid']));
        }
      }
  return empty($ftopics) ? '' : '<table class="navContent" cellspacing="0">'.$ftopics.'</table>';
}
?>



MfG
[/toggle]

LOCK