coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upgrading => Topic started by: mp2006 on February 15, 2006, 07:04:56 PM

Title: Failed to find block 'ecard_button' error once upgraded
Post by: mp2006 on February 15, 2006, 07:04:56 PM
Hello all. This is my first post. I've been using the CPG for a while now and just now ran across an issue (which I think is a mistake I made on my part, not CPG's).
I upgraded last night using my Fantastico system, then I re-uploaded my old style.css, modified images, theme.php, and template.html files since those were the ones I used in order to customize the look of my gallery.
Everything looks fine when you go to the gallery, but as soon as you click on a photo, it gives 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="themes/hardwired/images/back.gif" width="21" height="15" 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="themes/hardwired/images/info.gif" width="18" height="15" 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="themes/hardwired/images/slideshow.gif" width="21" height="15" 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="themes/hardwired/images/ecard.gif" width="21" height="15" 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="themes/hardwired/images/previmg.gif" width="18" height="15" 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="themes/hardwired/images/nextimg.gif" width="18" height="15" border="0" align="absmiddle" alt="{NEXT_TITLE}" /></a>
                </td>
        </tr>


I'm assuming that when I reuploaded either my old theme.php or template.html file, I accidentally wrote over some sort of newly added code in the upgraded version, so i'm trying to figure out which file exactly is this so I can do it over and fix it.
Thanks!
Title: Re: Failed to find block 'ecard_button' error once upgraded
Post by: Nibbler on February 15, 2006, 07:07:37 PM
You need to update your old theme, the theme system is all changed.

http://coppermine-gallery.net/demo/cpg14x/docs/theme/index.html
Title: Re: Failed to find block 'ecard_button' error once upgraded
Post by: mp2006 on February 15, 2006, 07:20:36 PM
ugh... so much to change! I liked it the way it was before... wish I hadn't even done the upgrade now  :-\
Title: Re: Failed to find block 'ecard_button' error once upgraded
Post by: mp2006 on February 15, 2006, 09:22:14 PM
Well I got everything changed except now I can't seem to place my neat logo at the top and whenever I log in, it logs me back out (and yes, i've checked my cookies and cahce and everything) *sigh*
Title: Re: Failed to find block 'ecard_button' error once upgraded
Post by: Joachim Müller on February 16, 2006, 09:11:18 AM
then post a link for a start, and zip up your custom theme and attach it to your reply