24 May 2013
Support Center
»
Knowledgebase
»
Customizing FusionBB
»
Menu Item Customizations
Menu Item Customizations
Article
Please Note:
templates/fusionbb/header _left.php
is the header template included and used when you have a left sidebar.
templates/fusionbb/footer _right.php
is the template file included and used when you have a right sidebar.
templates/fusionbb/header _both.php
is the template included and used for the main portal.
Step 1)
In
includes/common.php
find:
// Setup the main index link list($tabopen,$tabclose) = $this -> createNavTab('mainindex') ; $template->setTemplate Var("MAININDEX","$tabopen <a href='{$conf['portal_url' ]}/index.php?$FBB_SESS'>{$lang_ str['MAIN']}</a>$ta bclose");
Add your nav link as such:
$this->createNavTabSub ('mymenu',"<a href='{$conf['home_url']} /myscript1.php?$FBB_SESS'>MENUOPT ION1TITLE</a>"); $this->createNavTabSub ('mymenu',"<a href='{$conf['home_url']} /myscript2.php?$FBB_SESS'>MENUOPT ION2TITLE</a>"); $this->createNavTabSub ('mymenu',"<a href='{$conf['home_url']} /myscript3.php?$FBB_SESS'>MENUOPT ION3TITLE</a>"); list($tabopen,$tabclose) = $this->createNavTab('m ymenu'); $template->setTemplate Var("MYMENU","$tabopen{MY MENUTITLE}$tabclose");
Now, from the above, you get two variables:
MYMENU
and
mymenu
Step 2)
In
templates/header_left.php
find:
<!--MEMBERS-->
and under it place:
<!--MYMENU-->
and also find:
<!--members_sub-->
and place below it:
<!--mymenu_sub-->
That will create a menu with a submenu with those items listed below it.
If you just want to add a link and not a menu:
in common.php
list($tabopen,$tabclose) = $this -> createNavTab('MYLINK');
$template->setTemplate Var("MYLINK","$tabopen< ;a href='{$conf['portal_url' ]}/mypage.php?$FBB_SESS'>MYLINKT ITLE</a>$tabclose") ;
and then in
header_left.php
find:
<!--MEMBERS-->
and under it place:
<!--MYLINK-->
and also find:
<!--members_sub-->
and place below it:
<!--mylink_sub-->
To line things up correctly, you need to make sure you placed the submenu item in the correct location in the header_left.php (if using left sidebar, for instance).
In other words, find:
<!--MEMBERS-->
and place your menu there as so:
<!--MEMBERS-->
<!--MYLINK-->
and then find (also in
header_left.php
):
<!--members_sub-->
and place your submenu there:
<!--members_sub-->
<!--mylink_sub-->
This is how it lines up correctly: for instance, if you put
<!--mylink_sub-->
<!--members_sub-->
the
mylink
submenu would line up under members menu and the members
submenu
would line up under the
My Link
menu.
Article Details
Article ID:
62
Created On:
10 Nov 2008 7:11 PM
This answer was helpful
This answer was not helpful
User Comments
Add a Comment
Sharing is good. If you have a comment about this entry, please feel free to share. The comments might be reviewed by our staff, and may require approval before being posted. Questions posted will not be answered. Please submit a Ticket for support requests.
Image Verification Required
Please enter the characters that appear to the right in the space provided. This is just to verify that you are a human.
Full Name:
E-mail Address: (optional)
Comment:
Back
Login
Email Address:
Password:
Remember Me:
Search
-- Entire Support Site --
Knowledgebase
Downloads
Article Options
Add Comment
Print Article
PDF Version
E-mail Article
Add to Favorites
Home
|
Submit a Ticket
|
Knowledgebase
|
Downloads
Language:
English (U.S.)
Help Desk Software by Kayako eSupport v3.30.02