Advanced search  

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

Pages: [1]   Go Down

Author Topic: [Solved]: {Sys_menu} and {Sub_menu} don't show up  (Read 3165 times)

0 Members and 1 Guest are viewing this topic.

IceQueen

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 24
[Solved]: {Sys_menu} and {Sub_menu} don't show up
« on: May 22, 2009, 08:30:37 pm »

I just created a template, but when I add the {Sys_menu} and {Sub_menu}, they don't show up in the gallery. They are shown as "{Sys_menu}" and "{Sub_menu}" literally. Here it is: http://lemmonicedesigns.net/coppermine/index.php?theme=clsummertheme

Hope someone can help me out!
« Last Edit: May 23, 2009, 05:14:34 pm by Joachim Müller »
Logged

Nibbler

  • Guest
Re: {Sys_menu} and {Sub_menu} don't show up
« Reply #1 on: May 22, 2009, 08:36:38 pm »

They need to appear before the {GALLERY} tag. Try rearranging your html.
Logged

IceQueen

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 24
Re: {Sys_menu} and {Sub_menu} don't show up
« Reply #2 on: May 22, 2009, 09:06:14 pm »

Thank you :D
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: {Sys_menu} and {Sub_menu} don't show up
« Reply #3 on: May 23, 2009, 05:14:18 pm »

Or try coming up with a "left-handed" theme: if the tokens for the menus must come after the {GALLERY}-token, they need to be defined withion the pagefooter function instead of the pageheader function. This is the case for example in the Chaoticsould theme - preview it here, download it here. Take a look how the menu is called there. Take particular notice of the file theme.php - this is the relevant code:
Code: [Select]
// Function for writing a pagefooter

function pagefooter()

{

    //global $HTTP_GET_VARS, $HTTP_POST_VARS, $HTTP_SERVER_VARS;

    global $USER, $USER_DATA, $ALBUM_SET, $CONFIG, $time_start, $query_stats, $queries;;

    global $template_footer;



    $custom_footer = cpg_get_custom_include($CONFIG['custom_footer_path']);



    if ($CONFIG['debug_mode']==1 || ($CONFIG['debug_mode']==2 && GALLERY_ADMIN_MODE)) {

    cpg_debug_output();

    }



    $template_vars = array(

        '{SYS_MENU}' => theme_main_menu('sys_menu'),

        '{SUB_MENU}' => theme_main_menu('sub_menu'),

        '{ADMIN_MENU}' => theme_admin_mode_menu(),

        '{CUSTOM_FOOTER}' => $custom_footer,

        '{VANITY}' => (defined('THEME_IS_XHTML10_TRANSITIONAL') && $CONFIG['vanity_block']) ? theme_vanity() : '',

    );



    echo template_eval($template_footer, $template_vars);

}
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 15 queries.