coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: itisonlyatest on March 25, 2006, 04:40:09 AM

Title: Template Error: Failed to find block 'ecard_button'(#(<!-- BEGIN ecard_button --
Post by: itisonlyatest on March 25, 2006, 04:40:09 AM
After editing my template, I get this:
Template error
Failed to find block 'ecard_button'(#(<!-- BEGIN ecard_button -->)(.*?)(<!-- END ecard_button -->)#s) in :

        <tr width="100%">
                <td align="center" valign="middle" class="navmenu" style="width:48;cursor:hand" onmouseover="this.style.backgroundColor='C8C8C8';"onmouseout="this.style.backgroundColor='A6A6A6';">
                        <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" style="width:48;cursor:hand" onmouseover="this.style.backgroundColor='C8C8C8';"onmouseout="this.style.backgroundColor='A6A6A6';">
                        <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" style="width:48;cursor:hand" onmouseover="this.style.backgroundColor='C8C8C8';"onmouseout="this.style.backgroundColor='A6A6A6';">
                        <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">
                        {PIC_POS}
                </td>
                <td align="center" valign="middle" class="navmenu" style="width:48;cursor:hand" onmouseover="this.style.backgroundColor='C8C8C8';"onmouseout="this.style.backgroundColor='A6A6A6';">
                        <a href="{ECARD_TGT}" title="{ECARD_TITLE}"><img src="images/ecard.gif" width="16" height="16" border="0" align="absmiddle" alt="{ECARD_TITLE}"></a>
                </td>
                <td align="center" valign="middle" class="navmenu" style="width:48;cursor:hand" onmouseover="this.style.backgroundColor='C8C8C8';"onmouseout="this.style.backgroundColor='A6A6A6';">
                        <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" style="width:48;cursor:hand" onmouseover="this.style.backgroundColor='C8C8C8';"onmouseout="this.style.backgroundColor='A6A6A6';">
                        <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>
                </td>
        </tr>


Whenever I try and view an image. The rest of the site works except that.

Can anyone please help? Thanks!
Title: Re: Template Error: Failed to find block 'ecard_button'(#(<!-- BEGIN ecard_button --
Post by: itisonlyatest on March 25, 2006, 04:46:42 AM
I followed the instructions from another thread, and copied my /themes/classic/theme.php file to my customized theme directory, and everything works fine, except now it just says:
{MAIN_MENU}

where the menu used to be.

The site is:
http://drake.fan-source.com/gallery/

If anyone could help it would be greatly appreciated!
Title: Re: Template Error: Failed to find block 'ecard_button'(#(<!-- BEGIN ecard_button --
Post by: itisonlyatest on March 25, 2006, 04:53:27 AM
Nevermind, I removed the classic theme.php file because it was deleted the custom greeting message and everything.

If anyone could take a look at my edited custom theme.php located at:
http://drake.fan-source.com/gallery/themes/sapprckt/theme.php

and tell me what my error is, I would greatly appreciate it.

Thanks so much,
Chris.
Title: Re: Template Error: Failed to find block 'ecard_button'(#(<!-- BEGIN ecard_butto
Post by: Stramm on March 25, 2006, 08:44:00 AM
http://forum.coppermine-gallery.net/index.php?action=search    -> BEGIN ecard_button
Title: Re: Template Error: Failed to find block 'ecard_button'(#(<!-- BEGIN ecard_butto
Post by: Joachim Müller on March 25, 2006, 07:56:08 PM
results in http://forum.coppermine-gallery.net/index.php?action=search2;search=BEGIN%20ecard_button
Title: Re: Template Error: Failed to find block 'ecard_button'(#(<!-- BEGIN ecard_button --
Post by: itisonlyatest on March 25, 2006, 08:44:40 PM
Fixed that, now I get this:
Template error
Failed to find block 'report_file_button'(#(<!-- BEGIN report_file_button -->)(.*?)(<!-- END report_file_button -->)#s) in :

        <tr width="100%">
                <td align="center" valign="middle" class="navmenu" style="width:48;cursor:hand" onmouseover="this.style.backgroundColor='C8C8C8';"onmouseout="this.style.backgroundColor='A6A6A6';">
                        <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" style="width:48;cursor:hand" onmouseover="this.style.backgroundColor='C8C8C8';"onmouseout="this.style.backgroundColor='A6A6A6';">
                        <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" style="width:48;cursor:hand" onmouseover="this.style.backgroundColor='C8C8C8';"onmouseout="this.style.backgroundColor='A6A6A6';">
                        <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">
                        {PIC_POS}
                </td>

                <td align="center" valign="middle" class="navmenu" style="width:48;cursor:hand" onmouseover="this.style.backgroundColor='C8C8C8';"onmouseout="this.style.backgroundColor='A6A6A6';">
                        <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" style="width:48;cursor:hand" onmouseover="this.style.backgroundColor='C8C8C8';"onmouseout="this.style.backgroundColor='A6A6A6';">
                        <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>
                </td>
        </tr>
Title: Re: Template Error: Failed to find block 'ecard_button'(#(<!-- BEGIN ecard_butto
Post by: Joachim Müller on March 25, 2006, 09:07:57 PM
you've already been told what to do: search for the error message you get.
Title: Re: Template Error: Failed to find block 'ecard_button'(#(<!-- BEGIN ecard_button --
Post by: itisonlyatest on March 25, 2006, 09:53:19 PM
I searched and fixed it, thanks!