The '{ADMIN_MENU}' code displays on my page The '{ADMIN_MENU}' code displays on my page
 

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

The '{ADMIN_MENU}' code displays on my page

Started by chipndale, December 31, 2006, 01:33:10 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

chipndale

I can't seem to figure out what went wrong. The code '{ADMIN_MENU}' displays on my page. Here's a screenshot of it

http://img84.imageshack.us/img84/5193/adminbarcge5.jpg [Edit GauGau] Replaced hotlinked image with attachment [/Edit]

Seem like a simple problem... but I can't figure it out. Anyone?  :-[

Gizmo

If you moved the {ADMIN_MENU} tag below the {GALLERY} in your template.html, you'll need to add it to the pagefooter function. Copy this to your theme.php if you don't already have this there or edit yours to include the variable '{ADMIN_MENU}' => theme_admin_mode_menu(),

// 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(
    '{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);
}

Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision

chipndale

Hi Gizmo,

The ADMIN_MENU is above GALLERY. With or without the new variable, it still display the code out. I had it working earlier, but I've no idea what I changed/blunder, guess I'm gonna start from scratch again :(

Anyway, thanks for the help.

Regards,
Jack

Gizmo

You could also zip up your theme and attach it here.
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision

chipndale

Hi Gizmo,

I started from scratch again, and it's working fine now. I will remember that tip from you if I ever need to put {ADMIN_MENU} below {GALLERY}. Thanks  :)


dsimey

Gizmo,
Thanks for that tip - exactly what I needed!