forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Themes/Skins/Templates => Topic started by: Owdy on March 09, 2005, 07:59:27 pm

Title: [FIXED]Theme error for guests
Post by: Owdy on March 09, 2005, 07:59:27 pm
SMF integration. I dont allow guests upload images. If unlogged visitor views album, got this error:

Code: [Select]
Template error
Failed to find block 'upload_pic'(#(<!-- BEGIN upload_pic -->)(.*?)(<!-- END upload_pic -->)#s) in :

                <span class="topmenu">
<!-- BEGIN album_list -->
                          <img src="themes/smf/images/li.gif">&nbsp;&nbsp;<a href="{ALB_LIST_TGT}" title="{ALB_LIST_TITLE}">{ALB_LIST_LNK}</a> <br>
<!-- END album_list -->

<!-- BEGIN allow_memberlist -->
                        <img src="themes/smf/images/li.gif">&nbsp;&nbsp;<a href="{MEMBERLIST_TGT}" title="{MEMBERLIST_TITLE}">{MEMBERLIST_LNK}</a> <br>
<!-- END allow_memberlist -->

<!-- BEGIN faq -->
                        <img src="themes/smf/images/li.gif">&nbsp;&nbsp;<a href="{FAQ_TGT}" title="{FAQ_TITLE}">{FAQ_LNK}</a> <br>
<!-- END faq -->


<!-- BEGIN upload_pic -->
                       <img src="themes/smf/images/li.gif">&nbsp;&nbsp;<a href="{UPL_PIC_TGT}" title="{UPL_PIC_TITLE}">{UPL_PIC_LNK}</a> <br>
<!-- BEGIN register -->
                      <img src="themes/smf/images/li.gif">&nbsp;&nbsp;<a href="{REGISTER_TGT}" title="{REGISTER_TITLE}">{REGISTER_LNK}</a> <br>
<!-- END register -->
<!-- BEGIN login -->
                      <img src="themes/smf/images/li.gif">&nbsp;&nbsp;<a href="{LOGIN_TGT}">{LOGIN_LNK}</a><br>
<!-- END login -->


                        <img src="themes/smf/images/li.gif">&nbsp;&nbsp;<a href="{LASTUP_TGT}">{LASTUP_LNK}</a> <br>
                        <img src="themes/smf/images/li.gif">&nbsp;&nbsp;<a href="{LASTCOM_TGT}">{LASTCOM_LNK}</a> <br>
                        <img src="themes/smf/images/li.gif">&nbsp;&nbsp;<a href="{TOPN_TGT}">{TOPN_LNK}</a> <br>
                        <img src="themes/smf/images/li.gif">&nbsp;&nbsp;<a href="{TOPRATED_TGT}">{TOPRATED_LNK}</a> <br>
                       <img src="themes/smf/images/li.gif">&nbsp;&nbsp;<a href="{FAV_TGT}">{FAV_LNK}</a> <br>
                        <img src="themes/smf/images/li.gif">&nbsp;&nbsp;<a href="{SEARCH_TGT}">{SEARCH_LNK}</a><br>
                </span>
Logged in works just fine. Custom theme.
Title: Re: Theme error for guests
Post by: kegobeer on March 10, 2005, 02:20:30 am
Do you get the same error when using the classic theme?  If not, then you have a problem with your theme.  Without more information that's all I can tell you.
Title: Re: Theme error for guests
Post by: Owdy on March 10, 2005, 05:12:40 am
Do you get the same error when using the classic theme? If not, then you have a problem with your theme. Without more information that's all I can tell you.
Classic theme works. Yes, it is theme issue but what? What info do you need? If i allow guests to upload, that error is gone.
Title: Re: Theme error for guests
Post by: Joachim Müller on March 10, 2005, 09:56:53 am
a link would be a good place to start with... Additionally, you could rename theme.php of your custom theme to theme.php.txt and attach it to your posting (using "Additional options" when composing your message).

Joachim
Title: Re: Theme error for guests
Post by: Owdy on March 10, 2005, 05:08:09 pm
­edit: found it, fixed. Thanks!
Title: Re: [FIXED]Theme error for guests
Post by: kegobeer on March 10, 2005, 09:53:14 pm
It would help others if you posted what you found and how you fixed it.
Title: Re: [FIXED]Theme error for guests
Post by: Owdy on March 11, 2005, 04:53:01 pm
Actually, i started fresh copy of theme.php. Not totally sure what it was.