Witam posiadam wersje PHP-Fusion v7.02.05 i mam problem, który wygląda tak:
Podczas gdy najadę na jakiś tytuł tematu pokazuje mi się chmurka którą dodałem, ale nie potrafię zrobić, by w każdej chmurce było, kto dodał, jaka data itd... To znaczy, gdy dodaje kod w panelu pokazuję mi treść z ostatniego tematu ;/
Czyli na jaki temat nie najadę pokazuję mi treść tylko i wyłącznie ostatniego.
Kod:
<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2011 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: forum_threads_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 http://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"); }
opensidel($locale['global_020']);
echo "\n";
$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_hidden='0'
ORDER BY thread_lastpost DESC LIMIT 5
");
if (dbrows($result)) {
while($data = dbarray($result)) {
$itemsubject = trimlink($data['thread_subject'], 18);
echo"
<!-- dymek -->
<div id='exe-pop-up'>
Nazwa:
<br>
-------<br>
Odp/Ods:
<br>
-------<br>
Data:
<br>
-------<br>
Dodal: ".profile_link($data['thread_lastuser'], $data['user_name'], $data['user_status'])."
<br>
</div>
<nobr style='float:left; font-family: arial; font-size: 13px;'><a id='pop-up-title' href='".FORUM."viewthread.php?thread_id=".$data['thread_id']."' title='' class='side' style='color:#000;'>$itemsubject</a></nobr><nobr style='float:right; color: #000; font-family: arial; font-size: 13px;'>".profile_link($data['thread_lastuser'], $data['user_name'], $data['user_status'])."</nobr><BR>
<!-- koniec dymku -->
\n";
}
} else {
echo "<div style='color: #000; text-align: center'>".$locale['global_023']."</div>\n";
}
echo "\n";
$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) != 0) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n";
while($data = dbarray($result)) {
$itemsubject = trimlink($data['thread_subject'], 20);
echo "<tr>\n";
echo "\n</tr>\n";
}
echo "</table>\n";
} else {
echo "\n";
}
closesidel();
?>
Dodawałem takie kody:
- Postów/Odwiedzin: [".$data['thread_views']."/
".($data['thread_postcount']-1)."]</div>
- Tytuł tematu: $itemsubject
- Data
PW od moderatora:
- Przeniesienie tematu - bogdan 15.07.2013 10:00
Edytowane przez MitaSashi dnia 15.07.2013 09:08:59
|