well that would be nice but I don't know even where it's even getting the colors from I'll have to look at some of css files and see if I can figure out where the blue is coming from this what the menu block looks like. If you know how to do it give me a hint.
Code:
<?php
/*************************************************************************/
/* phpBB2 Main Menu (Modules Block) for PHP-Nuke 5.6 */
/* 25 July 2002 */
/* By: ThaiNuke (webmaster@thainuke.net) */
/* http://www.thainuke.net */
/* Copyright © 2002 by PHP-Nuke Thailand */
/* Based on the block-Modules */
/*************************************************************************/
if (eregi("block-phpBB2_Main_Menu.php", $PHP_SELF)) {
Header("Location: index.php");
die();
}
global $prefix, $dbi, $admin;
$result = sql_query("select main_module from ".$prefix."_main", $dbi);
list($main_module) = sql_fetch_row($result, $dbi);
$result = sql_query("select title from ".$prefix."_modules", $dbi);
while (list($title) = sql_fetch_row($result, $dbi)) {
$a = 0;
$handle=opendir('modules');
while ($file = readdir($handle)) {
if ($file == $title) {
$a = 1;
}
}
closedir($handle);
if ($a == 0) {
sql_query("delete from ".$prefix."_modules where title='$title'", $dbi);
}
}
/* News */
$content = "<img src=images/blocks/icon_home.gif>"._BMMHOME1." :
\n";
$content .= "<img src=images/blocks/icon_dot.gif><a href=\"index.php\">"._BMMHOME2."</a>[/b]
\n";
$content .= "<img src=images/blocks/icon_dot.gif><a href=\"modules.php?name=Submit_News\">"._BMMSUBMITN."
</a>
\n";
$content .= "<img src=images/blocks/icon_dot.gif><a href=\"modules.php?name=Stories_Archive\">"._BMMARCHIVE."
</a>
\n";
$content .= "<img src=images/blocks/icon_dot.gif><a href=\"modules.php?name=Search\">".Search."</a>
\n";
$content .= "<img src=images/blocks/icon_dot.gif><a href=\"modules.php?name=Topics\">"._BMMTOPIC."</a>
\n";
/* Members */
$content .= "<img src=images/blocks/icon_members.gif>"._BMMMEMBER1." :
\n";
$content .= "<img src=images/blocks/icon_dot.gif><a href=\"modules.php?name=Members_List\">"._BMMMEMBER2."
</a>
\n";
$content .= "<img src=images/blocks/icon_dot.gif><a href=\"modules.php?name=Your_Account\">"._BMMLOGIN."
</a>
\n";
$content .= "<img src=images/blocks/icon_dot.gif><a href=\"modules.php?name=Private_Messages\">"._BMMPM."
</a>
\n";
/* Community */
$content .= "<img src=images/blocks/icon_community.gif>"._BMMCOM." :
\n";
$content .= "<img src=images/blocks/icon_dot.gif><a href=\"modules.php?name=Forums\">"._BMMFORUM."</a>
\n";
$content .= "<img src=images/blocks/icon_dot.gif><a href=\"modules.php?name=Feedback\">"._BMMFEEDBACK."
</a>
\n";
$content .= "<img src=images/blocks/icon_dot.gif><a href=\"modules.php?name=Recommend_Us\">"._BMMREC."
</a>
\n";
$content .= "<img src=images/blocks/icon_dot.gif><a href=\"modules.php?name=gallery\">".Gallery."</a>
\n";
/* Web Link */
$content .= "<img src=images/blocks/icon_links.gif><a href=\"modules.php?name=Web_Links\">"._BMMLINK."</a>
\n";
$content .= "<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0>\n";
$content .= "<TR><FORM METHOD=GET ACTION=\"modules.php\">\n";
$content .= "<TD><img src=images/blocks/icon_select.gif><SELECT NAME=\"name\" CLASS=\"boxcontent\" onChange=\"top.location.href=this.options[this.selectedIndex].value\"
>\n";
$content .= "<OPTION VALUE=\"\">"._BMMSELECT."";
$content .= "<OPTION VALUE=\"modules.php?name=Web_Links&file=index
&l_op=AddLink\">"._BMMADDL."\n";
$content .= "<OPTION VALUE=\"modules.php?name=Web_Links&file=index&l_op=MostPopular
\">"._BMMPOP."\n";
$content .= "<OPTION VALUE=\"modules.php?name=Web_Links&
l_op=TopRated\">"._BMMRATE."\n";
$content .= "</select></td></tr></form></table>";
/* Downloads */
$content .= "<img src=images/blocks/icon_downloads.gif><a href=\"modules.php?name=Downloads\">"._BMMDOWNLOAD."</a>
\n";
$content .= "<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0>\n";
$content .= "<TR><FORM METHOD=GET ACTION=\"modules.php\">\n";
$content .= "<TD><img src=images/blocks/icon_select.gif><SELECT NAME=\"name\" CLASS=\"boxcontent\" onChange=\"top.location.href=this.options[this.selectedIndex].value\"
>\n";
$content .= "<OPTION VALUE=\"\">"._BMMSELECT."";
$content .= "<OPTION VALUE=\"modules.php?name=Downloads&file=index&
d_op=AddDownload\">"._BMMADDD."\n";
$content .= "<OPTION VALUE=\"modules.php?name=Downloads&file=index&d_op=MostPopular
\">"._BMMPOP."\n";
$content .= "<OPTION VALUE=\"modules.php?name=Downloads&file=index&d_op=TopRated\">"._BMMRATE.
"\n";
$content .= "</select></td></tr></form></table>";
/* Stats */
$content .= "<img src=images/blocks/icon_poll.gif>"._BMMSTAT1." :
\n";
$content .= "<img src=images/blocks/icon_dot.gif><a href=\"modules.php?name=Statistics\">"._BMMSTAT2."</a>
\n";
$content .= "<img src=images/blocks/icon_dot.gif><a href=\"modules.php?name=Top\">"._BMMTOP."</a>
\n";
$content .= "<img src=images/blocks/icon_dot.gif><a href=\"modules.php?name=Surveys\">"._BMMPOLL."</a>
\n";
/* Documentations */
$content .= "<img src=images/blocks/icon_help.gif>"._BMMDOC." :
\n";
$content .= "<img src=images/blocks/icon_dot.gif><a href=\"modules.php?name=Sections\">"._BMMSECTION."</a>
\n";
$content .= "<img src=images/blocks/icon_dot.gif><a href=\"modules.php?name=Content\">"._BMMCONTENT."</a>
\n";
$content .= "<img src=images/blocks/icon_dot.gif><a href=\"modules.php?name=FAQ\">"._BMMFAQ."</a>
\n";
$content .= "<img src=images/blocks/icon_dot.gif><a href=\"modules.php?name=Reviews\">"._BMMREVIEW."</a>
\n";
$content .= "<img src=images/blocks/icon_dot.gif><a href=\"modules.php?name=Encyclopedia\">"._BMMDIC."</a>
\n";
/* DC stats */
$content .= "<img src=images/blocks/icon_modules.gif>"._DCSTATS.":
\n";
$content .= "<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0>\n";
$content .= "<TR><FORM METHOD=GET ACTION=\"modules.php\">\n";
$content .= "<TD><img src=images/blocks/icon_select.gif><SELECT NAME=\"name\" CLASS=\"boxcontent\" onChange=\"top.location.href=this.options[this.selectedIndex].value\
">\n";
$content .= "<OPTION VALUE=\"\">"._BMMSELECT."";
$content .= "<OPTION VALUE=\"http://stats.free-dc.org/muon1\">".Dpad."\n";
$content .= "<OPTION VALUE=\"http://teamstats.macnn.com/d2ol/stats.php?TID=528&page
=b1\">".D20L."\n";
$content .= "<OPTION VALUE=\"http://statsman.ww-testsites.co.uk/distfoldingstats/528.html\">
".DF."\n";
$content .= "<OPTION VALUE=\"http://lifemapper.dbestern.net/cgi-bin/render-teams.cgi\"
>".LM."\n";
$content .= "<OPTION VALUE=\"http://mag.chessbrainstats.com/team.php?team=59\">".CB."\n";
$content .= "<OPTION VALUE=\"http://statsman.ww-testsites.co.uk/folding2stats/13129.html\"
>".FAH."\n";
$content .= "<OPTION VALUE=\"http://stats.open-dc.org/eon/stats.html\">".EON."\n";
$content .= "<OPTION VALUE=\"http://stats.free-dc.org/climateprediction/team.php?team=323\">".CLIMATE."\n";
$content .= "<OPTION VALUE=\"http://marcc.no-ip.org/sob/Team.php?Team_ID=83\">".SOB.
"\n";
$content .= "<OPTION VALUE=\"http://vadp.com/index.php?lang=2&id=6136481&user=\">".TSC."\n";
$content .= "<OPTION VALUE=\"http://www.setiathome.ssl.berkeley.edu/stats/team/team_316
.html\">".Seti."\n";
$content .= "<OPTION VALUE=\"http://stats.distributed.net/team/tmsummary.php?project_id
=8&team=940186047\
">".DNET."\n";
$content .= "</select></td></tr></form></table>";
/* For Admin */
if (is_admin($admin)) {
$handle=opendir('modules');
while ($file = readdir($handle)) {
if ( (!ereg("[.]",$file)) ) {
$modlist .= "$file ";
}
}
closedir($handle);
$modlist = explode(" ", $modlist);
sort($modlist);
for ($i=0; $i < sizeof($modlist); $i++) {
if($modlist[$i] != "") {
$result = sql_query("select mid from ".$prefix."_modules
where title='$modlist[$i]'", $dbi);
list ($mid) = sql_fetch_row($result, $dbi);
if ($mid == "") {
sql_query("insert into ".$prefix."_modules values (NULL, '$modlist[$i]', '$modlist[$i]', '0', '0')", $dbi);
}
}
}
$content .= "
<center><img src=images/blocks/icon_modules.gif>"._NOACTIVEMODULES
.":
";
$content .= "<font class=\"tiny\">"._FORADMINTESTS."</font>
";
$content .= "<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><FORM METHOD=GET ACTION=\"modules.php\"><TD><img src=images/blocks/icon_select.gif><SELECT NAME=\"name\" CLASS=\"boxcontent\" onChange=\"submit()\"><OPTION VALUE=\"\">"._BMMSELECT."";
$result = sql_query("select title, custom_title from ".$prefix."_modules where active='0' ORDER BY title ASC", $dbi);
while(list($mn_title, $custom_title) = sql_fetch_row($result, $dbi)) {
$mn_title2 = ereg_replace("_", " ", $mn_title);
if ($custom_title != "") {
$mn_title2 = $custom_title;
}
$content .= "<OPTION VALUE=\"$mn_title\">$mn_title2\n";
$a = 1;
}
if ($a != 1) {
$content .= "<OPTION VALUE=\"\">"._NONE."\n";
}
$content .= "</select></td></tr></form></table>";
}
?>