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: MENU PROBLEMS  (Read 4128 times)

0 Members and 1 Guest are viewing this topic.

Khălsă

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
MENU PROBLEMS
« 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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
MENU PROBLEMS
« Reply #1 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
Logged

Khălsă

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
MENU PROBLEMS
« Reply #2 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:
Logged

DaMysterious

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 404
  • My CPG Recources
    • My CPG Recources
MENU PROBLEMS
« Reply #3 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}.
Logged
DaMysterious.

Khălsă

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
MENU PROBLEMS
« Reply #4 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
Logged

Khălsă

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
MENU PROBLEMS
« Reply #5 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);
}
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
MENU PROBLEMS
« Reply #6 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 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
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 18 queries.