Having some issues.
When I try to add the hacks to the calendar.php, it is not finding a few of the things you list.
Code:
-------------------------------------------------------------
Find
-------------------------------------------------------------
eval('print_output("' . fetch_template('calendar_edit') . '");');
-------------------------------------------------------------
Replace it with
-------------------------------------------------------------
$useroll = iif($eventinfo['useroll'],"checked","");
eval('print_output("' . fetch_template('calendar_edit') . '");');
-------------------------------------------------------------
Find
-------------------------------------------------------------
$DB_site->query("
UPDATE " . TABLE_PREFIX . "event
SET event = '".addslashes($message) . "',
recurring = '" . addslashes($pattern) . "',
recuroption = '" . addslashes($patoptions) . "',
dateline_from = $dateline_from,
dateline_to = $dateline_to,
title = '" . addslashes($title) . "',
allowsmilies = $allowsmilies,
customfields = '" . addslashes($customfields) . "',
utc = '" . addslashes($timezoneoffset) . "'
WHERE eventid = '$eventid'
");
-------------------------------------------------------------
Replace it with
-------------------------------------------------------------
$DB_site->query("
UPDATE " . TABLE_PREFIX . "event
SET event = '".addslashes($message) . "',
recurring = '" . addslashes($pattern) . "',
recuroption = '" . addslashes($patoptions) . "',
dateline_from = $dateline_from,
dateline_to = $dateline_to,
title = '" . addslashes($title) . "',
allowsmilies = $allowsmilies,
customfields = '" . addslashes($customfields) . "',
utc = '" . addslashes($timezoneoffset) . "',
useroll = '$useroll'
WHERE eventid = '$eventid'
");
-------------------------------------------------------------
Find
-------------------------------------------------------------
if (($show['candeleteevent'] OR $show['canmoveevent'] OR $show['caneditevent']) AND !$show['holiday'])
{
$show['eventoptions'] = true;
}
eval ('$caldaybits .= "' . fetch_template('calendar_showeventsbit') . '";');
-------------------------------------------------------------
Replace it with
-------------------------------------------------------------
if (($show['candeleteevent'] OR $show['canmoveevent'] OR $show['caneditevent']) AND !$show['holiday'])
{
$show['eventoptions'] = true;
}
if ($eventinfo['useroll'])
{
// Roll for this event
$show['userattending'] = false;
if (($roll = @unserialize($eventinfo['roll'])) && is_array($roll))
{
if (array_key_exists($bbuserinfo['userid'], $roll))
{
$show['userattending'] = true;
}
foreach ($roll as $rollusername)
{
eval ('$rollbits .= "' . fetch_template('calendar_rollbit') . '";');
}
}
else
{
$eventinfo['roll'] = "";
}
eval ('$eventinfo[roll] = "' . fetch_template('calendar_roll') . '";');
// End Roll
}
else
{
$eventinfo['roll'] = "";
}
eval ('$caldaybits .= "' . fetch_template('calendar_showeventsbit') . '";');
What am I doing wrong? This file has never been touched before, I am using V 3.0.7.
Any ideas?