Fatal error: Call to undefined function: () in output_fns.php on line 104
So thats the error and here is:
I can't figure out what the error is pointing too, because the first set of buttons {DisplayForumButtons()} displays properly, but then it outputs right to "Help Links" then it gives the error by the identical function for the help links but only give the paratheses just as in the subject line. I've been looking into the screen all day, so maybe I'm just missing something trivial....but here the code seems just fine. The function I have to display the end of the html doc isn't running then either. I haven't set anything with the $loginforumbuttons array yet, but I've commented it out and it still does the same thing.
Any possible input would be appreciated, as I have gone through it alone for the last [too long] while.
Edit: Fixed, thank you
blueapples
$forumbuttons = array("home" => "home.php",
"read posts" => "readposts.php",
"new post" => "newpost.php",
"current users" => "currentusers.php",
"logout" => "logout.php",
);
$loginforumbuttons = array("login" => "login.php",
);
$helpbuttons = array("site info" => "siteinfo.php",
"help" => "help.php",
"FAQ" => "faq.php",
"contact me" => "contact.php",
);
function DisplayMenu($forumbuttons, $helpbuttons)
{
echo "<p>{All dead links here now}</p>";
echo "<p>Forum Links</p>";
foreach ($forumbuttons as $name => $url)
{
DisplayForumButtons($name, $url, !IsURLCurrentPage($url));
}
echo "<br /><p>Help Links</p>";
foreach ($helpbuttons as $name => $url)
{ <-------this is line 104
DisplayHelpButtons($name, $url, !$IsURLCurrentPage($url));
}
}
function IsURLCurrentPage($url) //determine the current active page
{
global $SCRIPT_NAME;
if (strpos($SCRIPT_NAME, $url )===false)
{
return false;
}
else
{
return true;
}
}
function DisplayForumButtons($name, $url, $active)
{
if ($active)
{
echo "<div><a href=\"$url\">$name</a></div>";
}
else
{
echo "<div id=\"current\">$name</div>";
}
}
function DisplayHelpButtons($name, $url, $active)
{
if ($active)
{
echo "<div><a href=\"$url\">$name</a></div>";
}
else
{
echo "<div id=\"current\">$name</div>";
}
}Any possible input would be appreciated, as I have gone through it alone for the last [too long] while.
Edit: Fixed, thank you
