Navigacija

Vartotojų tinkle

Prisijungusių svečių: 407
Prisijungusių narių: 0
Prisijungusių narių nėra

Registruoti nariai: 25,956
Naujausias narys: saulyzas

Naujausi straipsniai

Paskutiniai nariai

saulyzas04:55:05
MaFetas 2 dienos
TOMIJUS 1 savaitė
ozzWANTED 1 savaitė
Reikalas10 savaitės
Jaunelis16 savaitės
lanis16 savaitės
And2s17 savaitės
Memento Mori22 savaitės
Quwqkibor24 savaitės
asirija28 savaitės
tomeem30 savaitės
weberiz34 savaitės
mRokass36 savaitės
kartoonas37 savaitės
grunskiz40 savaitės
Bruksnys40 savaitės
illusion40 savaitės
ordo41 savaitės
Jurgaila42 savaitės

Informacija:


OS: Unknown
Naršyklė: Nežinoma
IP: 3.139.103.204
Naujienų: 529
Straipsnių: 235
Temų: 52,588
Postų: 522,537
Postų pask. parą: 0
Shout'ų pask. parą: 0
P.S.C. pask. parą: 0
Nuorodų kataloge: 13

Lankomumo Statistika

Peržiūrų šiandien: 22

Iš viso peržiūrų: 22948724

Prisijungti

REGISTRUOTIS
Nario vardas

Slaptažodis



Pamiršai slaptažodį?
Paprašyk naujo

Aktyvuoti save

Šaukykla

Jei norite rašyti žinutes, turite prisijungti.

MaFetas
2024 Lap. 13 22:11:57
hey how, geras dar veikiantis saitas?

Jaunelis
2024 Lie. 25 11:07:43
Oho vis dar veikia svetainė akinanti šypsen Šimtas metų, matau Šaukykloje nuostalgija. Smagu panaršyt po forumą ir pažiūrėt senas temas šypsosi

And2s
2024 Lie. 17 19:07:04
2008 pirmą kart čia patekau, man buvo 10m ir čia pramokau programavimo.. smagu skaityti senas žinutes, tokia nostalgija akinanti šypsen ačiū Ozz kad saugoji šitą kultūrinį reliktą šypsosi

ozzWANTED
2024 Sau. 17 01:01:00
Desperatiškus komentarus šaukykloje su accountu po mėnesio prasibuvimo, ištryniau. Pasaulis ir taip juodas. Įjungiam šviesą, prašviesės. šypsosi

Majakas
2023 Gru. 10 19:12:39
Negaliu patikėti jog žinutės/pranešimai visi yra nuo 2008 m akinanti šypsen

Šaukyklos archyvas

Apklausa

Ar esate patenkinti lietuviško vertimo kokybe?

Taip!

Taip, bet yra ką taisyti (parašysiu komentaruose)

Ne

Norėdamas balsuoti turite prisijungti.
Archyvas
Reklama 400x60
PHP: [ATNAUJINTA] Forumas ir aktyvios forumo temos
Forumas | PHP-Fusion, WordPress, Shopify, PHP ir MySQL (PROGRAMAVIMAS) | Kiti PHP, HTML, MySQL klausimai

Autorius: keistas Peržiūrų: 4898      Spausdinti temą
2011 Bir. 5 09:06:25          1 žinutė iš 16
Spausdinti pranešimą
Kaip šitam infusione galima padaryti, tai -



Kad leistų rašyti daugiau simbolių - kad parašyta normaliai PILNU SAKINIŲ ATVAIZDUOTŲ


<?php
 
