Php menu doesnt work Php menu doesnt work
 

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

Php menu doesnt work

Started by Dunai, April 06, 2005, 04:40:48 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dunai

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.

donnoman

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.

Dunai

Hmmmmmmm........ i done some research and im still confused. Would somone be able to point me in some sort of direction?

donnoman


Dunai

Thanks heaps. That solved all my problems.

Dunai

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

donnoman

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.

Dunai

Ok, so i need the footer. But im still not sure what to put in the footer  :-\\

donnoman