Naujokas
Reputacija:
0 Pranešimai: 9
Įstojo: 2009-08-08
Sveiki pas mane dizaine yra forumo top 10 lenteles tai naujausios temos populiariausios ir kita neatsimenu kokia bet man reikia is forumo top 10 lenteliu perdaryt i siuntiniu top 10 kad pvz butu Naujausi siuntiniai, Siunciamiausi ir Geriausiai ivertinti gal kas perdarytu
stai kodas
/*----------------------------------------------+
| FORUMS TOP 10 |
|-----------------------------------------------|
| File version: 1.0 |
|-----------------------------------------------|
| Author: Ali Saka ( AvaLoN ) |
| Web: http://fusiontr.bplaced.net |
| Email: razorteck@gmail.com |
+----------------------------------------------*/
if (file_exists(THEME."dildosyasi/".$settings['locale'].".php")) {
include_once THEME."dildosyasi/".$settings['locale'].".php";
} else {
include_once THEME."dildosyasi/Turkce.php";
}
echo "";
list($min_posts) = dbarraynum(dbquery("SELECT thread_postcount FROM ".DB_THREADS." ORDER BY thread_postcount DESC LIMIT 9,10"));
$result = dbquery("
SELECT tf.forum_id, tt.thread_id, tt.thread_subject, tt.thread_postcount
FROM ".DB_FORUMS." tf
INNER JOIN ".DB_THREADS." tt USING(forum_id)
WHERE tt.thread_postcount >= '$min_posts'
ORDER BY thread_postcount DESC, thread_lastpost DESC LIMIT 5
");
@opentable($locale['top_01']);
if (dbrows($result) != 0) {
echo '';
while ($data = dbarray($result)) {
$itemsubject = trimlink($data['thread_subject'], 25);
echo " \n".THEME_BULLET." $itemsubject \n";
echo "[".($data['thread_postcount'] - 1)."] \n \n";
}
echo "
\n";
} else {
echo "".$locale['top_04']."
\n";
}
@closetable();
echo " ";
list($min_posts) = dbarraynum(dbquery("SELECT thread_views FROM ".DB_THREADS." ORDER BY thread_views DESC LIMIT 9,10"));
$result = dbquery("
SELECT tf.forum_id, tt.thread_id, tt.thread_subject, tt.thread_views
FROM ".DB_FORUMS." tf
INNER JOIN ".DB_THREADS." tt USING(forum_id)
WHERE tt.thread_views >= '$min_posts'
ORDER BY thread_views DESC LIMIT 5
");
@opentable($locale['top_02']);
if (dbrows($result) != 0) {
echo '';
while ($data = dbarray($result)) {
$itemsubject = trimlink($data['thread_subject'], 25);
echo " \n".THEME_BULLET." $itemsubject \n";
echo "[".($data['thread_views'])."] \n \n";
}
echo "
\n";
} else {
echo "".$locale['top_04']."
\n";
}
@closetable();
echo " ";
$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 5
");
@opentable($locale['top_03']);
if (dbrows($result) != 0) {
echo '';
while ($data = dbarray($result)) {
$itemsubject = trimlink($data['thread_subject'], 25);
echo " \n".THEME_BULLET." $itemsubject \n";
echo " \n \n";
}
echo "
\n";
} else {
echo "".$locale['top_04']."
\n";
}
@closetable();
?>
Peršokti į forumą:
PHP-Fusion funkcijos
PHP-Fusion failų modifikavimas
Pageidaujami infusionai, panelės, modifikacijos.
Jūsų sukurta modifikacija, panelė, infusion'as
Modifikacijų, įskiepių, panelių kūrimas
Modifikacijų, įskiepių diegimas
Naujų modifikacijų, panelių, infusionų pristatymai
Patobulinimai
Taisymas
Vertimas
Mūsų modifikacijos
Pasiūlymai
Tavo kurtas stilius (Show Off)
Stiliaus pagalba
Tinklalapių kūrimas
Jūsų sukurti tinklalapiai
Šiukšlės
Off-topic diskusijos
Perku, parduodu, dovanoju, keičiu, ieškau
2007 metų archyvas
2008 metų archyvas
Copyright © 2026 phpfusion.lt