[Solved]: {Sys_menu} and {Sub_menu} don't show up [Solved]: {Sys_menu} and {Sub_menu} don't show up
 

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

[Solved]: {Sys_menu} and {Sub_menu} don't show up

Started by IceQueen, May 22, 2009, 08:30:37 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

IceQueen

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!

Nibbler

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

IceQueen


Joachim Müller

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

}