Mister,
What is the purpose of this code:
Code:
if ($caltitlelength != 0 and isset($caltitlelength)!=0)
{
if (strlen($eventsubject) > $caltitlelength)
{
$eventsubject = subst($eventsubject,0,$caltitlelength) . "...";
}
}
I can't see that $caltitlelength is ever given a value. Is it set in another php file? If so what file?
Also, Im close to finishing my mod to this hack. I have successfully combined member's birthdays to upcoming events using a SQL UNION query. I am going to add the following options to the User CP: "Display Today's Events on Home Page: (Checkbox: Yes/No)", "Display Upcoming Events: (no, one week, two weeks, one month)". These settings will be used to determine if/what to display on the main page. Still trying to make the substr function work.
Anyone have any ideas why it is NOT removing the trailing commas? Is it working for anyone else?
Thanks,
Kyrnel