Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:23
PHPNuke Menu Header
Poster: walibe
Dated: Monday January 28 2008 - 11:32:56 GMT
OK I'm having problems. I'm gonna potentially have 5 or 6 sites with this menu so before I spit out the dosh I need to know this can be made to work.
Here is the site its http://www.scenicforums.com
That Icon bar is where the menu needs to appear and it does (although for some reason it extends beyond where it should). Why oh why do the menus appear for a second on top of the Googleads rather than beneath the menu? Its easy enough for me to make the meny appear up there and work in its entirety but it needs to be where it is now.
I have created a file in my includes folder which is called menu.php and contains:
Code:
<script type="text/javascript" src="milonic_src.js"></script>
<script type="text/javascript" src="mmenudom.js"></script>
<script type="text/javascript" src="mmenudom.js"></script>
This is then called in my header file which loads before the theme:
Code:
echo "<head>\n";
echo "<title>$sitename $pagetitle</title>\n";
include("includes/meta.php");
include("includes/javascript.php");
include("includes/menu.php");
echo "<title>$sitename $pagetitle</title>\n";
include("includes/meta.php");
include("includes/javascript.php");
include("includes/menu.php");
Happy days...
Then theres the THEME AHHHHHHHHHHHHHHHHHHHHHH......
Code:
$alttext1 = "The Scenic Forums";
function OpenTable() {
global $bgcolor1, $bgcolor2;
echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=\"$bgcolor2\"><tr><td>\n";
echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"8\" bgcolor=\"$bgcolor1\"><tr><td>\n";
}
function CloseTable() {
echo "</td></tr></table></td></tr></table>\n";
}
function OpenTable2() {
global $bgcolor1, $bgcolor2;
echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=\"$bgcolor2\" align=\"center\"><tr><td>\n";
echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"8\" bgcolor=\"$bgcolor1\"><tr><td>\n";
}
function CloseTable2() {
echo "</td></tr></table></td></tr></table>\n";
}
function FormatStory($thetext, $notes, $aid, $informant) {
global $anonymous;
if ($notes != "") {
$notes = "<br><br><b>"._NOTE."</b> <i>$notes</i>\n";
} else {
$notes = "";
}
if ("$aid" == "$informant") {
echo "<font class=\"content\">$thetext$notes</font>\n";
} else {
if($informant != "") {
$boxstuff = "<a href=\"user.php?op=userinfo&uname=$informant\">$informant</a> ";
} else {
$boxstuff = "$anonymous ";
}
$boxstuff .= ""._WRITES." <i>\"$thetext\"</i>$notes\n";
echo "<font class=\"content\">$boxstuff</font>\n";
}
}
function themeheader() {
global $alttext1, $banners, $bgcolor5, $bgcolor6, $bgcolor7, $bgcolor8, $bgcolor9, $bgcolor20, $bgcolor21, $user, $t, $f, $mode, $user, $cookie, $prefix, $db, $user_prefix, $name;
if (!is_user($user)) {
mt_srand ((double)microtime()*1000000);
$maxran = 1000000;
$random_num = mt_rand(0, $maxran);
};
echo "<body bgcolor=\"$bgcolor5\" text=\"#000000\" link=\"0000ff\">"
."<br>";
if ($banners) {
include("banners.php");
echo "<br>";
}
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"2\" bgcolor=\"$bgcolor6\" width=\"800\" align=\"center\">\n"
."<tr><td width=\"100%\">\n"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"800\">\n"
."<tr><td width=\"100%\">\n"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"800\">\n";
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"ffffff\" width=\"800\" align=\"left\">\n"
."<td width=\"100%\" height=\"30\" bgcolor=\"#ffffff\" background=\"themes/pd2003/images/top_login.gif\" width=\"800\" height=\"30\">\n";
echo"<div id=\jmbti_div></div>";
echo "<tr><td width=\"100%\" height=\"80\" bgcolor=\"$bgcolor7\">\n"
."<table border=0 width=100% cellpadding=0 cellspacing=0><tr><td align=\"left\"><a href=\"index.php\"><img border=\"0\" src=\"themes/pd2003/images/logo.jpg\" alt=\"$alttext1\" hspace=\"0\"></a><br></td>\n";
[b] echo "<script type=\"text/javascript\" language=\"JavaScript1.2\" src=\"menu_data.js\"></script>\n"; [/b]
echo "</td></tr><tr><td width=\"100%\"><table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\"><tr><td bgcolor=\"$bgcolor9\" background=modules.php?name=Private_Messages&file=index&folder=inbox\"themes/pd2003/images/line1.gif\">\n";
$public_msg = public_message();
echo "$public_msg<br>";
echo "</td></tr></table><table width=\"800\" cellpadding=\"0\" bgcolor=\"$bgcolor20\" cellspacing=\"0\" border=\"0\">\n"
function OpenTable() {
global $bgcolor1, $bgcolor2;
echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=\"$bgcolor2\"><tr><td>\n";
echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"8\" bgcolor=\"$bgcolor1\"><tr><td>\n";
}
function CloseTable() {
echo "</td></tr></table></td></tr></table>\n";
}
function OpenTable2() {
global $bgcolor1, $bgcolor2;
echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=\"$bgcolor2\" align=\"center\"><tr><td>\n";
echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"8\" bgcolor=\"$bgcolor1\"><tr><td>\n";
}
function CloseTable2() {
echo "</td></tr></table></td></tr></table>\n";
}
function FormatStory($thetext, $notes, $aid, $informant) {
global $anonymous;
if ($notes != "") {
$notes = "<br><br><b>"._NOTE."</b> <i>$notes</i>\n";
} else {
$notes = "";
}
if ("$aid" == "$informant") {
echo "<font class=\"content\">$thetext$notes</font>\n";
} else {
if($informant != "") {
$boxstuff = "<a href=\"user.php?op=userinfo&uname=$informant\">$informant</a> ";
} else {
$boxstuff = "$anonymous ";
}
$boxstuff .= ""._WRITES." <i>\"$thetext\"</i>$notes\n";
echo "<font class=\"content\">$boxstuff</font>\n";
}
}
function themeheader() {
global $alttext1, $banners, $bgcolor5, $bgcolor6, $bgcolor7, $bgcolor8, $bgcolor9, $bgcolor20, $bgcolor21, $user, $t, $f, $mode, $user, $cookie, $prefix, $db, $user_prefix, $name;
if (!is_user($user)) {
mt_srand ((double)microtime()*1000000);
$maxran = 1000000;
$random_num = mt_rand(0, $maxran);
};
echo "<body bgcolor=\"$bgcolor5\" text=\"#000000\" link=\"0000ff\">"
."<br>";
if ($banners) {
include("banners.php");
echo "<br>";
}
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"2\" bgcolor=\"$bgcolor6\" width=\"800\" align=\"center\">\n"
."<tr><td width=\"100%\">\n"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"800\">\n"
."<tr><td width=\"100%\">\n"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"800\">\n";
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"ffffff\" width=\"800\" align=\"left\">\n"
."<td width=\"100%\" height=\"30\" bgcolor=\"#ffffff\" background=\"themes/pd2003/images/top_login.gif\" width=\"800\" height=\"30\">\n";
echo"<div id=\jmbti_div></div>";
echo "<tr><td width=\"100%\" height=\"80\" bgcolor=\"$bgcolor7\">\n"
."<table border=0 width=100% cellpadding=0 cellspacing=0><tr><td align=\"left\"><a href=\"index.php\"><img border=\"0\" src=\"themes/pd2003/images/logo.jpg\" alt=\"$alttext1\" hspace=\"0\"></a><br></td>\n";
[b] echo "<script type=\"text/javascript\" language=\"JavaScript1.2\" src=\"menu_data.js\"></script>\n"; [/b]
echo "</td></tr><tr><td width=\"100%\"><table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\"><tr><td bgcolor=\"$bgcolor9\" background=modules.php?name=Private_Messages&file=index&folder=inbox\"themes/pd2003/images/line1.gif\">\n";
$public_msg = public_message();
echo "$public_msg<br>";
echo "</td></tr></table><table width=\"800\" cellpadding=\"0\" bgcolor=\"$bgcolor20\" cellspacing=\"0\" border=\"0\">\n"
I've included the top half of the theme so you can see the tables and how crappy I am. I need the menu to appear right under the logo so this is where I placed it. Helpppppppppppppppppppp!
The menu atleast works in part as the hover over gives the evaluation message. Its based around Sample 68 (the start button).
Re: PHPNuke Menu Header
Poster: walibe
Dated: Monday January 28 2008 - 16:45:19 GMT
And Yes I've tried method one of integrating it into a table although it doesn't work.
Re: PHPNuke Menu Header
Poster: walibe
Dated: Monday January 28 2008 - 23:05:52 GMT
OK After fiddling with example two I now have the following:
http://www.scenicforums.com
The menu bar should be under the logo picture which doesn't make sense. Heres my theme.php (top half)
Code:
function OpenTable() {
global $bgcolor1, $bgcolor2;
echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=\"$bgcolor2\"><tr><td>\n";
echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"8\" bgcolor=\"$bgcolor1\"><tr><td>\n";
}
function CloseTable() {
echo "</td></tr></table></td></tr></table>\n";
}
function OpenTable2() {
global $bgcolor1, $bgcolor2;
echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=\"$bgcolor2\" align=\"center\"><tr><td>\n";
echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"8\" bgcolor=\"$bgcolor1\"><tr><td>\n";
}
function CloseTable2() {
echo "</td></tr></table></td></tr></table>\n";
}
function FormatStory($thetext, $notes, $aid, $informant) {
global $anonymous;
if ($notes != "") {
$notes = "<br><br><b>"._NOTE."</b> <i>$notes</i>\n";
} else {
$notes = "";
}
if ("$aid" == "$informant") {
echo "<font class=\"content\">$thetext$notes</font>\n";
} else {
if($informant != "") {
$boxstuff = "<a href=\"user.php?op=userinfo&uname=$informant\">$informant</a> ";
} else {
$boxstuff = "$anonymous ";
}
$boxstuff .= ""._WRITES." <i>\"$thetext\"</i>$notes\n";
echo "<font class=\"content\">$boxstuff</font>\n";
}
}
function themeheader() {
global $alttext1, $banners, $bgcolor5, $bgcolor6, $bgcolor7, $bgcolor8, $bgcolor9, $bgcolor20, $bgcolor21, $user, $t, $f, $mode, $user, $cookie, $prefix, $db, $user_prefix, $name;
if (!is_user($user)) {
mt_srand ((double)microtime()*1000000);
$maxran = 1000000;
$random_num = mt_rand(0, $maxran);
};
echo "<body bgcolor=\"$bgcolor5\" text=\"#000000\" link=\"0000ff\">"
."<br>";
if ($banners) {
include("banners.php");
echo "<br>";
}
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"2\" bgcolor=\"$bgcolor6\" width=\"800\" align=\"center\">\n"
."<tr><td width=\"100%\">\n"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"800\">\n"
."<tr><td width=\"100%\">\n"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"800\">\n";
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"ffffff\" width=\"800\" align=\"left\">\n"
."<td width=\"100%\" height=\"30\" bgcolor=\"#ffffff\" background=\"themes/pd2003/images/top_login.gif\" width=\"800\" height=\"30\">\n";
echo"<div id=\jmbti_div></div>";
echo "<tr><td width=\"100%\" height=\"80\" bgcolor=\"$bgcolor7\">\n"
."<table border=0 width=100% cellpadding=0 cellspacing=0><tr><td align=\"left\"><a href=\"index.php\"><img border=\"0\" src=\"themes/pd2003/images/logo.jpg\" alt=\"$alttext1\" hspace=\"0\"></a><br></td>\n";
[b]echo "<script type=\"text/javascript\" language=\"JavaScript1.2\" src=\"embedded_menu_data.js\"></script>\n"; [/b]
echo "</td></tr><tr><td width=\"100%\"><table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\"><tr><td bgcolor=\"$bgcolor9\" background=modules.php?name=Private_Messages&file=index&folder=inbox\"themes/pd2003/images/line1.gif\">\n";
$public_msg = public_message();
echo "$public_msg<br>";
echo "</td></tr></table><table width=\"800\" cellpadding=\"0\" bgcolor=\"$bgcolor20\" cellspacing=\"0\" border=\"0\">\n"
."<tr valign=\"top\">\n"
."<td width=\"138\" bgcolor=\"$bgcolor21\" valign=\"top\" background=\"themes/pd2003/images/back1.gif\" width=\"138\">\n";
if ($name=='Forums' || $name=='Private_Messages' || $name=='Your_Account') {
/* Don't display it. */
}
else {
blocks(left);
}
echo "</td><td><img src=\"themes/pd2003/images/pixel.gif\" width=\"10\" height=\"1\" border=\"0\" alt=\"\"></td><td width=\"100%\">\n";
}
function themefooter() {
global $bgcolor1, $bgcolor2;
echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=\"$bgcolor2\"><tr><td>\n";
echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"8\" bgcolor=\"$bgcolor1\"><tr><td>\n";
}
function CloseTable() {
echo "</td></tr></table></td></tr></table>\n";
}
function OpenTable2() {
global $bgcolor1, $bgcolor2;
echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=\"$bgcolor2\" align=\"center\"><tr><td>\n";
echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"8\" bgcolor=\"$bgcolor1\"><tr><td>\n";
}
function CloseTable2() {
echo "</td></tr></table></td></tr></table>\n";
}
function FormatStory($thetext, $notes, $aid, $informant) {
global $anonymous;
if ($notes != "") {
$notes = "<br><br><b>"._NOTE."</b> <i>$notes</i>\n";
} else {
$notes = "";
}
if ("$aid" == "$informant") {
echo "<font class=\"content\">$thetext$notes</font>\n";
} else {
if($informant != "") {
$boxstuff = "<a href=\"user.php?op=userinfo&uname=$informant\">$informant</a> ";
} else {
$boxstuff = "$anonymous ";
}
$boxstuff .= ""._WRITES." <i>\"$thetext\"</i>$notes\n";
echo "<font class=\"content\">$boxstuff</font>\n";
}
}
function themeheader() {
global $alttext1, $banners, $bgcolor5, $bgcolor6, $bgcolor7, $bgcolor8, $bgcolor9, $bgcolor20, $bgcolor21, $user, $t, $f, $mode, $user, $cookie, $prefix, $db, $user_prefix, $name;
if (!is_user($user)) {
mt_srand ((double)microtime()*1000000);
$maxran = 1000000;
$random_num = mt_rand(0, $maxran);
};
echo "<body bgcolor=\"$bgcolor5\" text=\"#000000\" link=\"0000ff\">"
."<br>";
if ($banners) {
include("banners.php");
echo "<br>";
}
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"2\" bgcolor=\"$bgcolor6\" width=\"800\" align=\"center\">\n"
."<tr><td width=\"100%\">\n"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"800\">\n"
."<tr><td width=\"100%\">\n"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"800\">\n";
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"ffffff\" width=\"800\" align=\"left\">\n"
."<td width=\"100%\" height=\"30\" bgcolor=\"#ffffff\" background=\"themes/pd2003/images/top_login.gif\" width=\"800\" height=\"30\">\n";
echo"<div id=\jmbti_div></div>";
echo "<tr><td width=\"100%\" height=\"80\" bgcolor=\"$bgcolor7\">\n"
."<table border=0 width=100% cellpadding=0 cellspacing=0><tr><td align=\"left\"><a href=\"index.php\"><img border=\"0\" src=\"themes/pd2003/images/logo.jpg\" alt=\"$alttext1\" hspace=\"0\"></a><br></td>\n";
[b]echo "<script type=\"text/javascript\" language=\"JavaScript1.2\" src=\"embedded_menu_data.js\"></script>\n"; [/b]
echo "</td></tr><tr><td width=\"100%\"><table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\"><tr><td bgcolor=\"$bgcolor9\" background=modules.php?name=Private_Messages&file=index&folder=inbox\"themes/pd2003/images/line1.gif\">\n";
$public_msg = public_message();
echo "$public_msg<br>";
echo "</td></tr></table><table width=\"800\" cellpadding=\"0\" bgcolor=\"$bgcolor20\" cellspacing=\"0\" border=\"0\">\n"
."<tr valign=\"top\">\n"
."<td width=\"138\" bgcolor=\"$bgcolor21\" valign=\"top\" background=\"themes/pd2003/images/back1.gif\" width=\"138\">\n";
if ($name=='Forums' || $name=='Private_Messages' || $name=='Your_Account') {
/* Don't display it. */
}
else {
blocks(left);
}
echo "</td><td><img src=\"themes/pd2003/images/pixel.gif\" width=\"10\" height=\"1\" border=\"0\" alt=\"\"></td><td width=\"100%\">\n";
}
function themefooter() {
You can see my highlighted line appears AFTER the logo so I just don't understand.
The head.php makes the calls for menu.php which contains:
Code:
<?php
?>
<SCRIPT type="text/javascript" src="milonic_src.js"></SCRIPT>
<noscript><a href="http://www.milonic.com/">DHTML Menu JavaScript Menu Powered by Milonic</a></noscript>
<script type="text/javascript">
<!--
if(ns4)_d.write("<SCR"+"IPT LANGUAGE=JavaScript SRC=mmenuns4.js><\/SCR"+"IPT>");
else _d.write("<SCR"+"IPT LANGUAGE=JavaScript SRC=mmenudom.js><\/SCR"+"IPT>");
-->
</SCRIPT>
<SCRIPT type="text/javascript" src="menu_data.js"></SCRIPT>
?>
<SCRIPT type="text/javascript" src="milonic_src.js"></SCRIPT>
<noscript><a href="http://www.milonic.com/">DHTML Menu JavaScript Menu Powered by Milonic</a></noscript>
<script type="text/javascript">
<!--
if(ns4)_d.write("<SCR"+"IPT LANGUAGE=JavaScript SRC=mmenuns4.js><\/SCR"+"IPT>");
else _d.write("<SCR"+"IPT LANGUAGE=JavaScript SRC=mmenudom.js><\/SCR"+"IPT>");
-->
</SCRIPT>
<SCRIPT type="text/javascript" src="menu_data.js"></SCRIPT>
So all seems to work its just its placement that I can't get my head around. Any ideas?
Re: PHPNuke Menu Header
Poster: Ruth
Dated: Tuesday January 29 2008 - 7:28:29 GMT
Hi,
I've been working on it, but there are so many tables it's hard to figure the layout clearly. Anyway, you have an error in your table code and I think that is the problem
Code:
<table border=0 width=100% cellpadding=0 cellspacing=0><tr><td align="left"><a href="index.php"><img border="0" src="themes/pd2003/images/logo.jpg" alt="The Scenic Forums" hspace="0"></a><br></td>
<script type="text/javascript" language="JavaScript1.2" src="embedded_menu_data.js"></script>
</td></tr>
<script type="text/javascript" language="JavaScript1.2" src="embedded_menu_data.js"></script>
</td></tr>
I think you have a missing closing /td and /tr, for the cell that has that logo.jpg image and then a missing opening tr td for the cell that has the menu
Code:
<table border=0 width=100% cellpadding=0 cellspacing=0><tr><td align="left"><a href="index.php"><img border="0" src="themes/pd2003/images/logo.jpg" alt="The Scenic Forums" hspace="0"></a><br></td></tr>
<tr><td>
<script type="text/javascript" language="JavaScript1.2" src="embedded_menu_data.js"></script>
</td></tr>
<tr><td>
<script type="text/javascript" language="JavaScript1.2" src="embedded_menu_data.js"></script>
</td></tr>
Hope this helps
Ruth
Re: PHPNuke Menu Header
Poster: John
Dated: Tuesday January 29 2008 - 13:37:02 GMT
Ruth will get your problem solved, but I do have a request. Please do not call your graphics from the Milonic servers...
Code:
subimage="http://www.milonic.com/menuimages/arrow.gif";
This graphic is included in the download package, and should be copied to your server and called from there.
Thanks.
Re: PHPNuke Menu Header
Poster: walibe
Dated: Tuesday January 29 2008 - 15:06:28 GMT
I didn't realise I was using any external graphics. Will update the menu now but yeah can see the icons being called. OK your right Ruth theres so many tables it doesn't make sense. I have had a to do a bit of a bodge but the menu now appears correct and working in Internet Explorer but not Firefox which are the only two browsers I need to support really.
Code:
function themeheader() {
global $alttext1, $banners, $bgcolor5, $bgcolor6, $bgcolor7, $bgcolor8, $bgcolor9, $bgcolor20, $bgcolor21, $user, $t, $f, $mode, $user, $cookie, $prefix, $db, $user_prefix, $name;
if (!is_user($user)) {
mt_srand ((double)microtime()*1000000);
$maxran = 1000000;
$random_num = mt_rand(0, $maxran);
};
echo "<body bgcolor=\"$bgcolor5\" text=\"#000000\" link=\"0000ff\">"
."<br>";
if ($banners) {
include("banners.php");
echo "<br>";
}
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"2\" bgcolor=\"$bgcolor6\" width=\"800\" align=\"center\">\n"
."<tr><td width=\"100%\">\n"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"800\">\n"
."<tr><td width=\"100%\">\n"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"800\">\n";
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"ffffff\" width=\"800\" align=\"left\">\n"
."<td width=\"100%\" height=\"30\" bgcolor=\"#ffffff\" background=\"themes/pd2003/images/top_login.gif\" width=\"800\" height=\"30\">\n";
echo"<div id=\jmbti_div></div>";
echo "<tr><td width=\"100%\" height=\"80\" bgcolor=\"$bgcolor7\">\n"
."<table border=0 width=100% cellpadding=0 cellspacing=0><tr><td align=\"left\"><a href=\"index.php\"><img border=\"0\" src=\"themes/pd2003/images/logo.jpg\" alt=\"$alttext1\" hspace=\"0\"></a><br></td>\n";
//echo "<table border=0 width=100% cellpadding=0 cellspacing=0><tr><td width=\"100%\"><IFRAME name=iframe src=\"themes/pd2003/menu.html\" frameBorder=0 width=100% height=15 scrolling=no marginwidth=\"0\" marginheight=\"0\"></iframe>";
echo "<tr><td width=\"100%\" bgcolor=\"$bgcolor8\" height=\"33\" valign=\"bottom\">\n"
."<a href=\"index.php\"><img border=\"0\" src=\"themes/pd2003/images/buttonhome1.jpg\" width=\"100\" height=\"33\"></a>"
."<a href=\"modules.php?name=Content&pa=showpage&pid=6\"><img border=\"0\" src=\"themes/pd2003/images/buttonrange.jpg\" width=\"100\" height=\"33\"></a>"
."<a href=\"modules.php?name=Downloads\"><img border=\"0\" src=\"themes/pd2003/images/buttondownloads.jpg\" width=\"100\" height=\"33\"></a>"
."<a href=\"modules.php?name=Content&pa=showpage&pid=8\"><img border=\"0\" src=\"themes/pd2003/images/buttonlinks.jpg\" width=\"100\" height=\"33\"></a>"
."<a href=\"modules.php?name=Forums\"><img border=\"0\" src=\"themes/pd2003/images/buttonforums.jpg\" width=\"100\" height=\"33\"></a>"
."<a href=\"modules.php?name=Content&pa=showpage&pid=7\"><img border=\"0\" src=\"themes/pd2003/images/buttonhistory.jpg\" width=\"100\" height=\"33\"></a>"
."<a href=\"modules.php?name=Content&pa=showpage&pid=14\"><img border=\"0\" src=\"themes/pd2003/images/buttonfaults.jpg\" width=\"100\" height=\"33\"></a>"
."<a href=\"modules.php?name=Private_Messages&file=index&folder=inbox\"><img border=\"0\" src=\"themes/pd2003/images/buttonprofile.jpg\" width=\"100\" height=\"33\"></a>";
echo "</td></tr><tr><td width=\"100%\"><table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\"><tr><td bgcolor=\"$bgcolor9\" background=modules.php?name=Private_Messages&file=index&folder=inbox\"themes/pd2003/images/line1.gif\">\n";
$public_msg = public_message();
echo "$public_msg<br>";
echo "</td></tr></table><table width=\"800\" cellpadding=\"0\" bgcolor=\"$bgcolor20\" cellspacing=\"0\" border=\"0\">\n"
."<tr valign=\"top\">\n"
."<td width=\"138\" bgcolor=\"$bgcolor21\" valign=\"top\" background=\"themes/pd2003/images/back1.gif\" width=\"138\">\n";
if ($name=='Forums' || $name=='Private_Messages' || $name=='Your_Account') {
/* Don't display it. */
global $alttext1, $banners, $bgcolor5, $bgcolor6, $bgcolor7, $bgcolor8, $bgcolor9, $bgcolor20, $bgcolor21, $user, $t, $f, $mode, $user, $cookie, $prefix, $db, $user_prefix, $name;
if (!is_user($user)) {
mt_srand ((double)microtime()*1000000);
$maxran = 1000000;
$random_num = mt_rand(0, $maxran);
};
echo "<body bgcolor=\"$bgcolor5\" text=\"#000000\" link=\"0000ff\">"
."<br>";
if ($banners) {
include("banners.php");
echo "<br>";
}
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"2\" bgcolor=\"$bgcolor6\" width=\"800\" align=\"center\">\n"
."<tr><td width=\"100%\">\n"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"800\">\n"
."<tr><td width=\"100%\">\n"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"800\">\n";
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"ffffff\" width=\"800\" align=\"left\">\n"
."<td width=\"100%\" height=\"30\" bgcolor=\"#ffffff\" background=\"themes/pd2003/images/top_login.gif\" width=\"800\" height=\"30\">\n";
echo"<div id=\jmbti_div></div>";
echo "<tr><td width=\"100%\" height=\"80\" bgcolor=\"$bgcolor7\">\n"
."<table border=0 width=100% cellpadding=0 cellspacing=0><tr><td align=\"left\"><a href=\"index.php\"><img border=\"0\" src=\"themes/pd2003/images/logo.jpg\" alt=\"$alttext1\" hspace=\"0\"></a><br></td>\n";
//echo "<table border=0 width=100% cellpadding=0 cellspacing=0><tr><td width=\"100%\"><IFRAME name=iframe src=\"themes/pd2003/menu.html\" frameBorder=0 width=100% height=15 scrolling=no marginwidth=\"0\" marginheight=\"0\"></iframe>";
echo "<tr><td width=\"100%\" bgcolor=\"$bgcolor8\" height=\"33\" valign=\"bottom\">\n"
."<a href=\"index.php\"><img border=\"0\" src=\"themes/pd2003/images/buttonhome1.jpg\" width=\"100\" height=\"33\"></a>"
."<a href=\"modules.php?name=Content&pa=showpage&pid=6\"><img border=\"0\" src=\"themes/pd2003/images/buttonrange.jpg\" width=\"100\" height=\"33\"></a>"
."<a href=\"modules.php?name=Downloads\"><img border=\"0\" src=\"themes/pd2003/images/buttondownloads.jpg\" width=\"100\" height=\"33\"></a>"
."<a href=\"modules.php?name=Content&pa=showpage&pid=8\"><img border=\"0\" src=\"themes/pd2003/images/buttonlinks.jpg\" width=\"100\" height=\"33\"></a>"
."<a href=\"modules.php?name=Forums\"><img border=\"0\" src=\"themes/pd2003/images/buttonforums.jpg\" width=\"100\" height=\"33\"></a>"
."<a href=\"modules.php?name=Content&pa=showpage&pid=7\"><img border=\"0\" src=\"themes/pd2003/images/buttonhistory.jpg\" width=\"100\" height=\"33\"></a>"
."<a href=\"modules.php?name=Content&pa=showpage&pid=14\"><img border=\"0\" src=\"themes/pd2003/images/buttonfaults.jpg\" width=\"100\" height=\"33\"></a>"
."<a href=\"modules.php?name=Private_Messages&file=index&folder=inbox\"><img border=\"0\" src=\"themes/pd2003/images/buttonprofile.jpg\" width=\"100\" height=\"33\"></a>";
echo "</td></tr><tr><td width=\"100%\"><table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\"><tr><td bgcolor=\"$bgcolor9\" background=modules.php?name=Private_Messages&file=index&folder=inbox\"themes/pd2003/images/line1.gif\">\n";
$public_msg = public_message();
echo "$public_msg<br>";
echo "</td></tr></table><table width=\"800\" cellpadding=\"0\" bgcolor=\"$bgcolor20\" cellspacing=\"0\" border=\"0\">\n"
."<tr valign=\"top\">\n"
."<td width=\"138\" bgcolor=\"$bgcolor21\" valign=\"top\" background=\"themes/pd2003/images/back1.gif\" width=\"138\">\n";
if ($name=='Forums' || $name=='Private_Messages' || $name=='Your_Account') {
/* Don't display it. */
This wasn't my theme and the original author has long since left the Nuke community so it be a little odd.
Re: PHPNuke Menu Header
Poster: Ruth
Dated: Tuesday January 29 2008 - 16:53:04 GMT
Hi,
It looks like you have a backslash \ in front of the embed js file call. Try removing that and see what happens.
As to the width problem, that is your images. You have 8 of them, they are 101px wide that = 808px whereas the layout is set at 800px. So, you need to either cut each image 1px or you could try putting in imagewidth=100; into each main menu item, see if that will size it smaller.
Ruth
Re: PHPNuke Menu Header
Poster: Ruth
Dated: Tuesday January 29 2008 - 17:04:49 GMT
And, you have another table error
Code:
<table border=1 bordercolor="#FFCC00" width=100% cellpadding=0 cellspacing=0><tr><td align="left"><a href="index.php"><img border="0" src="logobottom.jpg" alt="The Scenic Forums" hspace="0"></a></td></tr>
<tr><td width="100%"><table width="100%" cellspacing="2" cellpadding="0" border="0"></tr></td> bgcolor="#ffffff" background="line1.gif">
<tr><td width="100%"><table width="100%" cellspacing="2" cellpadding="0" border="0"></tr></td> bgcolor="#ffffff" background="line1.gif">
Look at that second table width="100%" you have closing tr td instead of opening ones.
Re: PHPNuke Menu Header
Poster: walibe
Dated: Tuesday January 29 2008 - 17:15:55 GMT
Can I just recommend to your customers TO NEVER USE PHPNUKE AHHHHHHHHHHHHH. I have no idea how all the images are 101 pixels as they were created at 100 pixels but thats sorted. I'll make those suggestions. I have purchased the first licence for this site and will start putting the other sites together ASAP.
Re: PHPNuke Menu Header
Poster: walibe
Dated: Tuesday January 29 2008 - 17:21:04 GMT
Ruth it is now all sorted. Thanks for your help. I thought the leading backslash would signify the root directory but I guess not then. The help has been much appreciated , and I'll definatly be leaving a Milonic link in my menu even though I now have the professional licence.
If any other users ever need to see my entire theme files (for other PHP installs) they are more than welcome to contact me or post here.Remove all the spaces p j at w a l i b e . c o m
Re: PHPNuke Menu Header
Poster: Ruth
Dated: Friday February 1 2008 - 4:42:41 GMT
Hi,
Just a note, it's a / that is used for the web, the \ is what comes up on the desktop
Ruth