query(" SELECT ca.ArtistID, ag.Name, aw.Image, ca.UserID 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 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(); $ArtistTable = ''; $NumGroups = count($Artists); $NumGroupsByUser = 0; $UserAdditions = array(); foreach ($Artists as $Artist) { $UserID = $Artist['UserID']; if ($UserID == $LoggedUser['ID']) { $NumGroupsByUser++; } if (!isset($UserAdditions[$UserID])) { $UserAdditions[$UserID] = 0; } $UserAdditions[$UserID]++; 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