query(" SELECT ca.ArtistID, ag.Name, aw.Image, um.ID AS UserID, um.Username FROM collages_artists AS ca JOIN artists_group AS ag ON ag.ArtistID=ca.ArtistID LEFT JOIN wiki_artists AS aw ON aw.RevisionID = ag.RevisionID LEFT JOIN users_main AS um ON um.ID=ca.UserID WHERE ca.CollageID='$CollageID' ORDER BY ca.Sort"); $Artists = $DB->to_array('ArtistID', MYSQLI_ASSOC); // Loop through the result set, building up $Collage and $TorrentTable // Then we print them. $Collage = array(); $TorrentTable = ''; $NumArtists = 0; $NumArtistsByUser = 0; $Users = array(); foreach ($Artists as $Artist) { $UserID = $Artist['UserID']; $Username = $Artist['Username']; $NumArtists++; if ($UserID == $LoggedUser['ID']) { $NumArtistsByUser++; } if ($Username) { if (!isset($Users[$UserID])) { $Users[$UserID] = array('name' => $Username, 'count' => 1); } else { $Users[$UserID]['count']++; } } ob_start(); ?>
  • <?=$Artist['Name']?>
  • 0 && $NumGroups >= $MaxGroups) || ($MaxGroupsPerUser > 0 && $NumGroupsByUser >= $MaxGroupsPerUser))) { $PreventAdditions = true; } // Silly hack for people who are on the old setting $CollageCovers = (isset($LoggedUser['CollageCovers']) ? $LoggedUser['CollageCovers'] : 25 * (abs($LoggedUser['HideCollage'] - 1))); $CollagePages = array(); // Pad it out if ($NumGroups > $CollageCovers) { for ($i = $NumGroups + 1; $i <= ceil($NumGroups / $CollageCovers) * $CollageCovers; $i++) { $Collage[] = '
  • '; } } for ($i = 0; $i < $NumGroups / $CollageCovers; $i++) { $Groups = array_slice($Collage, $i * $CollageCovers, $CollageCovers); $CollagePage = ''; foreach ($Groups as $Group) { $CollagePage .= $Group; } $CollagePages[] = $CollagePage; } View::show_header($Name,'browse,collage,bbcode,voting,recommend'); ?>

    Cover art
    $CollageCovers) { ?>
    Artists
    cache_value('collage_'.$CollageID, array(array($Name, $Description, array(), array(), $CommentList, $Deleted, $CollageCategoryID, $CreatorID, $Locked, $MaxGroups, $MaxGroupsPerUser, $Updated, $Subscribers)), 3600); ?>