Template error displaying pics without titles Template error displaying pics without titles
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Template error displaying pics without titles

Started by gazzat5, March 26, 2007, 10:24:15 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

gazzat5

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
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

gazzat5

The problem also occurs when trying to view a slideshow.

Nibbler

Post your modifications to classic/theme.php

Quote<!-- BEGIN img_descrip -->

That should be

<!-- BEGIN img_desc -->