mirror of
https://github.com/WhatCD/Gazelle.git
synced 2025-01-31 10:31:37 +00:00
parent
52828f71e0
commit
27d6ee7561
@ -70,9 +70,9 @@
|
|||||||
p.TopicID,
|
p.TopicID,
|
||||||
t.Title,
|
t.Title,
|
||||||
t.LastPostID,
|
t.LastPostID,
|
||||||
l.PostID AS LastRead,
|
|
||||||
t.IsLocked,
|
t.IsLocked,
|
||||||
t.IsSticky
|
t.IsSticky,
|
||||||
|
l.PostID AS LastRead
|
||||||
FROM forums_posts AS p
|
FROM forums_posts AS p
|
||||||
LEFT JOIN users_main AS um ON um.ID = p.AuthorID
|
LEFT JOIN users_main AS um ON um.ID = p.AuthorID
|
||||||
LEFT JOIN users_info AS ui ON ui.UserID = p.AuthorID
|
LEFT JOIN users_info AS ui ON ui.UserID = p.AuthorID
|
||||||
@ -104,14 +104,14 @@
|
|||||||
ed.Username,
|
ed.Username,
|
||||||
p.TopicID,
|
p.TopicID,
|
||||||
t.Title,
|
t.Title,
|
||||||
t.LastPostID,';
|
t.LastPostID,
|
||||||
|
t.IsLocked,
|
||||||
|
t.IsSticky,';
|
||||||
if ($UserID == $LoggedUser['ID']) {
|
if ($UserID == $LoggedUser['ID']) {
|
||||||
$sql .= '
|
$sql .= '
|
||||||
l.PostID AS LastRead,';
|
l.PostID AS LastRead';
|
||||||
}
|
}
|
||||||
$sql .= "
|
$sql .= "
|
||||||
t.IsLocked,
|
|
||||||
t.IsSticky
|
|
||||||
FROM forums_posts AS p
|
FROM forums_posts AS p
|
||||||
LEFT JOIN users_main AS um ON um.ID = p.AuthorID
|
LEFT JOIN users_main AS um ON um.ID = p.AuthorID
|
||||||
LEFT JOIN users_info AS ui ON ui.UserID = p.AuthorID
|
LEFT JOIN users_info AS ui ON ui.UserID = p.AuthorID
|
||||||
@ -213,7 +213,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<?
|
<?
|
||||||
$QueryID = $DB->get_query_id();
|
$QueryID = $DB->get_query_id();
|
||||||
while (list($PostID, $AddedTime, $Body, $EditedUserID, $EditedTime, $EditedUsername, $TopicID, $ThreadTitle, $LastPostID, $LastRead, $Locked, $Sticky) = $DB->next_record()) {
|
while (list($PostID, $AddedTime, $Body, $EditedUserID, $EditedTime, $EditedUsername, $TopicID, $ThreadTitle, $LastPostID, $Locked, $Sticky, $LastRead) = $DB->next_record()) {
|
||||||
?>
|
?>
|
||||||
<table class="forum_post vertical_margin<?=!Users::has_avatars_enabled() ? ' noavatar' : '' ?>" id="post<?=$PostID ?>">
|
<table class="forum_post vertical_margin<?=!Users::has_avatars_enabled() ? ' noavatar' : '' ?>" id="post<?=$PostID ?>">
|
||||||
<colgroup>
|
<colgroup>
|
||||||
|
Loading…
Reference in New Issue
Block a user