coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: onyx on June 01, 2006, 12:09:48 AM

Title: Failed to find block 'ecard_button'
Post by: onyx on June 01, 2006, 12:09:48 AM
Hi, I have the Coppermine Gallery installed (1.4.6) at http://www.thedogtricks.com/gallery/ (http://www.thedogtricks.com/gallery/).

I have a huge problem,

If an anonymous user (not logged in) tries to look at my pictures in the gallery I receive this error:

QuoteTemplate 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}" 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" 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>
                </td>
        </tr>

But if I am logged in, I get no problem whatsoever.

Anybody can help?

Thank you.
JC
Title: Re: Failed to find block 'ecard_button'
Post by: Nibbler on June 01, 2006, 12:12:19 AM
You're probably using a 1.3 theme with a 1.4 gallery. You need to use a theme that was made for 1.4 or update your theme following the instructions in the docs.
Title: Re: Failed to find block 'ecard_button'
Post by: onyx on June 01, 2006, 12:38:50 AM
Hi,

Thanks for the reply.

I think I am using a 1.3 theme, I've tried to update it but I got completely lost when I was trying to update the theme.php, it seems like I have to re-write it all.

My question is this though, my theme works perfectly when I'm logged in, is there just something in the code I could change that would fix my problem for unlogged users?

Thanks,
JC
Title: Re: Failed to find block 'ecard_button'
Post by: onyx on June 01, 2006, 01:24:21 AM
I fixed it by modifing themes.inc.php

Thanks
Title: Re: Failed to find block 'ecard_button'
Post by: Joachim Müller on June 01, 2006, 06:41:05 AM
Undo your changes. You mustn't modify themes.inc.php! Zip your custom theme and attach it to your posting (using "additional options" when composing your message).