Peržiūrėti temą
PHP-Fusion Mods :: PHP-Fusion modifikacijų forumas :: Taisymas
|
v7 Forum threads list panel
|
|||||||||||
| Bonqe1 |
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 |
||||||||||
| Wyciokazz |
parašyta 2010-04-30 18:55
|
||||||||||
|
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] |
||||||||||
| Bonqe1 |
parašyta 2010-04-30 20:10
|
||||||||||
Apšylantis![]() Reputacija: 0 Pranešimai: 55 Įstojo: 2010-01-06 |
/*-------------------------------------------------------+Nu ir kur cia ka keist? O.o Redagavo Bonqe1 2010-04-30 20:11 |
||||||||||
| mindaugaz3 |
parašyta 2010-04-30 20:27
|
||||||||||
|
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 "
if (iMEMBER) { echo " ".$locale['global_041']." ::\n"; \n";echo "".$locale['global_042']." ::\n"; echo "".$locale['global_043'].""; if($settings['thread_notify']) { echo " ::\n".$locale['global_056'].""; } echo " } closetable(); } ?> Redagavo mindaugaz3 2010-04-30 20:28 www.ltfusion.lt |
||||||||||
| Bonqe1 |
parašyta 2010-04-30 20:45
|
||||||||||
Apšylantis![]() Reputacija: 0 Pranešimai: 55 Įstojo: 2010-01-06 |
Dq | ||||||||||
| Peršokti į forumą: |






