forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Miscellaneous => Topic started by: Dunai on April 06, 2005, 04:40:48 am

Title: Php menu doesnt work
Post by: Dunai on April 06, 2005, 04:40:48 am
I was working on the template for my gallery http://www.bmx-planet.com/gallery the left and right blank spaces are supposed to be menu1.php and menu2.php and when i include them they dont show up. I renamed template.html to template.php and in init.inc.php i changed if from .html to .php can somone please help me out.
Title: Re: Php menu doesnt work
Post by: donnoman on April 06, 2005, 04:44:48 am
Won't work that way, messing with template.htm accomplishes nothing because it is simply read chopped up, then spit out as function's of coppermine needs those areas.

It is never eval'd so putting php code inside template.html doesn't accomplish anything. Renaming it doesn't do anything more for the situation. It could be rename to .txt and it would work the same.

The proper way to do what your after is use a custom_header, the docs cover it, and if you search the forums you can find at least a few discussions about it.
Title: Re: Php menu doesnt work
Post by: Dunai on April 06, 2005, 05:16:35 am
Hmmmmmmm........ i done some research and im still confused. Would somone be able to point me in some sort of direction?
Title: Re: Php menu doesnt work
Post by: donnoman on April 06, 2005, 05:25:52 am
http://coppermine.sourceforge.net/faq.php#customHeader
Title: Re: Php menu doesnt work
Post by: Dunai on April 06, 2005, 05:52:09 am
Thanks heaps. That solved all my problems.
Title: Re: Php menu doesnt work
Post by: Dunai on April 06, 2005, 06:14:59 am
Hmmmmmmmm maybe i spoke to soon. I got the left menu working fine but how do i get the right menu to show up :S
Title: Re: Php menu doesnt work
Post by: donnoman on April 06, 2005, 06:28:22 am
If its before the {GALLERY} token in your template.html then you need to use the custom header and modify the pageheader() function.

If it's below the {GALLERY} token then you need to use a custom_footer. Which is the same technique as the custom_header except that you would modify the pagefooter() function to make your variable swaps.
Title: Re: Php menu doesnt work
Post by: Dunai on April 06, 2005, 06:36:16 am
Ok, so i need the footer. But im still not sure what to put in the footer  :-\\
Title: Re: Php menu doesnt work
Post by: donnoman on April 06, 2005, 07:30:18 am
Read this post: http://forum.coppermine-gallery.net/index.php?topic=9863.msg44419#msg44419