MENU PROBLEMS MENU PROBLEMS
 

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]

Main Menu

MENU PROBLEMS

Started by Khãlsã, November 06, 2003, 03:06:11 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Khãlsã

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

Joachim Müller

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

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:

DaMysterious

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}.
DaMysterious.

Khãlsã

{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

Khãlsã

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);
}

Joachim Müller

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