PHP-Fusion Mods
Navigacija
Apsauga
Apsauga Neleista registracija: 38943
Šiandien: 20
Prisijungę nariai
» Svečių: 9
» Narių: 0

» Viso narių: 10,235
» Naujausias: ruslanas tuk

Prisijungimų istorija:
tabux17:55:07
sanpernepamenu
Zbigniew@nepamenu
CepelinasXnepamenu
VV91DDnepamenu
Minusnepamenu
priezilviciunepamenu
EdvinasG1337nepamenu
rolandas94nepamenu
Edis2nepamenu
klubogerbejasnepamenu
Miskinisnepamenu
Pask. modai
Prisijungti
Vardas

Slaptažodis



Dar ne narys?
Registruotis.

Pamiršai slaptažodį?
Prašyk naujo!.

Naujausi prašymai
[L] testas
Narių apklausa
Ar dar kuriate tinklalapius?

Ne
Ne
0% [0 Balsai]

Taip
Taip
88% [7 Balsai]

Naudojuosi socialiniais tinklais
Naudojuosi socialiniais tinklais
13% [1 Balsas]

Balsai: 8
Kad galėtum balsuoti, turi prisijungti.
Pradėta: 2022-05-29 19:54
Shoutbox
You must login to post a message.

2026-03-21 19:07

2025-07-13 17:07
svx, smagu kad dar atsiranda naujų narių Šypsosi2

2024-03-07 22:13
Oj Tabux… apkabinčiau už tą moderatorių 😁

2024-02-22 17:40
Šypsosi2 jo buvo laikai.. Senukai jau mes. Bega laikas greiciau nei noretusi. Smagu matyti kad uzsuka seni nariai, ne as vienas Šypsosi

2024-02-20 22:18
Zodziu.. Nostalgija. Sorry Tabux uz spam’a, netelpa viskas i viena shout’a. 😁

Shoutbox Archive
Peržiūrėti temą
PHP-Fusion Mods :: PHP-Fusion modifikacijų forumas :: Taisymas
 Spausdinti temą
v7 Forum threads list panel
Bonqe1
#1 Spausdinti pranešimą
parašyta 2010-04-30 18:45
Apšylantis



Reputacija: 0

Pranešimai: 55
Įstojo: 2010-01-06

Kaip padidint Forum threads list paneles rodomu paskutiniu pranesimu skaiciu? Kurioi vietoj reikia keist ta numeriuka?
Ieskojau, bet nieko neradau. Matomai blogai uzrasiau, bet pabodo jau..
Redagavo Bonqe1 2010-04-30 18:46
 
PM
Wyciokazz
#2 Spausdinti pranešimą
parašyta 2010-04-30 18:55
Vartotojo avataras

Administratorius



Reputacija: 1

Pranešimai: 2108
Įstojo: 2008-02-27

kur LIMIT yra ten ziurek.
Kam kurti tai kas jau sukurta.

Nesu ekstrasensas ar dar koks čigonas tad iš nieko negaliu suprast kur bėda.

[img]http://27.media.tumblr.com/tumblr_m3hdwudgjG1rteofuo1_500.gif[/img]
 
PM
Bonqe1
#3 Spausdinti pranešimą
parašyta 2010-04-30 20:10
Apšylantis



Reputacija: 0

Pranešimai: 55
Įstojo: 2010-01-06

