coppermine-gallery.com/forum

Support => cpg1.5.x Support => cpg1.5 themes (visuals) => Topic started by: kenw on August 08, 2010, 10:55:12 PM

Title: cut from sample theme.php method for custom menu gives blank page
Post by: kenw on August 08, 2010, 10:55:12 PM
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...
Title: Re: cut from sample theme.php method for custom menu gives blank page
Post by: kenw on August 09, 2010, 04:55:25 PM
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.