Zu dem in diesem Thema aufgedeckten Problemstellung, asoi.php zeigt Beiträge an welche vom Verfasser lediglich als Entwurf gespeichert wurden.
In der asoi.php finde ich wie folgt:
Zeile ab 38
Wobei im ersten Block AND t.visible != '-2' steht.
Zeile ab 219
Wobei im ersten Block visible = 1 steht
In der asoi.php finde ich wie folgt:
Zeile ab 38
PHP-Code:
{ //MOST DOWNLOADS
$query = $db->query("
SELECT a.*, p.subject, p.dateline, t.tid, t.subject AS attachment
FROM ".TABLE_PREFIX."attachments a
LEFT JOIN ".TABLE_PREFIX."posts p ON (a.pid=p.pid)
LEFT JOIN ".TABLE_PREFIX."threads t ON (t.tid=p.tid)
LEFT JOIN ".TABLE_PREFIX."users u ON (u.uid=a.uid)
WHERE 1=1 $tunviewwhere AND t.visible='1' AND t.closed NOT LIKE 'moved|%'
AND t.visible != '-2'
AND a.thumbnail = ''
GROUP BY p.pid
ORDER BY a.downloads DESC
LIMIT 5
");
if($db->num_rows($query) > 0)
{
$num = 0;
while($attachment = $db->fetch_array($query))
{
$icon = "";
$lang->load("usercp");
if($attachment['icon'] != 0)
$bandwidth = get_friendly_size($bandwidth);
$bandwidth = $totaldownloads = 0;
$size = get_friendly_size($attachment['filesize']);
$icon = get_attachment_icon(get_extension($attachment['filename']));
$sizedownloads = $lang->sprintf($lang->attachment_size_downloads, $size, $attachment['downloads']);
$attachdate = my_date('relative', $attachment['dateline']);
$lines .= $icon."<a href=\"attachment.php?aid={$attachment['aid']}\" target=\"_blank\">{$attachment['filename']}</a> <span class=\"smalltext\">{$sizedownloads}</span><br />\n";
$num++;
}
}
else
$lines = $lang->asoi_no_downloads."<br />\n";
}
Zeile ab 219
PHP-Code:
{ //NEWEST REPLIES
$query = $db->query("SELECT p.tid, p.pid, p.subject, p.icon, p.dateline, u.uid, u.username, u.usergroup, u.displaygroup, i.* FROM ".$db->table_prefix."posts p LEFT JOIN ".$db->table_prefix."users u ON u.uid=p.uid LEFT JOIN ".$db->table_prefix."icons i ON i.iid=p.icon WHERE ".$fidnot." AND p.replyto != 0 AND p.visible = 1 ORDER BY p.dateline DESC LIMIT ".$limit);
if($db->num_rows($query) > 0)
{
$num = 0;
while($reply = $db->fetch_array($query))
{
$icon = "";
if($reply['icon'] != 0)
$icon = "<img src=\"".$reply['path']."\" alt=\"".$reply['name']."\" style=\"vertical-align:middle;\" height=\"12\" width=\"12\" /> ";
// $lines .= $icon."<a href=\"".get_post_link($reply['pid'], $reply['tid'])."\">".$reply['subject']. "</a> (".$lang->asoi_by." ";
$lines .= $icon."<a href=\"".get_post_link($reply['pid']."#pid".$reply['pid'], $reply['tid'])."\">".$reply['subject']. "</a> (".$lang->asoi_by." ";
$lines .= build_profile_link(format_name($reply['username'], $reply['usergroup'], $reply['displaygroup']), $reply['uid']);
$lines .= " ".$lang->asoi_on." <em>".my_date($mybb->settings['dateformat'], $reply['dateline'])." ".my_date($mybb->settings['timeformat'], $reply['dateline'])."</em>)<br />\n";
$num++;
}
}
else
$lines = $lang->asoi_no_replies."<br />\n";
}
Sollte ich der Ansicht sein helfen zu können biete ich Hilfe(n) an! ...ich bitte jedoch nicht darum helfen zu dürfen!
Tools ◀ [Unixzeit ⇔ Realzeit] ♦ [BOM-Finder] ♦ [SQL-Prefix-Changer] ♦ [USV-Rechner] ♦ [PlugIns]
Tools ◀ [Unixzeit ⇔ Realzeit] ♦ [BOM-Finder] ♦ [SQL-Prefix-Changer] ♦ [USV-Rechner] ♦ [PlugIns]