menu added to root pages

I currently have my business directory script setup in my root, I now have a community script (dolphin) setup in a subdirectory "community" the dolphin scrip has a great flash based menu. I am tring to add that same menu to my root pages via header code insert but am tring to determine the exact code to do this with.

this code works as long as in the "comminuty folder.
<?php

require_once( 'inc/header.inc.php' );
require_once( BX_DIRECTORY_PATH_INC . 'design.inc.php' );

$_page['name_index'] = 200; // this is the number of the html page linked with this php file; change it as you wish
$_page['css_name'] = 'my_page.css'; // this is the name of the CSS file linked with the above mentioned HTML file; change it as you wish

$_ni = $_page['name_index'];
$_page_cont[$_ni]['page_main_code'] = PageCompMainCode();

PageCode();

function PageCompMainCode()
{
// here you should put PHP code to get results if you wish to display something dynamic on this page; for example return $_COOKIE['memberID'];
}



what changes need to be made for this to work in the root directory?
Guess I nee to change paths correct?

Quote · 19 Jul 2009
This makes it work in the root directory but how do I request the header only without the footer or middle?
require_once( 'community/inc/header.inc.php' );
Quote · 19 Jul 2009

Your obvioulsy not a php coder. Simply use the html from view source once you have your menu setup the way you want.

I have video tutorials to help you mrpowless.com
Quote · 19 Jul 2009

not looking for simple html for the menu

want the menu to be pulled on the fly so that changes that are updated when made

Quote · 20 Jul 2009

not looking for simple html for the menu

want the menu to be pulled on the fly so that changes that are updated when made

You'll need to understand how server-side include files work, path structures and PHP.

Do what mrpowless said. It will save you some money and frustration. If you want the big stuff then be prepared to work for it.

Good luck!

Quote · 20 Jul 2009

I currently have my business directory script setup in my root, I now have a community script (dolphin) setup in a subdirectory "community" the dolphin scrip has a great flash based menu. I am tring to add that same menu to my root pages via header code insert but am tring to determine the exact code to do this with.

this code works as long as in the "comminuty folder.
<?php

require_once( 'inc/header.inc.php' );
require_once( BX_DIRECTORY_PATH_INC . 'design.inc.php' );

$_page['name_index'] = 200; // this is the number of the html page linked with this php file; change it as you wish
$_page['css_name'] = 'my_page.css'; // this is the name of the CSS file linked with the above mentioned HTML file; change it as you wish

$_ni = $_page['name_index'];
$_page_cont[$_ni]['page_main_code'] = PageCompMainCode();

PageCode();

function PageCompMainCode()
{
// here you should put PHP code to get results if you wish to display something dynamic on this page; for example return $_COOKIE['memberID'];
}



what changes need to be made for this to work in the root directory?
Guess I nee to change paths correct?

Quote · 20 Jul 2009

If you dont know of a solution just say so

ill make it work myself if no one has already done it

Quote · 21 Jul 2009
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.