coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: gazzat5 on March 26, 2007, 10:24:15 PM

Title: Template error displaying pics without titles
Post by: gazzat5 on March 26, 2007, 10:24:15 PM
Having uploaded pictures without titles in 1.4.10, I've found you cannot view them in 'normal' size.
Heres the error from my gallery: http://www.blue-world.co.uk/wcephotos/displayimage.php?album=5&pos=12 (http://www.blue-world.co.uk/wcephotos/displayimage.php?album=5&pos=12)
Template error
Failed to find block 'img_desc'(#(<!-- BEGIN img_desc -->)(.*?)(<!-- END img_desc -->)#s) in :

        <tr>
                <td align="center" class="display_media" nowrap="nowrap">
<table cellspacing="1" cellpadding="0" class="imageborder">
<tr>
<td align="center">
{IMAGE}
</td>
</tr>
                    </table>
                </td>
        </tr>
        <tr><td>
<table class="tableb" cellpadding="0" cellspacing="2" width="100%">
<tr>
<td align="center">
{ADMIN_MENU}
</td>
</tr>
                </table>

<!-- BEGIN img_descrip -->
                        <table cellpadding="0" cellspacing="0" class="tableb" width="100%">
<!-- BEGIN title -->
                                <tr>
<TD COLSPAN=6 ALIGN=CENTER class="tableb"><b>
{TITLE}
</b></td>
                                </tr>
<!-- END title -->
<!-- BEGIN caption -->
                                <tr>
<TD COLSPAN=6 ALIGN=CENTER class="tableb">
{CAPTION}
</td>
                                </tr>
<!-- END caption -->
                        <!--</table> -->
<!-- END img_desc -->
                </td>
        </tr>


Note, I have modified the theme template, but not the defaults, but i'm pretty sure that is not the problem.
I did think about adding validation to the upload.php so you can't use a blank title, which I may take as an intermediate measure, but I would prefer to have the option of leaving the title blank.

Many thanks
Title: Re: Template error displaying pics without titles
Post by: gazzat5 on March 26, 2007, 11:55:04 PM
The problem also occurs when trying to view a slideshow.
Title: Re: Template error displaying pics without titles
Post by: Nibbler on March 27, 2007, 01:02:06 AM
Post your modifications to classic/theme.php

Quote<!-- BEGIN img_descrip -->

That should be

<!-- BEGIN img_desc -->