coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: jessicac on October 06, 2006, 06:21:00 AM

Title: CPG template issue with SMF bridge
Post by: jessicac on October 06, 2006, 06:21:00 AM
After integrating CPG with SMF, CPG works fine for admin but for everyone else get following error:


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

                        <table border="0" cellpadding="0" cellspacing="0">
                                <tr>
<!-- BEGIN my_gallery
                                        <td><a href="{MY_GAL_TGT}" title="{MY_GAL_TITLE}"><img src="themes/smf/images/gallery.gif" alt="{MY_GAL_LNK}" style="margin: 2px 0; padding: 2px;" border="0" width="76" height="16" /></a></td>
-->
<!-- END my_gallery -->
<!-- BEGIN allow_memberlist -->
                                        <td><a href="{MEMBERLIST_TGT}" title="{MEMBERLIST_TITLE}"><img src="themes/smf/images/memberlist.gif" alt="{MEMBERLIST_LNK}" style="margin: 2px 0; padding: 2px;" border="0" width="76" height="16" /></a></td>

<!-- END allow_memberlist -->
<!-- BEGIN my_profile -->
<!-- END my_profile -->
<!-- BEGIN faq -->
                                        <td><a href="{FAQ_TGT}" title="{FAQ_TITLE}"><img src="themes/smf/images/faq.gif" alt="{FAQ_LNK}" style="margin: 2px 0; padding: 2px;" border="0" width="76" height="16" /></a></td>

<!-- END faq -->

<!-- BEGIN leave_admin_mode
                                        <td><a href="{USR_MODE_TGT}" title="{USR_MODE_TITLE}"><img src="themes/smf/images/usermode.gif" alt="{USR_MODE_LNK}" style="margin: 2px 0; padding: 2px;" border="0" width="76" height="16" /></a></td>
-->
<!-- END leave_admin_mode -->
<!-- BEGIN upload_pic
                                        <td><a href="{UPL_PIC_TGT}" title="{UPL_PIC_TITLE}"><img src="themes/smf/images/submit.gif" alt="{UPL_PIC_LNK}" style="margin: 2px 0; padding: 2px;" border="0" width="76" height="16" /></a></td>
-->
<!-- END upload_pic -->
<!-- BEGIN register -->
<!-- END register -->

<!-- END login -->
<!-- BEGIN logout -->
<!-- END logout -->
                                </tr>
                        </table>


Coppermine install: http://forum.sadisticpleasures.org/gallery/
Forum install: http://forum.sadisticpleasures.org
Coppermine version: cpg1.4.9
Forum version: SMF 1.0.8
Test user account: test / z

MySQL 5
apache2.2

suggestions?
Title: Re: CPG template issue with SMF bridge
Post by: Sami on October 06, 2006, 07:52:08 AM
you have error on your custom theme
http://forum.coppermine-gallery.net/index.php?topic=26897.0

Moving to cpg1.4 themes/skins/templates ....
Title: Re: CPG template issue with SMF bridge
Post by: jessicac on October 06, 2006, 12:31:41 PM
Thankee! I'll read up on this right away! Thanks!