Ok update all done Having one small problem look at script below you will see it needs to pull from 3 templates. The way the script is now its using the private event for both itself and also for the chat event. This mainly has to do with text color, Can someone tell me how to fix this. I have template for private setup for #880000 and chat event template setup for #669933 but text for both showup as #880000. Public event is setup for #000088 and it works right. I have narrowed it down to this part of calendar.php Hopefully someone can see the problem.
PHP Code:
$eventid = $event[eventid];
if ($event[public] == 1) // Public Event
{
eval ("\$userevents .= \"".gettemplate("calendar_publicevent")."\";");
}
elseif ($event[public] == 1) // Chat Event
{
eval ("\$userevents .= \"".gettemplate("calendar_chatevent")."\";");
}
else // Private Event
{
eval ("\$userevents .= \"".gettemplate("calendar_privateevent")."\";");
}
}
}
}