/*-------------------------------------------------------+
 
| <span style="border-bottom: 1px dotted black;">PHP</span>-Fusion Content Management System
 
| Copyright (C) 2002 - 2010 Nick Jones
 
| <a href='http://www.php-fusion.co.uk/' target='_blank'><span style='color:005C5B'>http://www.php-fusion.co.uk/</span></a>
 
+--------------------------------------------------------+
 
| 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 <a href='http://www.gnu.org/licenses/agpl.html.' target='_blank'><span style='color:005C5B'>www.gnu.org/licenses/agpl.html.</span></a> 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')." AND thread_hidden='0'
 
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_locked, 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,
 
tu.user_status
 
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." AND tt.thread_hidden='0'
 
ORDER BY tt.thread_lastpost DESC LIMIT 0,"
.$settings['numofthreads']
 
);
 
 
 
if (dbrows($result)) {
 
$i = 0;
 
opentable($locale['global_040']);
 
echo "<table cellpadding='0' cellspacing='1' width='100%' class='tbl-border'>\n<tr>\n";
 
echo "<td class='tbl2'>&nbsp;</td>\n";
 
echo "<td width='100%' class='tbl2'><strong>".$locale['global_044']."</strong></td>\n";
 
echo "<td width='1%' class='tbl2' style='text-align:center;white-space:nowrap'><strong>".$locale['global_045']."</strong></td>\n";
 
echo "<td width='1%' class='tbl2' style='text-align:center;white-space:nowrap'><strong>".$locale['global_046']."</strong></td>\n";
 
echo "<td width='1%' class='tbl2' style='text-align:center;white-space:nowrap'><strong>".$locale['global_047']."</strong></td>\n";
 
echo "</tr>\n";
 
while ($data = dbarray($result)) {
 
$row_color = ($i % 2 == 0 ? "tbl1" : "tbl2");
 
echo "<tr>\n<td class='".$row_color."'>";
 
if ($data['thread_locked']) {
 
echo "<img src='".get_image("folderlock")."' alt='".$locale['564']."' />";
 
}else{
 
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 "<img src='".get_image("folder")."' alt='' />";
 
} else {
 
echo "<img src='".get_image("foldernew")."' alt='' />";
 
}
 
} else {
 
echo "<img src='".get_image("folder")."' alt='' />";
 
}
 
}
 
if ($data['thread_poll']) {
 
$thread_poll = "<span class='small' style='font-weight:bold'>[".$locale['global_051']."]</span> ";
 
} else {
 
$thread_poll = "";
 
}
 
 
 
echo "</td>\n";
 
echo "<td width='100%' class='".$row_color."'>".$thread_poll."<a href='".FORUM."viewthread.php?thread_id=".$data['thread_id']."&amp;pid=".$data['thread_lastpostid']."#post_".$data['thread_lastpostid']."' title='".$data['thread_subject']."'>".trimlink($data['thread_subject'], 30)."</a><br />\n".$data['forum_name']."</td>\n";
 
echo "<td width='1%' class='".$row_color."' style='text-align:center;white-space:nowrap'>".$data['thread_views']."</td>\n";
 
echo "<td width='1%' class='".$row_color."' style='text-align:center;white-space:nowrap'>".($data['thread_postcount']-1)."</td>\n";
 
echo "<td width='1%' class='".$row_color."' style='text-align:center;white-space:nowrap'>".profile_link($data['thread_lastuser'], $data['user_name'], $data['user_status'])."<br />\n".showdate("forumdate", $data['thread_lastpost'])."</td>\n";
 
echo "</tr>\n";
 
$i++;
 
}
 
echo "</table>\n";
 
if (iMEMBER) {
 
echo "<div class='tbl1' style='text-align:center'><a href='".INFUSIONS."forum_threads_list_panel/my_threads.php'>".$locale['global_041']."</a> ::\n";
 
echo "<a href='".INFUSIONS."forum_threads_list_panel/my_posts.php'>".$locale['global_042']."</a> ::\n";
 
echo "<a href='".INFUSIONS."forum_threads_list_panel/new_posts.php'>".$locale['global_043']."</a>";
 
if($settings['thread_notify']) {
 
echo " ::\n<a href='".INFUSIONS."forum_threads_list_panel/my_tracked_threads.php'>".$locale['global_056']."</a>";
 
}
 
echo "</div>\n";
 
}
 
closetable();
 
}
 
?>


2011 Bir. 5 12:06:12          2 žinutė iš 16
Spausdinti pranešimą
O man isvis galit paaiskint kaip apdaryti prie aktyviu forumo temu pagrindiniam puslapi kad prie ju tas aplankas atsirastu ? nes dabar tik uzrasai...
2011 Bir. 5 13:06:45          3 žinutė iš 16
Spausdinti pranešimą
Prie ko tu čia, kurk savo tema.

2011 Bir. 5 14:06:12          4 žinutė iš 16
Spausdinti pranešimą
Vietoj to suknisto sakinio dabar galejai pasakyt... sekmes niekas cia tau nepadesmerkia akį
2011 Bir. 5 23:06:12          5 žinutė iš 16
Spausdinti pranešimą
Galbūt atsirastu, tas kuris žino?

2011 Bir. 7 11:06:26          6 žinutė iš 16
Spausdinti pranešimą
vampiriukas - ieik i savo nauojama theme per ftp ir pažiūrėk ar img yra?

Uždarbis internete: https://uzdarbisinternete.lt
2011 Bir. 7 12:06:05          7 žinutė iš 16
Spausdinti pranešimą
keistas parašė:
Galbūt atsirastu, tas kuris žino?

parasyk cia ta savo panele su aktiviom temom.

2011 Bir. 8 06:06:20          8 žinutė iš 16
Spausdinti pranešimą
forum_threads_list_panel - koda?

2011 Bir. 8 16:06:40          9 žinutė iš 16
Spausdinti pranešimą
nu ka as zinau koks jo tas pavadinimas.
Dek tos paneles koda

2011 Bir. 8 16:06:04          10 žinutė iš 16
Spausdinti pranešimą

<?php
/*-------------------------------------------------------+
| <span style="border-bottom: 1px dotted black;">PHP</span>-Fusion Content Management System
| Copyright (C) 2002 - 2010 Nick Jones
| <a href='http://www.php-fusion.co.uk/' target='_blank'><span style='color:005C5B'>http://www.php-fusion.co.uk/</span></a>
+--------------------------------------------------------+
| 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 <a href='http://www.gnu.org/licenses/agpl.html.' target='_blank'><span style='color:005C5B'>www.gnu.org/licenses/agpl.html.</span></a> 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')." AND thread_hidden='0'
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,
tu.user_status
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." AND tt.thread_hidden='0'
ORDER BY tt.thread_lastpost DESC LIMIT 0,"
.$settings['numofthreads']
);
 
if (dbrows($result)) {
$i = 0;
opentable($locale['global_040']);
echo "<table cellpadding='0' cellspacing='1' width='100%' class='tbl-border'>\n<tr>\n";
echo "<td class='tbl2'>&nbsp;</td>\n";
echo "<td width='100%' class='tbl2'><strong>".$locale['global_044']."</strong></td>\n";
echo "<td width='1%' class='tbl2' style='text-align:center;white-space:nowrap'><strong>".$locale['global_045']."</strong></td>\n";
echo "<td width='1%' class='tbl2' style='text-align:center;white-space:nowrap'><strong>".$locale['global_046']."</strong></td>\n";
echo "<td width='1%' class='tbl2' style='text-align:center;white-space:nowrap'><strong>".$locale['global_047']."</strong></td>\n";
echo "</tr>\n";
while ($data = dbarray($result)) {
$row_color = ($i % 2 == 0 ? "tbl1" : "tbl2");
echo "<tr>\n<td class='".$row_color."'>";
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 "<img src='".get_image("folder")."' alt='' />";
} else {
echo "<img src='".get_image("foldernew")."' alt='' />";
}
} else {
echo "<img src='".get_image("folder")."' alt='' />";
}
if ($data['thread_poll']) {
$thread_poll = "<span class='small' style='font-weight:bold'>[".$locale['global_051']."]</span> ";
} else {
$thread_poll = "";
}
echo "</td>\n";
echo "<td width='100%' class='".$row_color."'>".$thread_poll."<a href='".FORUM."viewthread.php?thread_id=".$data['thread_id']."&amp;pid=".$data['thread_lastpostid']."#post_".$data['thread_lastpostid']."' title='".$data['thread_subject']."'>".trimlink($data['thread_subject'], 30)."</a><br />\n".$data['forum_name']."</td>\n";
echo "<td width='1%' class='".$row_color."' style='text-align:center;white-space:nowrap'>".$data['thread_views']."</td>\n";
echo "<td width='1%' class='".$row_color."' style='text-align:center;white-space:nowrap'>".($data['thread_postcount']-1)."</td>\n";
echo "<td width='1%' class='".$row_color."' style='text-align:center;white-space:nowrap'>".profile_link($data['thread_lastuser'], $data['user_name'], $data['user_status'])."<br />\n".showdate("forumdate", $data['thread_lastpost'])."</td>\n";
echo "</tr>\n";
$i++;
}
echo "</table>\n";
if (iMEMBER) {
echo "<div class='tbl1' style='text-align:center'><a href='".INFUSIONS."forum_threads_list_panel/my_threads.php'>".$locale['global_041']."</a> ::\n";
echo "<a href='".INFUSIONS."forum_threads_list_panel/my_posts.php'>".$locale['global_042']."</a> ::\n";
echo "<a href='".INFUSIONS."forum_threads_list_panel/new_posts.php'>".$locale['global_043']."</a>";
if($settings['thread_notify']) {
echo " ::\n<a href='".INFUSIONS."forum_threads_list_panel/my_tracked_threads.php'>".$locale['global_056']."</a>";
}
echo "</div>\n";
}
closetable();
}
?>
 


Aš manau šitoj vietoj problemos kyla:


{
echo "<img src='".get_image("folder")."' alt='' />";
} else {
echo "<img src='".get_image("foldernew")."' alt='' />";
}
} else {
echo "<img src='".get_image("folder")."' alt='' />";
}


2011 Bir. 8 18:06:34          11 žinutė iš 16
Spausdinti pranešimą

<?php
/*-------------------------------------------------------+
| <span style="border-bottom: 1px dotted black;">PHP</span>-Fusion Content Management System
| Copyright (C) 2002 - 2010 Nick Jones
| <a href='http://www.php-fusion.co.uk/' target='_blank'><span style='color:005C5B'>http://www.php-fusion.co.uk/</span></a>
+--------------------------------------------------------+
| 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 <a href='http://www.gnu.org/licenses/agpl.html.' target='_blank'><span style='color:005C5B'>www.gnu.org/licenses/agpl.html.</span></a> 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')." AND thread_hidden='0'
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_locked, 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,
tu.user_status
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." AND tt.thread_hidden='0'
ORDER BY tt.thread_lastpost DESC LIMIT 0,"
.$settings['numofthreads']
);
 
if (dbrows($result)) {
$i = 0;
opentable($locale['global_040']);
echo "<table cellpadding='0' cellspacing='1' width='100%' class='tbl-border'>\n<tr>\n";
echo "<td class='tbl2'>&nbsp;</td>\n";
echo "<td width='100%' class='tbl2'><strong>".$locale['global_044']."</strong></td>\n";
echo "<td width='1%' class='tbl2' style='text-align:center;white-space:nowrap'><strong>".$locale['global_045']."</strong></td>\n";
echo "<td width='1%' class='tbl2' style='text-align:center;white-space:nowrap'><strong>".$locale['global_046']."</strong></td>\n";
echo "<td width='1%' class='tbl2' style='text-align:center;white-space:nowrap'><strong>".$locale['global_047']."</strong></td>\n";
echo "</tr>\n";
while ($data = dbarray($result)) {
$row_color = ($i % 2 == 0 ? "tbl1" : "tbl2");
echo "<tr>\n<td class='".$row_color."'>";
if ($data['thread_locked']) {
echo "<img src='".get_image("folderlock")."' alt='".$locale['564']."' />";
}else{
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 "<img src='".get_image("folder")."' alt='' />";
} else {
echo "<img src='".get_image("foldernew")."' alt='' />";
}
} else {
echo "<img src='".get_image("folder")."' alt='' />";
}
}
if ($data['thread_poll']) {
$thread_poll = "<span class='small' style='font-weight:bold'>[".$locale['global_051']."]</span> ";
} else {
$thread_poll = "";
}
 
echo "</td>\n";
echo "<td width='100%' class='".$row_color."'>".$thread_poll."<a href='".FORUM."viewthread.php?thread_id=".$data['thread_id']."&amp;pid=".$data['thread_lastpostid']."#post_".$data['thread_lastpostid']."' title='".$data['thread_subject']."'>".trimlink($data['thread_subject'], 30)."</a><br />\n".$data['forum_name']."</td>\n";
echo "<td width='1%' class='".$row_color."' style='text-align:center;white-space:nowrap'>".$data['thread_views']."</td>\n";
echo "<td width='1%' class='".$row_color."' style='text-align:center;white-space:nowrap'>".($data['thread_postcount']-1)."</td>\n";
echo "<td width='1%' class='".$row_color."' style='text-align:center;white-space:nowrap'>".profile_link($data['thread_lastuser'], $data['user_name'], $data['user_status'])."<br />\n".showdate("forumdate", $data['thread_lastpost'])."</td>\n";
echo "</tr>\n";
$i++;
}
echo "</table>\n";
if (iMEMBER) {
echo "<div class='tbl1' style='text-align:center'><a href='".INFUSIONS."forum_threads_list_panel/my_threads.php'>".$locale['global_041']."</a> ::\n";
echo "<a href='".INFUSIONS."forum_threads_list_panel/my_posts.php'>".$locale['global_042']."</a> ::\n";
echo "<a href='".INFUSIONS."forum_threads_list_panel/new_posts.php'>".$locale['global_043']."</a>";
if($settings['thread_notify']) {
echo " ::\n<a href='".INFUSIONS."forum_threads_list_panel/my_tracked_threads.php'>".$locale['global_056']."</a>";
}
echo "</div>\n";
}
closetable();
}
?>


2011 Bir. 8 21:06:58          12 žinutė iš 16
Spausdinti pranešimą
Ačiū, padėjo. O kurioj vietoj čia reikėjo pakeist?

2011 Bir. 8 22:06:28          13 žinutė iš 16
Spausdinti pranešimą
keistas parašė:
Ačiū, padėjo. O kurioj vietoj čia reikėjo pakeist?

reikejo pridet 1 if'a del uzrakintu temu...

2011 Gru. 2 20:12:19          14 žinutė iš 16
Spausdinti pranešimą
Kaip šitam infusione galima padaryti, tai -



Kad leistų rašyti daugiau simbolių - kad parašyta normaliai PILNU SAKINIŲ ATVAIZDUOTŲ


<?php
 
/*-------------------------------------------------------+
 
| <span style="border-bottom: 1px dotted black;">PHP</span>-Fusion Content Management System
 
| Copyright (C) 2002 - 2010 Nick Jones
 
| <a href='http://www.php-fusion.co.uk/' target='_blank'><span style='color:005C5B'>http://www.php-fusion.co.uk/</span></a>
 
+--------------------------------------------------------+
 
| 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 <a href='http://www.gnu.org/licenses/agpl.html.' target='_blank'><span style='color:005C5B'>www.gnu.org/licenses/agpl.html.</span></a> 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')." AND thread_hidden='0'
 
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_locked, 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,
 
tu.user_status
 
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." AND tt.thread_hidden='0'
 
ORDER BY tt.thread_lastpost DESC LIMIT 0,"
.$settings['numofthreads']
 
);
 
 
 
if (dbrows($result)) {
 
$i = 0;
 
opentable($locale['global_040']);
 
echo "<table cellpadding='0' cellspacing='1' width='100%' class='tbl-border'>\n<tr>\n";
 
echo "<td class='tbl2'>&nbsp;</td>\n";
 
echo "<td width='100%' class='tbl2'><strong>".$locale['global_044']."</strong></td>\n";
 
echo "<td width='1%' class='tbl2' style='text-align:center;white-space:nowrap'><strong>".$locale['global_045']."</strong></td>\n";
 
echo "<td width='1%' class='tbl2' style='text-align:center;white-space:nowrap'><strong>".$locale['global_046']."</strong></td>\n";
 
echo "<td width='1%' class='tbl2' style='text-align:center;white-space:nowrap'><strong>".$locale['global_047']."</strong></td>\n";
 
echo "</tr>\n";
 
while ($data = dbarray($result)) {
 
$row_color = ($i % 2 == 0 ? "tbl1" : "tbl2");
 
echo "<tr>\n<td class='".$row_color."'>";
 
if ($data['thread_locked']) {
 
echo "<img src='".get_image("folderlock")."' alt='".$locale['564']."' />";
 
}else{
 
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 "<img src='".get_image("folder")."' alt='' />";
 
} else {
 
echo "<img src='".get_image("foldernew")."' alt='' />";
 
}
 
} else {
 
echo "<img src='".get_image("folder")."' alt='' />";
 
}
 
}
 
if ($data['thread_poll']) {
 
$thread_poll = "<span class='small' style='font-weight:bold'>[".$locale['global_051']."]</span> ";
 
} else {
 
$thread_poll = "";
 
}
 
 
 
echo "</td>\n";
 
echo "<td width='100%' class='".$row_color."'>".$thread_poll."<a href='".FORUM."viewthread.php?thread_id=".$data['thread_id']."&amp;pid=".$data['thread_lastpostid']."#post_".$data['thread_lastpostid']."' title='".$data['thread_subject']."'>".trimlink($data['thread_subject'], 30)."</a><br />\n".$data['forum_name']."</td>\n";
 
echo "<td width='1%' class='".$row_color."' style='text-align:center;white-space:nowrap'>".$data['thread_views']."</td>\n";
 
echo "<td width='1%' class='".$row_color."' style='text-align:center;white-space:nowrap'>".($data['thread_postcount']-1)."</td>\n";
 
echo "<td width='1%' class='".$row_color."' style='text-align:center;white-space:nowrap'>".profile_link($data['thread_lastuser'], $data['user_name'], $data['user_status'])."<br />\n".showdate("forumdate", $data['thread_lastpost'])."</td>\n";
 
echo "</tr>\n";
 
$i++;
 
}
 
echo "</table>\n";
 
if (iMEMBER) {
 
echo "<div class='tbl1' style='text-align:center'><a href='".INFUSIONS."forum_threads_list_panel/my_threads.php'>".$locale['global_041']."</a> ::\n";
 
echo "<a href='".INFUSIONS."forum_threads_list_panel/my_posts.php'>".$locale['global_042']."</a> ::\n";
 
echo "<a href='".INFUSIONS."forum_threads_list_panel/new_posts.php'>".$locale['global_043']."</a>";
 
if($settings['thread_notify']) {
 
echo " ::\n<a href='".INFUSIONS."forum_threads_list_panel/my_tracked_threads.php'>".$locale['global_056']."</a>";
 
}
 
echo "</div>\n";
 
}
 
closetable();
 
}
 
?>

2011 Gru. 2 23:12:03          15 žinutė iš 16
Spausdinti pranešimą
".trimlink($data['thread_subject'], 30)."
keiciam i
".$data['thread_subject']."

2011 Gru. 4 00:12:05          16 žinutė iš 16
Spausdinti pranešimą
avice parašė:
".trimlink($data['thread_subject'], 30)."
keiciam i
".$data['thread_subject']."


Ačiū, o kaip sucentruot dar pavadinimą? Turiu omeny kur juostoj - Forumas ir aktyvios forumo temos

Peršokti į forumą: