Problem with own theme as standard Problem with own theme as standard
 

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

Problem with own theme as standard

Started by ruvenhalfpap, January 12, 2008, 01:35:56 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ruvenhalfpap

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 :)

François Keller

I have an error with your gallery
QuoteTemplate 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 --> 
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

ruvenhalfpap

Where and how do I have to fix this error?

ruvenhalfpap

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.

ruvenhalfpap

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.

François Keller

what did you mean with functions ? if they are menu items, have a look to the final_extract plugin
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

ruvenhalfpap

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?

just_some_guy

I think i had a similar error to this, make sure the link to my gallery is still there.
Tambien, Hablo Español      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

ruvenhalfpap

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.

François Keller

QuoteWhen 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
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

ruvenhalfpap

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.

François Keller

attach yout theme to your next post (all files)
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

ruvenhalfpap

I hope that these are all files ... thank you for your help.

Joachim Müller

Quote from: ruvenhalfpap on January 12, 2008, 02:54:48 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.

ruvenhalfpap

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".

Joachim Müller

Temporarily rename the cassic theme folder, then try again.

ruvenhalfpap

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.

Joachim Müller


ruvenhalfpap

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 :(

François Keller

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  :-\
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog