Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Template error displaying pics without titles  (Read 3116 times)

0 Members and 1 Guest are viewing this topic.

gazzat5

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Template error displaying pics without titles
« 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
Code: [Select]
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
Logged

gazzat5

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Template error displaying pics without titles
« Reply #1 on: March 26, 2007, 11:55:04 pm »

The problem also occurs when trying to view a slideshow.
Logged

Nibbler

  • Guest
Re: Template error displaying pics without titles
« Reply #2 on: March 27, 2007, 01:02:06 am »

Post your modifications to classic/theme.php

Quote
<!-- BEGIN img_descrip -->

That should be

Code: [Select]
<!-- BEGIN img_desc -->
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 14 queries.