forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: ruvenhalfpap on January 12, 2008, 01:35:56 pm

Title: Problem with own theme as standard
Post by: ruvenhalfpap on January 12, 2008, 01:35:56 pm
Hello. I'm really amazed about your fine piece of gallery. But I have a small problem with my own created theme. Actually I have 2 themes installed, classic and my own one. I set my own one as standard but when I click in the drop down menu on "Standard-menu" the classic menu is activated and not my own one. Users never been to the gallery before also get the classic theme first and have to choose my own theme manually. What is wrong with my own theme?

My coppermine gallery is online http://www.miriam-pielhau.com/miri4ever_bildergalerie/index.php

Due to being a non-native English speaker my English may be sometimes confusing. In addition, do you need any other information?

Thank you in advance for your help :)
Title: Re: Problem with own theme as standard
Post by: François Keller on January 12, 2008, 02:21:12 pm
I have an error with your gallery
Quote
Template error
Failed to find block 'my_gallery'(#(<!-- BEGIN my_gallery -->)(.*?)(<!-- END my_gallery -->)#s) in :

            <!-- BEGIN home -->
        <a href="{HOME_TGT}" title="{HOME_TITLE}">{HOME_LNK}</a> ::
  <!-- END home -->  <!-- BEGIN allow_memberlist -->
        <a href="{MEMBERLIST_TGT}" title="{MEMBERLIST_TITLE}">{MEMBERLIST_LNK}</a> ::
  <!-- END allow_memberlist -->        <!-- BEGIN upload_pic -->
        <a href="{UPL_PIC_TGT}" title="{UPL_PIC_TITLE}">{UPL_PIC_LNK}</a> ::
  <!-- END upload_pic -->  <!-- BEGIN register -->
        <a href="{REGISTER_TGT}" title="{REGISTER_TITLE}">{REGISTER_LNK}</a> ::
  <!-- END register -->  <!-- BEGIN faq -->
        <a href="{FAQ_TGT}" title="{FAQ_TITLE}">{FAQ_LNK}</a> ::
  <!-- END faq -->  <!-- BEGIN login -->
        <a href="{LOGIN_TGT}" title="{LOGIN_TITLE}">{LOGIN_LNK}</a>
  <!-- END login --> 
Title: Re: Problem with own theme as standard
Post by: ruvenhalfpap on January 12, 2008, 02:45:14 pm
Where and how do I have to fix this error?
Title: Re: Problem with own theme as standard
Post by: ruvenhalfpap on January 12, 2008, 02:54:48 pm
Hm ... wait a moment. How can I change my post generally?

As a reply to your posted error code. I outcommended some functions in the sys_menu (file: include/themes.inc.php) e.g "My gallery". But the problem with the standard theme was the same before.
Title: Re: Problem with own theme as standard
Post by: ruvenhalfpap on January 12, 2008, 03:59:41 pm
Okay ... I didn't see the error due to being admin but when visiting the site via IE 7 (not logged in) the same error code was given out. Now, this problem is fixed. I just wanted to delete some functions in the 2 menus on top of the page.
Title: Re: Problem with own theme as standard
Post by: François Keller on January 12, 2008, 05:35:10 pm
what did you mean with functions ? if they are menu items, have a look to the final_extract plugin
Title: Re: Problem with own theme as standard
Post by: ruvenhalfpap on January 12, 2008, 06:04:39 pm
Yes, I talked about the menu items. I uploaded this plugin "Final-extract" but did not tested it yet due to having the problem with my own theme. For me this is more important ... do you have any idea or do you still have a error when showing the site?
Title: Re: Problem with own theme as standard
Post by: just_some_guy on January 12, 2008, 06:10:48 pm
I think i had a similar error to this, make sure the link to my gallery is still there.
Title: Re: Problem with own theme as standard
Post by: ruvenhalfpap on January 12, 2008, 06:15:20 pm
The "My Gallery" problem is fixed. I undid the changes I made and the above mentioned link should show a working gallery.

My premier problem is that my own theme is not accepted as standard theme. When I choose the standard theme, the classic theme is activated.
Title: Re: Problem with own theme as standard
Post by: François Keller on January 12, 2008, 06:17:53 pm
Quote
When I choose the standard theme, the classic theme is activated.
Clear your cookies and check the config to verify that your custom theme is set to default
Title: Re: Problem with own theme as standard
Post by: ruvenhalfpap on January 12, 2008, 06:22:13 pm
I did, several times. And it does not work. Also when being admin and when clicking on my standard theme, the classic theme is activated. I also know from other users that the classic theme is activated as standard. Also when I actived my own theme as standard. I don't know what to do.
Title: Re: Problem with own theme as standard
Post by: François Keller on January 12, 2008, 07:01:04 pm
attach yout theme to your next post (all files)
Title: Re: Problem with own theme as standard
Post by: ruvenhalfpap on January 12, 2008, 07:32:53 pm
I hope that these are all files ... thank you for your help.
Title: Re: Problem with own theme as standard
Post by: Joachim Müller on January 13, 2008, 01:31:21 pm
I outcommended some functions in the sys_menu (file: include/themes.inc.php)
Never edit the file include/themes.inc.php - under no circumstances. Undo your changes there!
Access your config page with your custom theme specified as URL parameter (like this: http://www.miriam-pielhau.com/miri4ever_bildergalerie/admin.php?theme=miri), then specify your custom theme as default theme.
Title: Re: Problem with own theme as standard
Post by: ruvenhalfpap on January 13, 2008, 01:52:03 pm
I undid the changes due to knowing now not to change it like you say, after solving the theme problem I will try the above mentioned plugin.

More important, I tried the way you described to save my custom theme as standard. And it is the same as before :( My standard theme stays "classic".
Title: Re: Problem with own theme as standard
Post by: Joachim Müller on January 13, 2008, 01:54:35 pm
Temporarily rename the cassic theme folder, then try again.
Title: Re: Problem with own theme as standard
Post by: ruvenhalfpap on January 13, 2008, 02:04:18 pm
When trying this and using the IE7 to go to the site it stays blank.

When using Firefox as Admin, following error code is given out:
Fatal error: main() [function.require]: Failed opening required 'themes/classic/theme.php' (include_path='.:/usr/share/php:..') in /www/htdocs/xxxxxxx/miri4ever_bildergalerie/include/init.inc.php on line 297

For me it sounds like that it is still trying to use the classic theme.
Title: Re: Problem with own theme as standard
Post by: Joachim Müller on January 13, 2008, 02:11:05 pm
Yes, it does. Try going to http://www.miriam-pielhau.com/miri4ever_bildergalerie/admin.php?theme=miri and then saving your changes there.
Title: Re: Problem with own theme as standard
Post by: ruvenhalfpap on January 13, 2008, 02:13:54 pm
It is still the same problem ... a star shows me that my custom theme should be standard ... but when clicking on "Standard-Theme" or when visiting the site for the first time (no cookies and so on) the classic theme is shown :(
Title: Re: Problem with own theme as standard
Post by: François Keller on January 13, 2008, 03:54:39 pm
I'm trying on my local test install with your files and have the same problem but i don't find where is the problem  :-\
Title: Re: Problem with own theme as standard
Post by: ruvenhalfpap on January 13, 2008, 05:01:55 pm
Good to know and thank you for testing. I now installed all the standard themes delivered with the usual CPG download. And there is no problem when setting any other theme to standard. So it has to be a problem just of the theme and not of the complete gallery. Perhaps I should start at the complete beginning and rebuild my theme with all your help in this forum (FAQ, How to make a theme ...).

Huh ... wait. Now - with all the other themes installed - also my custom theme can be selected as standard theme AND it STAYS the standard theme as far as I tested it now ... ??? I am confused.
Title: Re: Problem with own theme as standard
Post by: François Keller on January 13, 2008, 06:29:20 pm
after lot of trying, it work's to for me (but i don't know what was the problem)
marking the thread as solved