diff --git a/sections/collages/manage.php b/sections/collages/manage.php index 4469a6fe..cf9b4867 100644 --- a/sections/collages/manage.php +++ b/sections/collages/manage.php @@ -10,7 +10,8 @@ $DB->query("SELECT ct.GroupID, um.ID, um.Username, - ct.Sort + ct.Sort, + tg.CatalogueNumber FROM collages_torrents AS ct JOIN torrents_group AS tg ON tg.ID=ct.GroupID LEFT JOIN users_main AS um ON um.ID=ct.UserID @@ -64,6 +65,7 @@ Order # + Cat # Year Artist Torrent @@ -77,7 +79,7 @@ $Number = 0; foreach ($TorrentList as $GroupID=>$Group) { list($GroupID, $GroupName, $GroupYear, $GroupRecordLabel, $GroupCatalogueNumber, $TagList, $ReleaseType, $GroupVanityHouse, $Torrents, $GroupArtists, $ExtendedArtists) = array_values($Group); - list($GroupID2, $UserID, $Username, $Sort) = array_values($CollageDataList[$GroupID]); + list($GroupID2, $UserID, $Username, $Sort, $CatNum) = array_values($CollageDataList[$GroupID]); $Number++; @@ -101,6 +103,7 @@ + @@ -131,4 +134,4 @@ - \ No newline at end of file + diff --git a/sections/forums/quote_notify.php b/sections/forums/quote_notify.php index f38c2c3b..e8c8c938 100644 --- a/sections/forums/quote_notify.php +++ b/sections/forums/quote_notify.php @@ -19,11 +19,14 @@ //remove any dupes in the array $Usernames = array_unique($Usernames); -$DB->query("SELECT m.ID FROM users_main AS m - JOIN users_info AS i ON i.UserID = m.ID WHERE m.Username IN " . "('" . implode("', '", $Usernames) - . "') +$DB->query("SELECT m.ID, p.PushService + FROM users_main AS m + LEFT JOIN users_info AS i ON i.UserID = m.ID + LEFT JOIN users_push_notifications AS p ON p.UserID = m.ID + WHERE m.Username IN " . "('" . implode("', '", $Usernames) + . "') AND i.NotifyOnQuote = '1' AND i.UserID != $LoggedUser[ID]"); -while (list($UserID) = $DB->next_record()) { +while (list($UserID, $PushService) = $DB->next_record()) { $QuoterID = db_string($LoggedUser['ID']); $UserID = db_string($UserID); $ForumID = db_string($ForumID); @@ -32,12 +35,16 @@ $DB->query("INSERT IGNORE INTO users_notify_quoted (UserID, QuoterID, ForumID, TopicID, PostID, Date) VALUES ('$UserID', '$QuoterID', '$ForumID', '$TopicID', '$PostID', '" . sqltime() . "')"); $Cache->delete_value('forums_quotes_' . $UserID); + + } + /* * Validate the username and add it into the $Usernames array */ -function add_username($Str) { +function add_username($Str) +{ global $Usernames; $Matches = array(); if (preg_match('/\[quote=(.*)]/', $Str, $Matches)) { @@ -51,4 +58,5 @@ function add_username($Str) { } } } + ?> diff --git a/sections/index/private.php b/sections/index/private.php index da30710a..3727fa5b 100644 --- a/sections/index/private.php +++ b/sections/index/private.php @@ -359,7 +359,7 @@