coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: tattoopoetry on June 23, 2008, 10:14:47 PM

Title: Error Message, I get this message when viewing my gallery after editing my theme
Post by: tattoopoetry on June 23, 2008, 10:14:47 PM
Suggestions? I am not super good with this kind of stuff, still learning. How do I fix the following error message that pops up when you click a thumbnail in the image gallery?

www.tattoopoetry.net/gallery


Template error
Failed to find block 'ecard_button'(#(<!-- BEGIN ecard_button -->)(.*?)(<!-- END ecard_button -->)#s) in :

        <tr>
                <td align="center" valign="middle" class="navmenu" width="48">
                        <a href="{THUMB_TGT}" class="navmenu_pic" title="{THUMB_TITLE}"><img src="images/folder.gif" width="16" height="16" align="absmiddle" border="0" alt="{THUMB_TITLE}" /></a>
                </td>
                <td align="center" valign="middle" class="navmenu" width="48">
                        <a href="javascript:;" onClick="blocking('picinfo','yes', 'block'); return false;" title="{PIC_INFO_TITLE}"><img src="images/info.gif" width="16" height="16" border="0" align="absmiddle" alt="{PIC_INFO_TITLE}" /></a>
                </td>
                <td align="center" valign="middle" class="navmenu" width="48">
                        <a href="{SLIDESHOW_TGT}" title="{SLIDESHOW_TITLE}"><img src="images/slideshow.gif" width="16" height="16" border="0" align="absmiddle" alt="{SLIDESHOW_TITLE}" /></a>
                </td>
                <td align="center" valign="middle" class="navmenu" witdh="100%">
                        {PIC_POS}
                </td>
                 <td align="center" valign="middle" class="navmenu" width="48">
                        <a href="{ECARD_TGT}" class="navmenu_pic" title="{ECARD_TITLE}"><img src="{LOCATION}images/ecard.gif"  border="0" align="middle" alt="{ECARD_TITLE}" /></a>
                </td>
                <td align="center" valign="middle" class="navmenu" width="48">
                        <a href="{PREV_TGT}" class="navmenu_pic" title="{PREV_TITLE}"><img src="images/prev.gif" width="16" height="16" border="0" align="absmiddle" alt="{PREV_TITLE}" /></a>
                </td>
                <td align="center" valign="middle" class="navmenu" width="48">
                        <a href="{NEXT_TGT}" class="navmenu_pic" title="{NEXT_TITLE}"><img src="images/next.gif" width="16" height="16" border="0" align="absmiddle" alt="{NEXT_TITLE}" /></a>
             
Title: Re: Error Message, I get this message when viewing my gallery after editing my t
Post by: steveeh131047 on June 23, 2008, 10:21:52 PM
Lot's of useful background on this type of error here:
http://forum.coppermine-gallery.net/index.php/topic,26897.0.html
Title: Re: Error Message, I get this message when viewing my gallery after editing my t
Post by: steveeh131047 on June 23, 2008, 10:51:55 PM
tattoopoetry,

Read carefully Paver's first posting in the thread link I gave earlier.

The block that's causing your problem is in the definition of the $template_img_navbar variable. I'm guessing you must have copied this bit of code from themes/sample/theme.php into your modified subsilver theme. It looks like you've somehow lost this block relating to ecard_button:

<!-- BEGIN ecard_button -->
                <td align="center" valign="middle" class="navmenu" width="48">
                        <a href="{ECARD_TGT}" class="navmenu_pic" title="{ECARD_TITLE}"><img src="{LOCATION}images/ecard.gif"  border="0" align="middle" alt="{ECARD_TITLE}" /></a>
                </td>
<!-- END ecard_button -->
Title: Re: Error Message, I get this message when viewing my gallery after editing my t
Post by: steveeh131047 on June 23, 2008, 11:00:36 PM
tatoopoetry,

Apologies for the multiple postings, but if you deleted the ecard_button block because you don't want the Ecard function, turn off that facility through Admin>Groups>Permissions.

Cheers,
Steve