[FIXED]Theme error for guests [FIXED]Theme error for guests
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

[FIXED]Theme error for guests

Started by Owdy, March 09, 2005, 07:59:27 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Owdy

SMF integration. I dont allow guests upload images. If unlogged visitor views album, got this error:

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.

kegobeer

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.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Owdy

Quote from: 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.
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.

Joachim Müller

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


kegobeer

It would help others if you posted what you found and how you fixed it.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots