Okay, I had overlooked the theme.php in the "rainy day" directory. But here is the problem now. The theme.php in the "sample" directory has this line of code in my rainy day theme.php?
if (isset($image_size['reduced'])) {
But my theme.php in my "rainy day" directory does not. My question is where should I insert the line of code
if (preg_match('/^youtube_(.*)\.jpg$/', $CURRENT_PIC_DATA['filename'], $ytmatches)){
$vid = $ytmatches[1];
$pic_html = '<object width="425" height="350"><param name="movie" value="
http://www.youtube.com/v/'. $vid . '"></param><param name="wmode" value="transparent"></param><embed src="
http://www.youtube.com/v/'. $vid . '" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object><br />';
} elseif (isset($image_size['reduced'])) {
Here is the entire code for my "rainy day" theme.php
Thanks
<?php
/*************************
Coppermine Photo Gallery
************************
Copyright (c) 2003-2006 Coppermine Dev Team
v1.1 originally written by Gregory DEMAR
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
********************************************
Coppermine version: 1.4.8
$Source$
$Revision: 3116 $
$Author: gaugau $
$Date: 2006-06-08 00:11:54 +0200 (Do, 08 Jun 2006) $
**********************************************/
// ------------------------------------------------------------------------- //
// This theme has had all redundant CORE items removed //
// ------------------------------------------------------------------------- //
define('THEME_HAS_RATING_GRAPHICS', 1);
define('THEME_IS_XHTML10_TRANSITIONAL',1);
define('THEME_HAS_NO_SUB_MENU_BUTTONS', 1);
// HTML template for sys_menu
$template_sys_menu = <<<EOT
<div class="topmenu">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
{BUTTONS}
</tr>
</table>
</div>
EOT;
// HTML template for template sys_menu buttons
$template_sys_menu_button = <<<EOT
<!-- BEGIN {BLOCK_ID} -->
<td><img src="images/spacer.gif" width="5" height="25" border="0" alt="" /></td>
<td><img src="themes/rainy_day/images/button1_r1_c1.gif" width="5" height="25" border="0" alt="" /></td>
<td style="background-image:url(themes/rainy_day/images/button1_r1_c2.gif)">
<a href="{HREF_TGT}" title="{HREF_TITLE}">{HREF_LNK}</a>
</td>
<td><img src="themes/rainy_day/images/button1_r1_c3.gif" width="5" height="25" border="0" alt="" /></td>
<!-- END {BLOCK_ID} -->
EOT;
// HTML template for sub menu
$template_sub_menu = <<<EOT
<div class="topmenu"><table border="0" cellpadding="0" cellspacing="0">
<tr>
<!-- BEGIN custom_link -->
<td><img name="spacer" src="images/spacer.gif" width="5" height="25" border="0" alt="" /></td>
<td><img name="buttonleft1" src="themes/rainy_day/images/button1_r1_c1.gif" width="7" height="25" border="0" alt="" /></td>
<td style="background: url(themes/rainy_day/images/button1_r1_c2.gif);">
<a href="{CUSTOM_LNK_TGT}" title="{CUSTOM_LNK_TITLE}">{CUSTOM_LNK_LNK}</a>
</td>
<td><img name="buttonright1" src="themes/rainy_day/images/button1_r1_c3.gif" width="7" height="25" border="0" alt="" /></td>
<td><img name="spacer" src="images/spacer.gif" width="5" height="25" border="0" alt="" /></td>
<td><img name="buttonleft1" src="themes/rainy_day/images/button1_r1_c1.gif" width="7" height="25" border="0" alt="" /></td>
<td style="background: url(themes/rainy_day/images/button1_r1_c2.gif);">
<a href="
http://www.ntsshow.com" title="{FAV_LNK}">{FAV_LNK}</a>
</td>
<td><img name="buttonright1" src="themes/rainy_day/images/button1_r1_c3.gif" width="7" height="25" border="0" alt="" /></td>
<td><img name="spacer" src="images/spacer.gif" width="5" height="25" border="0" alt="" /></td>
<td><img name="buttonleft1" src="themes/rainy_day/images/button1_r1_c1.gif" width="7" height="25" border="0" alt="" /></td>
<td style="background: url(themes/rainy_day/images/button1_r1_c2.gif);">
<a href="{SEARCH_TGT}" title="{SEARCH_LNK}">{SEARCH_LNK}</a>
</td>
<td><img name="buttonright1" src="themes/rainy_day/images/button1_r1_c3.gif" width="7" height="25" border="0" alt="" /></td>
<!-- END custom_link -->
<!-- BEGIN album_list -->
<td><img name="spacer" src="images/spacer.gif" width="5" height="25" border="0" alt="" /></td>
<td><img name="buttonleft1" src="themes/rainy_day/images/button1_r1_c1.gif" width="7" height="25" border="0" alt="" /></td>
<td style="background: url(themes/rainy_day/images/button1_r1_c2.gif);">
<a href="{ALB_LIST_TGT}" title="{ALB_LIST_TITLE}">{ALB_LIST_LNK}</a>
</td>
<td><img name="buttonright1" src="themes/rainy_day/images/button1_r1_c3.gif" width="7" height="25" border="0" alt="" /></td>
<!-- END album_list -->
<td><img name="spacer" src="images/spacer.gif" width="5" height="25" border="0" alt="" /></td>
<td><img name="buttonleft1" src="themes/rainy_day/images/button1_r1_c1.gif" width="7" height="25" border="0" alt="" /></td>
<td style="background: url(themes/rainy_day/images/button1_r1_c2.gif);">
<a href="{LASTUP_TGT}" title="{LASTUP_LNK}">{LASTUP_LNK}</a>
</td>
<td><img name="buttonright1" src="themes/rainy_day/images/button1_r1_c3.gif" width="7" height="25" border="0" alt="" /></td>
<td><img name="spacer" src="images/spacer.gif" width="5" height="25" border="0" alt="" /></td>
<td><img name="buttonleft1" src="themes/rainy_day/images/button1_r1_c1.gif" width="7" height="25" border="0" alt="" /></td>
<td style="background: url(themes/rainy_day/images/button1_r1_c2.gif);">
<a href="{LASTCOM_TGT}" title="{LASTCOM_LNK}">{LASTCOM_LNK}</a>
</td>
<td><img name="buttonright1" src="themes/rainy_day/images/button1_r1_c3.gif" width="7" height="25" border="0" alt="" /></td>
<td><img name="spacer" src="images/spacer.gif" width="5" height="25" border="0" alt="" /></td>
<td><img name="buttonleft1" src="themes/rainy_day/images/button1_r1_c1.gif" width="7" height="25" border="0" alt="" /></td>
<td style="background: url(themes/rainy_day/images/button1_r1_c2.gif);">
<a href="{TOPN_TGT}" title="{TOPN_LNK}">{TOPN_LNK}</a>
</td>
<td><img name="buttonright1" src="themes/rainy_day/images/button1_r1_c3.gif" width="7" height="25" border="0" alt="" /></td>
<td><img name="spacer" src="images/spacer.gif" width="5" height="25" border="0" alt="" /></td>
<td><img name="buttonleft1" src="themes/rainy_day/images/button1_r1_c1.gif" width="7" height="25" border="0" alt="" /></td>
<td style="background: url(themes/rainy_day/images/button1_r1_c2.gif);">
<a href="{TOPRATED_TGT}" title="{TOPRATED_LNK}">{TOPRATED_LNK}</a>
</td>
<td><img name="buttonright1" src="themes/rainy_day/images/button1_r1_c3.gif" width="7" height="25" border="0" alt="" /></td>
<td><img name="spacer" src="images/spacer.gif" width="5" height="25" border="0" alt="" /></td>
</tr>
</table></div>
EOT;
?>