Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: [FIXED]Theme error for guests  (Read 2870 times)

0 Members and 1 Guest are viewing this topic.

Owdy

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 46
    • My gallery
[FIXED]Theme error for guests
« 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.
« Last Edit: March 11, 2005, 06:32:31 pm by GauGau »
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Theme error for guests
« Reply #1 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.
Logged
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

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 46
    • My gallery
Re: Theme error for guests
« Reply #2 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.

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Re: Theme error for guests
« Reply #3 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
Logged

Owdy

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 46
    • My gallery
Re: Theme error for guests
« Reply #4 on: March 10, 2005, 05:08:09 pm »

­edit: found it, fixed. Thanks!
« Last Edit: March 10, 2005, 05:13:41 pm by Owdy »
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: [FIXED]Theme error for guests
« Reply #5 on: March 10, 2005, 09:53:14 pm »

It would help others if you posted what you found and how you fixed it.
Logged
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

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 46
    • My gallery
Re: [FIXED]Theme error for guests
« Reply #6 on: March 11, 2005, 04:53:01 pm »

Actually, i started fresh copy of theme.php. Not totally sure what it was.
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 19 queries.