Download source  Code
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2008 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: forum_threads_list_panel.php
| Author: Nick Jones (Digitanium)
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined(\"IN_FUSION\")) { die(\"Access Denied\"); }

global $lastvisited;

if (!isset($lastvisited) || !isnum($lastvisited)) { $lastvisited = time(); }

$data = dbarray(dbquery(\"SELECT tt.thread_lastpost
   FROM \".DB_FORUMS.\" tf
   INNER JOIN \".DB_THREADS.\" tt ON tf.forum_id = tt.forum_id
   WHERE \".groupaccess('tf.forum_access').\"
   ORDER BY tt.thread_lastpost DESC LIMIT \".($settings['numofthreads']-1).\", \".$settings['numofthreads']));

$timeframe = empty($data['thread_lastpost']) ? 0 : $data['thread_lastpost'];

$result = dbquery(
   \"SELECT tt.thread_id, tt.thread_subject, tt.thread_views, tt.thread_lastuser, tt.thread_lastpost,
   tt.thread_poll, tf.forum_id, tf.forum_name, tf.forum_access, tt.thread_lastpostid, tt.thread_postcount, tu.user_id, tu.user_name
   FROM \".DB_THREADS.\" tt
   INNER JOIN \".DB_FORUMS.\" tf ON tt.forum_id=tf.forum_id
   INNER JOIN \".DB_USERS.\" tu ON tt.thread_lastuser=tu.user_id
   WHERE \".groupaccess('tf.forum_access').\" AND tt.thread_lastpost >= \".$timeframe.\"
   ORDER BY tt.thread_lastpost DESC LIMIT 0,\".$settings['numofthreads']
);

if (dbrows($result)) {
   $i = 0;
   opentable($locale['global_040']);
   echo \"\n\n\";
   echo \"\n\";
   echo \"\n\";
   echo \"\n\";
   echo \"\n\";
   echo \"\n\";
   echo \"\n\";
   while ($data = dbarray($result)) {
      $row_color = ($i % 2 == 0 ? \"tbl1\" : \"tbl2\");
      echo \"\n\n\";
      echo \"\n\";
      echo \"\n\";
      echo \"\n\";
      echo \"\n\";
      echo \"\n\";
      $i++;
   }
   echo \"
 \".$locale['global_044'].\"\".$locale['global_045'].\"\".$locale['global_046'].\"\".$locale['global_047'].\"
\";
      if ($data['thread_lastpost'] > $lastvisited) {
         $thread_match = $data['thread_id'].\"\|\".$data['thread_lastpost'].\"\|\".$data['forum_id'];
         if (iMEMBER && preg_match(\"(^\.{$thread_match}$|\.{$thread_match}\.|\.{$thread_match}$)\", $userdata['user_threads'])) {
            echo \"''\";
         } else {
            echo \"''\";
         }
      } else {
         echo \"''\";
      }
      if ($data['thread_poll']) {
         $thread_poll = \"[\".$locale['global_051'].\"] \";
      } else {
         $thread_poll = \"\";
      }
      echo \"
\".$thread_poll.\"\".trimlink($data['thread_subject'], 30).\"
\n\".$data['forum_name'].\"
\".$data['thread_views'].\"\".($data['thread_postcount']-1).\"\".$data['user_name'].\"
\n\".showdate(\"forumdate\", $data['thread_lastpost']).\"
\n\";
   if (iMEMBER) {
      echo \"
\".$locale['global_041'].\" ::\n\";
      echo \"\".$locale['global_042'].\" ::\n\";
      echo \"\".$locale['global_043'].\"\";
      if($settings['thread_notify']) {
         echo \" ::\n\".$locale['global_056'].\"\";
      }
      echo \"
\n\";
   }
   closetable();
}
?>






Nu ir kur cia ka keist? O.o
Redagavo Bonqe1 2010-04-30 20:11
 
PM
mindaugaz3
#4 Spausdinti pranešimą
parašyta 2010-04-30 20:27
Vartotojo avataras

Savekas



Reputacija: 0

Pranešimai: 200
Įstojo: 2007-01-12

Reikjo truput u?klaus paredaguoti, bet dabar gerai. Pary?kinau raudonai kur keisti norim kiek rodom tem.

/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2008 Nick Jones
| http://www.php-fu...
+--------------------------------------------------------+
| Filename: forum_threads_list_panel.php
| Author: Nick Jones (Digitanium)
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licen... Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }

global $lastvisited;

if (!isset($lastvisited) || !isnum($lastvisited)) { $lastvisited = time(); }

$data = dbarray(dbquery("SELECT tt.thread_lastpost
FROM ".DB_FORUMS." tf
INNER JOIN ".DB_THREADS." tt ON tf.forum_id = tt.forum_id
WHERE ".groupaccess('tf.forum_access')."
ORDER BY tt.thread_lastpost DESC LIMIT 0"));

$timeframe = empty($data['thread_lastpost']) ? 0 : $data['thread_lastpost'];

$result = dbquery(
"SELECT tt.thread_id, tt.thread_subject, tt.thread_views, tt.thread_lastuser, tt.thread_lastpost,
tt.thread_poll, tf.forum_id, tf.forum_name, tf.forum_access, tt.thread_lastpostid, tt.thread_postcount, tu.user_id, tu.user_name
FROM ".DB_THREADS." tt
INNER JOIN ".DB_FORUMS." tf ON tt.forum_id=tf.forum_id
INNER JOIN ".DB_USERS." tu ON tt.thread_lastuser=tu.user_id
WHERE ".groupaccess('tf.forum_access')." AND tt.thread_lastpost >= ".$timeframe."
ORDER BY tt.thread_lastpost DESC LIMIT 10"
);

if (dbrows($result)) {
$i = 0;
opentable($locale['global_040']);
echo "\n\n";
echo "\n";
echo "\n";
echo "\n";
echo "\n";
echo "\n";
echo "\n";
while ($data = dbarray($result)) {
$row_color = ($i % 2 == 0 ? "tbl1" : "tbl2");
echo "\n\n";
echo "\n";
echo "\n";
echo "\n";
echo "\n";
echo "\n";
$i++;
}
echo "
 ".$locale['global_044']."".$locale['global_045']."".$locale['global_046']."".$locale['global_047']."
";
if ($data['thread_lastpost'] > $lastvisited) {
$thread_match = $data['thread_id']."\|".$data['thread_lastpost']."\|".$data['forum_id'];
if (iMEMBER && preg_match("(^\.{$thread_match}$|\.{$thread_match}\.|\.{$thread_match}$)", $userdata['user_threads'])) {
echo "''";
} else {
echo "''";
}
} else {
echo "''";
}
if ($data['thread_poll']) {
$thread_poll = "[".$locale['global_051']."] ";
} else {
$thread_poll = "";
}
echo "
".$thread_poll."".trimlink($data['thread_subject'], 30)."
\n".$data['forum_name']."
".$data['thread_views']."".($data['thread_postcount']-1)."".$data['user_name']."
\n".showdate("forumdate", $data['thread_lastpost'])."
\n";
if (iMEMBER) {
echo "
".$locale['global_041']." ::\n";
echo "".$locale['global_042']." ::\n";
echo "".$locale['global_043']."";
if($settings['thread_notify']) {
echo " ::\n".$locale['global_056']."";
}
echo "
\n";
}
closetable();
}
?>

Redagavo mindaugaz3 2010-04-30 20:28
www.ltfusion.lt
 
PM
Bonqe1
#5 Spausdinti pranešimą
parašyta 2010-04-30 20:45
Apšylantis



Reputacija: 0

Pranešimai: 55
Įstojo: 2010-01-06

Dq
 
PM
Peršokti į forumą: