Gizmo,
I figured it out with the help of Mark Graf, the photographer, who created that awesome Coppermine Mod above. I am relatively new to Coppermine and have really contributed before. So I am not quite sure how to offer this capability to the community.
I do think it is something that could eventually be incorporated into CPG as a configurable option. I figured out how to apply different custom frames after only setting one variable in theme.php. This could also be done from a config parameter.
Anyway I will just include the code changes I made to the theme.php file and style.css for now.
// First the framing variable
$frame_type = 'grey';
// HTML template for intermediate image display
$template_display_media = <<<EOT
<tr>
<td align="center" class="display_media" nowrap="nowrap">
<table cellspacing="0" cellpadding="0" class="imageborder">
<tr>
<td><img src="./themes/derek/images/frame/{$frame_type}/UL_slice.gif" ></td>
<td background="./themes/derek/images/frame/{$frame_type}/Top_slice.gif"></td>
<td><img src="./themes/derek/images/frame/{$frame_type}/UR_slice.gif" ></td>
</tr>
<tr>
<td background="./themes/derek/images/frame/{$frame_type}/LS_slice.gif"></td>
<td>
{IMAGE}
</td>
<td background="./themes/derek/images/frame/{$frame_type}/RS_slice.gif"></td>
</tr>
<tr>
<td><img src="./themes/derek/images/frame/{$frame_type}/LL_slice.gif"></td>
<td background="./themes/derek/images/frame/{$frame_type}/Bottom_slice.gif"></td>
<td><img src="./themes/derek/images/frame/{$frame_type}/LR_slice.gif"></td>
</tr>
</table>
</td>
</tr>
Here is the change to the style.css:
.imageborder {
border: 0px solid #aaaaaa;
background-color: #FFFFFF;
margin-top: 20px;
margin-bottom: 20px;
margin-right: 2px;
margin-left: 2px;
}
Now to change frames just place the frame slices in an image/frame directory under a unqiue sub directory name (ie - grey).
Then to swith frames just change the $frame_type variable to the name of new the frame's directory.
Here is just *one* sample of my first attempt at creating a frame in PS and then adding it to CPG:
http://www.lightquestphoto.com/coppermine/displayimage.php?album=1&pos=28&theme=derekThe options are almost limitless with this structure in place. Basically any frame you can think of and create in PS, you can slice up and place around your image here. I have tested it both in IE and FF.
I am still working on the right frame/background color mix so don't let that throw you off! This was the first custom PS frame I have made. There are PS actions out there for creating frames as well. Any PS gurus out there who are good at creating frames???
We could potentially put together a frame pack if others want to contribute their own frames as well. Gallery2 has a frame pack for certain themes. Exhibit Engine offers frames as well.
- Derek