Well, I got my CPG up and running how I want it for the most part, with only a few major cosmetic changes left (like listing the users in the "Users Gallery" in the same layout as the main category page instead of like thumbnails). But one of the things I searched for and kept seeing people say wasn't available was a way to add an icon to the "Users Gallery" category on the main index page.
Of course, there's always a way to do something. Maybe not dynamically or as gracefully as we would like, but it can be done. So here's what I did to add an icon to my users gallery:
Find the following three lines in index.php:
$cat_data[] = array($link, $ident . $subcat['description'], $album_count, $pic_count);
$cat_data[] = array($link, $subcat['description'], 'cat_thumb' => $user_thumb);
$cat_data[] = array($link, $subcat['description'], $album_count, $pic_count, 'cat_albums' => $cat_albums, 'cat_thumb' => $user_thumb);
Now, after the last value in each array, between the word and the closing parenthesis, add this:
, "cat_id" => $subcat['cid']
So your lines should now look like this (using the first line of code as an example):
$cat_data[] = array($link, $subcat['description'], 'cat_thumb' => $user_thumb, "cat_id" => $subcat['cid']);
Now, I'm assuming that the special "Users Galleries" category always has a category ID of "1" ... if by chance it doesn't, just replace the number "1" in the following bit of code with the correct category number. For the image, naturally replace it with a link to the thumbnail you want to be shown and with the appropriate width and height dimensions. Like I said, it's not pretty or elegant, but it gets the job done as far as having a thumbnail there.
In your "themes/THEMENAME/themes.php" file (and/or your "includes/themes.inc.php" file, depending on how you set up and manage themes), find this line. It will be within the "function theme_display_cat_list" function:
if (!isset($category['cat_thumb'])) { $category['cat_thumb'] = ''; }
Change that code to this, remembering to update the image source, width, and height in the <img src> tag to point to the picture you want as your thumbnail for the Users Galleries category (in the example below, I'm just using a thumb for a picture I'd already uploaded into one of my galleries):
if (!isset($category['cat_thumb'])) {
if ($category['cat_id'] == USER_GAL_CAT) {
$category['cat_thumb'] = '<a href="index.php?cat=' . USER_GAL_CAT . '"><img src="albums/userpics/10002/thumb_members_icon.jpg" class="image" width="50" height="50" border="0" alt="" /></a>';
} else {
$category['cat_thumb'] = '';
}
}
There you go. You now have a thumbnail for your Users Galleries section.
[Added code tags and corrected some minor issues - Nibbler]