If you want it here's my complete setup for the menu:
theme.php (changed so the ecisting menu go away):
[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]<?php
/*------------------------------------------------------+
| PHPFusion Content Management System |
| Copyright (C) 2002 - 2010 Nick Jones |
| http://www.php-fusion.co.uk/ |
+-------------------------------------------------------+
| This program is released as free software under the |
| Affero GPL license. You can redistribute it and/or |
| addonify it under the terms of this license which you |
| can read by viewing the included agpl.txt or online |
| at www.gnu.org/licenses/agpl.html. Removal of this |
| copyright header is strictly prohibited without |
| written permission from the original author(s). |
+------------------------------------------------------*/
/*------------------------------------------------------+
| Theme Enigma for PHPFusion v7 |
+-------------------------------------------------------+
| Filename: theme.php |
| Author: Harly Petersen |
| Homepage: http://php-fusion.openworld.dk/ |
+-------------------------------------------------------+
| This theme is released under the terms and conditions |
| of the GNU Affero GPL v3. |
+------------------------------------------------------*/
if (!defined("IN_FUSION"
) { die("Access Denied"
; }
define("THEME_BULLET", "<img class='bullet' src='".THEME."images/bullet.gif' alt='bullet.gif' />"
;
define("THEME_WIDTH", "97%"
;
require_once INCLUDES."theme_functions_include.php";
function render_page($license=false) {
global $settings, $main_style, $locale, $aidlink, $userdata;
if (file_exists(THEME."locale/".$settings['locale'].".php"
) {
include THEME."locale/".$settings['locale'].".php";
} else {
include THEME."locale/English.php";
}
//Log-in
echo "<table cellspacing='0' cellpadding='0' style='width:100%;height:30px;'><tr>";
/*if (iMEMBER) {
echo "<td class='login' align='left' valign='middle'>".$locale['l01']." <a href='".BASEDIR."profile.php?lookup=".$userdata['user_id']."'><b>".$userdata['user_name']."</b></a></td>";
$msg_count = dbcount("(message_id)", DB_MESSAGES, "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'"
;
echo "<td class='login' align='right' valign='middle'>
<div id='menu'>
<ul>
<li><a id='logout' href='".BASEDIR."setuser.php?logout=yes' title='".$locale['global_124']."'></a></li>
".(iADMIN ? "<li><a id='admin' href='".ADMIN."index.php".$aidlink."' title='".$locale['global_123']."'></a></li> \n" : ""
."
<li><a id='userlist' href='".BASEDIR."members.php' title='".$locale['global_122']."'></a></li>
<li><a id='profile' href='".BASEDIR."edit_profile.php' title='".$locale['global_120']."'></a></li>
<li><a id='pm' href='".BASEDIR."messages.php' title='".$locale['global_121']."'></a></li>
<li><a href='".BASEDIR."messages.php'>";if ($msg_count){echo" <span id='msgcount'>[$msg_count]</span>";}echo"</a></li>
</ul>
</div>
</td>";
}
else {*/
if (iGUEST) {
echo "<td class='login' align='left' valign='middle' width='20%'></td>";
echo "<td class='login' align='center' valign='middle'>";
echo "".(isset($loginerror) ? $loginerror : ""
."
<form name='loginform1' method='post' action='".FUSION_SELF."'>
".$locale['global_101'].":
<input type='text' name='user_name' class='textbox' style='width:100px;'/>
".$locale['global_102'].":
<input type='password' name='user_pass' class='textbox' style='width:100px;'/>
<input type='checkbox' class='checkbox' name='remember_me' style='height:12px' value='y' title='".$locale['global_103']."' />
<input type='submit' name='login' value='".$locale['global_104']."' class='button'/>
</form></td>\n";
echo "<td class='login' align='right' valign='middle' width='20%'>
<div id='menu1'>
<ul>
<li><a id='lp' href='".BASEDIR."lostpassword.php' title='".$locale['global_108']."'></a></li>
".($settings['enable_registration'] ? "<li><a id='register' href='".BASEDIR."register.php' title='".$locale['global_107']."'></a></li> \n" : ""
."
</ul>
</div>
</td>";
//}
}
echo "</tr></table>\n";
//Header
echo "<table cellspacing='0' cellpadding='0' style='width:100%;height:145px;'>";
echo "<tr>";
echo "<td class='header' align='center'>".showbanners()."</td>\n";
echo "</tr>\n";
echo "</table>\n";
//Subheader
echo "<div class='sub-header' style='width:100%;'>";
echo "<table cellpadding='0' cellspacing='0' style='height:30px;' class='center'><tr>";
echo "<td>";
//include THEME."TinyDropdown/tinydropdown.php";
include INFUSIONS."css_dropdown_menu/menu.php";
echo "</td>\n";
echo "</tr>\n</table>\n";
echo "</div>";
echo "<div class='sub-shadow' style='width:100%;'></div>";
//Content
echo "<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."' class='center'>";
echo "<tr>";
if (LEFT) { echo "<td class='side-border-left' valign='top'>".LEFT."</td>"; }
echo "<td class='main-bg' valign='top'>".U_CENTER.CONTENT.L_CENTER."</td>";
if (RIGHT) { echo "<td class='side-border-right' valign='top'>".RIGHT."</td>"; }
echo "</tr>\n";
echo "</table>\n";
//Footer
echo "<table cellpadding='0' cellspacing='0' width='100%'>";
echo "<tr>";
echo "<td align='center' class='main-footer'>".stripslashes($settings['footer'])."</td>\n";
echo "</tr>\n";
echo "</table>\n";
echo "<table cellpadding='0' cellspacing='0' style='width:100%;height:40px;'>";
echo "<tr>";
echo "<td align='left' class='counter' style='width:20%;border-right:1px solid #2C292C;'>".showcounter()."</td>";
echo "<td align='center' class='footer'>".showcopyright()."</td>";
echo "<td align='right' class='footer' style='width:20%;border-left:1px solid #000;'>Theme <b>Enigma</b> by <a href='http://php-fusion.openworld.dk/' target='blank'>Harly</a></td>\n";
echo "</tr>\n";
echo "</table>\n";
}
function render_news($subject, $news, $info) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>";
echo "<tr>";
echo "<td class='capmain-left'></td>";
echo "<td class='capmain'>$subject</td>\n";
echo "<td class='capmain-right'></td>";
echo "</tr>\n";
echo "</table>\n";
echo "<table width='100%' cellpadding='0' cellspacing='0'>";
echo "<tr>";
echo "<td class='border-left'><img src='".THEME."images/blank.gif' style='width:5px;height:1px;display:block;' alt='blank.gif' /></td>";
echo "<td class='news-body middle-border'>".$news."</td>\n";
echo "<td class='border-right'><img src='".THEME."images/blank.gif' style='width:5px;height:1px;display:block;' alt='blank.gif' /></td>";
echo "</tr>\n<tr>\n";
echo "<td class='border-left'><img src='".THEME."images/blank.gif' style='width:5px;height:1px;display:block;' alt='blank.gif' /></td>";
echo "<td align='center' class='news-footer middle-border'>\n";
echo newsposter($info," ·"
.newsopts($info,"·"
.itemoptions("N",$info['news_id']);
echo "</td>\n";
echo "<td class='border-right'><img src='".THEME."images/blank.gif' style='width:5px;height:1px;display:block;' alt='blank.gif' /></td>";
echo "</tr>\n";
echo "</table>\n";
echo "<table cellspacing='0' cellpadding='0' style='width:100%;'><tr>";
echo "<td align='left'><img src='".THEME."/images/capmain-b-left.png' alt='capmain-b-left.png' style='width:5px;height:13px;' /></td>";
echo "<td align='center' class='capmain-b' width='100%'></td>";
echo "<td align='right'><img src='".THEME."/images/capmain-b-right.png' alt='capmain-b-right.png' style='width:5px;height:13px;' /></td>";
echo "</tr>\n</table>\n";
echo "<div class='spacer2'></div>";
}
function render_article($subject, $article, $info) {
echo "<table cellpadding='0' cellspacing='0' style='width:100%;'>";
echo "<tr>";
echo "<td class='capmain-left'></td>";
echo "<td class='capmain'>$subject</td>\n";
echo "<td class='capmain-right'></td>";
echo "</tr>\n";
echo "</table>\n";
echo "<table width='100%' cellpadding='0' cellspacing='0'>\n<tr>\n";
echo "<td class='border-left'><img src='".THEME."images/blank.gif' style='width:5px;height:1px;display:block;' alt='blank.gif' /></td>";
echo "<td class='news-body middle-border'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td>\n";
echo "<td class='border-right'><img src='".THEME."images/blank.gif' style='width:5px;height:1px;display:block;' alt='blank.gif' /></td>";
echo "</tr>\n<tr>\n";
echo "<td class='border-left'><img src='".THEME."images/blank.gif' style='width:5px;height:1px;display:block;' alt='blank.gif' /></td>";
echo "<td align='center' class='news-footer middle-border'>\n";
echo articleposter($info," ·"
.articleopts($info,"·"
.itemoptions("A",$info['article_id']);
echo "</td>\n";
echo "<td class='border-right'><img src='".THEME."images/blank.gif' style='width:5px;height:1px;display:block;' alt='blank.gif' /></td>";
echo "</tr>\n";
echo "</table>\n";
echo "<table cellspacing='0' cellpadding='0' style='width:100%;'><tr>";
echo "<td align='left'><img src='".THEME."/images/capmain-b-left.png' alt='capmain-b-left.png' style='width:5px;height:13px;' /></td>";
echo "<td align='center' class='capmain-b' width='100%'></td>";
echo "<td align='right'><img src='".THEME."/images/capmain-b-right.png' alt='capmain-b-right.png' style='width:5px;height:13px;' /></td>";
echo "</tr>\n</table>\n";
echo "<div class='spacer2'></div>";
}
function opentable($title, $collapse = false, $state = "on"
{
global $panel_collapse; $panel_collapse = $collapse;
echo "<table cellpadding='0' cellspacing='0' style='width:100%;'>";
echo "<tr>";
echo "<td class='capmain-left'></td>";
echo "<td class='capmain'>$title</td>";
if ($collapse == true) {
$boxname = str_replace(" ", "", $title);
echo "<td class='capmain' align='right'>".panelbutton($state, $boxname)."</td>\n";
}
echo "<td class='capmain-right'></td>";
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' style='width:100%;'>\n<tr>\n";
echo "<td class='border-left'><img src='".THEME."images/blank.gif' style='width:5px;height:1px;display:block;' alt='blank.gif' /></td>";
echo "<td colspan='2' class='main-body'>\n";
if ($collapse == true) { echo panelstate($state, $boxname); }
}
function closetable() {
global $panel_collapse;
if ($panel_collapse == true) { echo "</div>\n"; }
echo "</td>\n";
echo "<td class='border-right'><img src='".THEME."images/blank.gif' style='width:5px;height:1px;display:block;' alt='blank.gif' /></td>";
echo "</tr>\n";
echo "</table>\n";
echo "<table cellspacing='0' cellpadding='0' style='width:100%;'><tr>";
echo "<td align='left'><img src='".THEME."/images/capmain-b-left.png' alt='capmain-b-left.png' style='width:5px;height:13px;' /></td>";
echo "<td align='center' class='capmain-b' width='100%'></td>";
echo "<td align='right'><img src='".THEME."/images/capmain-b-right.png' alt='capmain-b-right.png' style='width:5px;height:13px;' /></td>";
echo "</tr>\n</table>\n";
echo "<div class='spacer2'></div>";
}
function openside($title, $collapse = false, $state = "on"
{
global $panel_collapse; $panel_collapse = $collapse;
echo "<table cellpadding='0' cellspacing='0' style='width:100%;height: 30px;'>";
echo "<tr>";
echo "<td class='scapmain'>$title</td>\n";
if ($collapse == true) {
$boxname = str_replace(" ", "", $title);
echo "<td class='on-off-bg' align='right'>".panelbutton($state, $boxname)."</td>\n";
}
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' style='width:100%;'><tr>";
echo "<td colspan='2' class='side-body'>\n";
if ($collapse == true) { echo panelstate($state, $boxname); }
}
function closeside() {
global $panel_collapse;
if ($panel_collapse == true) { echo "</div>\n"; }
echo "</td>\n";
echo "</tr>\n";
echo "</table>\n";
echo "<table cellspacing='0' cellpadding='0' style='width:100%;'>";
echo "<tr>";
echo "<td class='sideb'></td>";
echo "</tr>\n";
echo "</table>\n";
echo "<div class='spacer'></div>";
}
?>[/syntaxhighlighter]
Setup for the menu: - see attached image..