cut from sample theme.php method for custom menu gives blank page cut from sample theme.php method for custom menu gives blank page
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

cut from sample theme.php method for custom menu gives blank page

Started by kenw, August 08, 2010, 10:55:12 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

kenw

I am building a website, listed on my profile. It's written using frames, with Coppermine as a sub-frame. I want to change that so Coppermine is the main page, and migrate two main menu items (about_us and location) into the Coppermine menu. I have already created a custom theme in the recommended way, by copying from themes/sample and modifying style.css and theme.php. I did a few searches on the subject of custom menus, and concluded that I should cut and paste Section <<<$template_sys_menu>>> and Section <<<$template_sub_menu>>> into my theme.php file for modifications. When I do this and upload the file, my gallery page shows a blank screen. I didn't yet make any mods to the sections. I also tried copying the addbutton procedure and Section <<<THEME_HAS_NO_SUB_MENU_BUTTONS>>> , but that didn't change anything. I always pasted them before my other changes. Everything is normal when I remove all the menu sections. What have I missed? I enclose my theme.php file...

kenw

It works now. Seems like I didn't include Section <<<assemble_template_buttons>>> . I thought I tried that before, but sometimes something that works Monday morning, couldn't possibly work on Sunday night. Maybe it's the coffee.