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? :-[
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);
}
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
You could also zip up your theme and attach it here.
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 :)
Gizmo,
Thanks for that tip - exactly what I needed!