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]: Move sys_menu, admin_menu and sub_menu to bottom  (Read 3531 times)

0 Members and 1 Guest are viewing this topic.

aik_putte

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
[Solved]: Move sys_menu, admin_menu and sub_menu to bottom
« on: September 11, 2008, 04:29:42 pm »

I´m sorry for this repost but I cant get it to work.
I want to move all the menus at the top to the bottom so the pictures moves to the top instead.
I use the theme Water_drop and this is my code in theme.php, with this code the html-page only writes out {SYS_MENU} and the others as html at the top, still.

Code: [Select]
// Function for writing a pageheader
function pageheader($section, $meta = '')
{
    global $CONFIG, $THEME_DIR;
    global $template_header, $lang_charset, $lang_text_dir;

    $custom_header = cpg_get_custom_include($CONFIG['custom_header_path']);

        $charset = ($CONFIG['charset'] == 'language file') ? $lang_charset : $CONFIG['charset'];

    header('P3P: CP="CAO DSP COR CURa ADMa DEVa OUR IND PHY ONL UNI COM NAV INT DEM PRE"');
        header("Content-Type: text/html; charset=$charset");
    user_save_profile();

    $template_vars = array('{LANG_DIR}' => $lang_text_dir,
        '{TITLE}' => $CONFIG['gallery_name'] . ' - ' . strip_tags(bb_decode($section)),
        '{CHARSET}' => $charset,
        '{META}' => $meta,
        '{GAL_NAME}' => $CONFIG['gallery_name'],
        '{GAL_DESCRIPTION}' => $CONFIG['gallery_description'],
        '{CUSTOM_HEADER}' => $custom_header,
        );

    echo template_eval($template_header, $template_vars);
}

// 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(
        '{CUSTOM_FOOTER}' => $custom_footer,
'{SYS_MENU}' => theme_main_menu('sys_menu'),
        '{SUB_MENU}' => theme_main_menu('sub_menu'),
        '{ADMIN_MENU}' => theme_admin_mode_menu(),
        '{VANITY}' => (defined('THEME_IS_XHTML10_TRANSITIONAL') && $CONFIG['vanity_block']) ? theme_vanity() : '',
    );

    echo template_eval($template_footer, $template_vars);
}
« Last Edit: September 11, 2008, 05:34:49 pm by Nibbler »
Logged

Nibbler

  • Guest
Re: Move sys_menu, admin_menu and sub_menu to bottom
« Reply #1 on: September 11, 2008, 04:39:55 pm »

Did you move the tags to the end of the page? Post a link to your gallery.
Logged

aik_putte

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Re: Move sys_menu, admin_menu and sub_menu to bottom
« Reply #2 on: September 11, 2008, 04:50:16 pm »

I´m not sure how you mean?
This is what the gallery looks like now: http://www.patrikhansson.se/gastbok2.html
Logged

Nibbler

  • Guest
Re: Move sys_menu, admin_menu and sub_menu to bottom
« Reply #3 on: September 11, 2008, 05:15:37 pm »

If you want {SYS_MENU} and {SUB_MENU} to be at the bottom of the page you need to move them to the bottom of the page in template.html. Also:

You should rename the theme when you modify it so you don't overwrite it when you update.
You have local paths in your page (eg. file:///D:/patrikhansson.se/bilder/bottom.jpg). They won't work for anyone but you.
Logged

aik_putte

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Re: Move sys_menu, admin_menu and sub_menu to bottom
« Reply #4 on: September 11, 2008, 05:29:31 pm »

Thank you, now it works!  ;D

I´m aware about the local paths, i´m just testing the gallery right now :)
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 19 queries.