forum.coppermine-gallery.net

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: Khălsă on November 06, 2003, 03:06:11 pm

Title: MENU PROBLEMS
Post by: Khălsă on November 06, 2003, 03:06:11 pm
Hello,

First of all great gallery!!!!!  :D

I just upgraded from 1.1 to 1.2 and there seem to be a couple of problems, the main menu on top of the gallery doesn't seem to be working, it shows the following..

                                                                      {MAIN_MENU1}

{MAIN_MENU2}

And also, I can't change themes for some odd reason, when I try to change the current theme to something else, it stays the same (hardwire)..

You can view the site at http://www.247experthost.com/~sikhionl/index.php
Title: MENU PROBLEMS
Post by: Joachim Müller on November 06, 2003, 06:51:31 pm
Did you update your themes as well? There has been a slight difference between themes for 1.2.0 (compared to 1.1.x), so they're not compatible. Try the themes that come with the 1.2.0 package.

GauGau
Title: MENU PROBLEMS
Post by: Khălsă on November 07, 2003, 04:11:34 pm
Yes! I did put the 1.2 ver themes, but they still don't show up, also the {MENU} is a problem as well, because before upgrading my menu was working fine, but after it never worked..

Please HELP!!
 :cry:
Title: MENU PROBLEMS
Post by: DaMysterious on November 07, 2003, 04:39:43 pm
Quote from: "Khălsă"
Yes! I did put the 1.2 ver themes, but they still don't show up, also the {MENU} is a problem as well, because before upgrading my menu was working fine, but after it never worked..

Please HELP!!
 :cry:


Try {MAIN_MENU}.
Title: MENU PROBLEMS
Post by: Khălsă on November 08, 2003, 05:07:45 pm
{MAIN MENU} ???

That's the problem, lol. It doesn't show the menu, rather shows {MAIN MENU} instead!

http://www.247experthost.com/~sikhionl/index.php
Title: MENU PROBLEMS
Post by: Khălsă on November 10, 2003, 01:49:56 pm
Anyone???  :(

I think this is the conflicting code...from theme.php

// Template used for tabbed display
$template_tab_display = array('left_text' => '<td width="100%%" align="left" valign="middle" class="tableh1_compact" style="white-space: nowrap"><b>{LEFT_TEXT}</b></td>' . "\n",
    'tab_header' => '',
    'tab_trailer' => '',
    'active_tab' => '<td><img src="images/spacer.gif" width="1" height="1"></td>' . "\n" . '<td align="center" valign="middle" class="tableb_compact"><b>%d</b></td>',
    'inactive_tab' => '<td><img src="images/spacer.gif" width="1" height="1"></td>' . "\n" . '<td align="center" valign="middle" class="navmenu"><a href="{LINK}"<b>%d</b></a></td>' . "\n"
    );
function pageheader($section, $meta = '')
{
    global $CONFIG, $THEME_DIR;
    global $template_header, $lang_charset, $lang_text_dir;
    header('P3P: CP="CAO DSP COR CURa ADMa DEVa OUR IND PHY ONL UNI COM NAV INT DEM PRE"');
    user_save_profile();
    $template_vars = array('{LANG_DIR}' => $lang_text_dir,
        '{TITLE}' => $CONFIG['gallery_name'] . ' - ' . $section,
        '{CHARSET}' => $CONFIG['charset'] == 'language file' ? $lang_charset : $CONFIG['charset'],
        '{META}' => $meta,
        '{GAL_NAME}' => $CONFIG['gallery_name'],
        '{GAL_DESCRIPTION}' => $CONFIG['gallery_description'],
        '{MAIN_MENU1}' => theme_main_menu1(),
        '{MAIN_MENU2}' => theme_main_menu2(),
        '{ADMIN_MENU}' => theme_admin_mode_menu()
        );
    echo template_eval($template_header, $template_vars);
}
Title: MENU PROBLEMS
Post by: Joachim Müller on November 10, 2003, 02:34:16 pm
you are using a custom theme (which looks fairly OK, seems to be based on "hardwired"). Like it was mentioned before: you'll have to either use one of the themes that come with cpg1.2.0 or adjust your theme to reflect the changes in the theme structure. Use a difference viewer like WinMerge (http://winmerge.sourceforge.net/) to see what has changed from 1.1.x to 1.2.0 by comparing the 1.1.x hardwired theme to the 1.2.0 hardwired theme and apply the changes to your custom theme.

GauGau