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
-
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"> <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"> <a href="{MEMBERLIST_TGT}" title="{MEMBERLIST_TITLE}">{MEMBERLIST_LNK}</a> <br>
<!-- END allow_memberlist -->
<!-- BEGIN faq -->
<img src="themes/smf/images/li.gif"> <a href="{FAQ_TGT}" title="{FAQ_TITLE}">{FAQ_LNK}</a> <br>
<!-- END faq -->
<!-- BEGIN upload_pic -->
<img src="themes/smf/images/li.gif"> <a href="{UPL_PIC_TGT}" title="{UPL_PIC_TITLE}">{UPL_PIC_LNK}</a> <br>
<!-- BEGIN register -->
<img src="themes/smf/images/li.gif"> <a href="{REGISTER_TGT}" title="{REGISTER_TITLE}">{REGISTER_LNK}</a> <br>
<!-- END register -->
<!-- BEGIN login -->
<img src="themes/smf/images/li.gif"> <a href="{LOGIN_TGT}">{LOGIN_LNK}</a><br>
<!-- END login -->
<img src="themes/smf/images/li.gif"> <a href="{LASTUP_TGT}">{LASTUP_LNK}</a> <br>
<img src="themes/smf/images/li.gif"> <a href="{LASTCOM_TGT}">{LASTCOM_LNK}</a> <br>
<img src="themes/smf/images/li.gif"> <a href="{TOPN_TGT}">{TOPN_LNK}</a> <br>
<img src="themes/smf/images/li.gif"> <a href="{TOPRATED_TGT}">{TOPRATED_LNK}</a> <br>
<img src="themes/smf/images/li.gif"> <a href="{FAV_TGT}">{FAV_LNK}</a> <br>
<img src="themes/smf/images/li.gif"> <a href="{SEARCH_TGT}">{SEARCH_LNK}</a><br>
</span>
Logged in works just fine. Custom theme.
-
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 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.
-
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
-
edit: found it, fixed. Thanks!
-
It would help others if you posted what you found and how you fixed it.
-
Actually, i started fresh copy of theme.php. Not totally sure what it was.