Hi All and Happy New Year!
It's been a while since I've posted a new theme but with the holiday season winding down, I've found some free time to work on a new theme. This one is called ChaoticSoul by
Bryan Veloso. It's a nice dark theme to which I've added some cool features. This theme should be fully compatible with most of the major browsers (I tested it with FF (1.5x & 2.0), IE (6.x & 7.x) and Safari at various monitor resolutions) and the width will accommodate monitor sizes from 1024 on up without having to horizontal scroll.
I've overwritten some of the configuration settings by using variables in the theme.php file and added a new variable for retrieving the album description (see below for more!). The reason for this is to prevent the standard settings in the Configuration tables set by you from "breaking" the theme. These changes are:
// These parameters overide what the user inputs in the Configuration setup to prevent the theme from breaking.
$CONFIG['max_film_strip_items'] = 5; //overrides the number of thumbnails.
$CONFIG['thumbcols'] = 4; //overrides the number of columns for thumbnails.
$CONFIG['main_table_width'] = '100%'; //overrides the Width of the main table (pixels or %).
$CONFIG['picture_table_width'] = '100%'; //overrides the Width of the table for file display (pixels or %).
$CONFIG['album_list_cols'] = 2; // sets "Number of columns for the album list = 3"
$CONFIG['first_level'] = 0; //sets "Show first level album thumbnails in categories = no".
$album_desc = get_album_desc($_GET[album]);
I've added two features to this theme. One is an album description truncation function added to the theme.php file. When viewing the index or categories pages, albums with long descriptions can make the page look cluttered. This function will truncate the description to a set number of characters (default is 30) and add a set of padding characters (...) to the end to alert the visitor that there's more text. When you view the album, the full description is printed at the top of the page. To edit the number of characters in the truncated album description, find in 2 places in the theme.php file -
'{ALB_DESC}' => myTruncate($album['album_desc'], 30, " "), and change the number (30) to any length you desire. For this theme, I have it set to give a single line of text which provides a nice look to the theme. You can also change the padding characters (...) to any other set of characters by editing
function myTruncate($string, $limit, $break=".", $pad="...") in the theme.php file.
The other enhancement is the addition of a frame around the photo when viewing intermediate images. This was added from a post by dereksurfs -
http://forum.coppermine-gallery.net/index.php?topic=38873.0 and is very cool. Many thanks Derek for working this out and sharing!
Please enjoy this theme and all I ask is that you keep the credit line in the template.html to help support my efforts to develop and port themes for Coppermine.
Cheers,
Gizmo