Great
This is what I was looking for...
But I can't seem to add the calendar statement in the right place... because if I do, then it cuts out the profile and admin buttons from the administrator (me!).
I stuck it before and after the guest login/register statement...and that created my problem.
What else can I change to enable that calendar button to always be visible whether logged in or out, admin or guests??
This is what I currently have...
Quoteif ($modSettings['disableCaching'] == 1)
{
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
}
$yymenu = "<a href=\"$scripturl\">$img[home]</a>
$menusep<a href=\"$helpfile\" target=\"_blank\">$img[help]</a>
$menusep<a href=\"$cgi;action=search\">$img[search]</a>";
if ($settings[7] == 'Administrator')
$yymenu .= "$menusep<a href=\"$cgi;action=admin\">$img[admin]</a>";
if ($username == 'Guest')
$yymenu .= "$menusep<a href=\"$cgi;action=login\">$img[login]</a>
$menusep<a href=\"$cgi;action=register\">$img[register]</a>";
else
{
$euser = urlencode($username);
$yymenu .= "$menusep<a href=\"$cgi;action=profile;user=$euser\">$img[profile]</a>";
if ($enable_notification)
$yymenu .= "$menusep<a href=\"$cgi;action=shownotify\">$img[notification]</a>";
if ($modSettings['cal_enabled'] == 1)
$yymenu .= "$menusep<a href=\"$scripturl?action=calendar\">$img[calendar]</a>";
$yymenu .= "$menusep<a href=\"$cgi;action=logout;sesc=" . session_id() . "\">$img[logout]</a>";
}