wie weit
Verfasst: 27.05.2008 21:11
wollte mal anfragen, wie weit du bist? 2wochen sind ja vorbei ... 

phpBB.de - Die deutsche phpBB-Community
https://www.phpbb.de/community/
Da hast du recht gehabt!Ich vermute, du hast da
Code:
include($phpbb_root_path . 'calendar/cronjob.' . $phpEx);
anstelle von
Code:
require($phpbb_root_path . 'calendar/common.' . $phpEx);
stehen gelassen...
Sehr geehrter Herr ,
der installierte Cronjob Ihres Paketes 123456789 'Domainserver' lieferte folgende Meldung(en) zurueck:
--
EntwurfInbox GesendetWichtig
Code: Alles auswählen
$sql = 'INSERT INTO ' . CALENDAR_USER_DATE_TABLE . '
(user_id,
event_id,
dmY)
VALUES
(' . $user->id . ',
' . $this->id . ",
'" . $this->day->get_dmY() . "')";
$GLOBALS['db']->sql_query($sql);
Code: Alles auswählen
$sql = 'INSERT INTO ' . CALENDAR_USER_DATE_TABLE . '
(user_id,
event_id,
dmY,
attendance_comment)
VALUES
(' . $user->id . ',
' . $this->id . ",
'" . $this->day->get_dmY() . "',
'')";
$GLOBALS['db']->sql_query($sql);
Code: Alles auswählen
$sql = 'INSERT INTO ' . CALENDAR_EVENTS_TABLE . '
(author)
VALUES
('.$user->id.')';
$GLOBALS['db']->sql_query($sql);
Code: Alles auswählen
$sql = 'INSERT INTO ' . CALENDAR_EVENTS_TABLE . '
(author,
desc_text)
VALUES
('.$user->id.",
'')";
$GLOBALS['db']->sql_query($sql);
Code: Alles auswählen
include($phpbb_root_path.'calendar/inc.notify.'.$phpEx);
Code: Alles auswählen
return true;
Code: Alles auswählen
foreach (cal_users::$users as $_user)
{
echo "<br />\n".$_user->name.": <br />\n";
if (!$_user->notify_mode)
{
continue;
}
$day = cal_days::get_day_by_time($now + $_user->notify_days * 86400);
echo $day->get_dmY()."<br />\n";
if ($dates = $day->get_dates())
{
$date_num = 0;
$_dates = $_dates_bbc = array();
foreach ($dates as $date)
{
echo "+ ".$date->name."<br />\n";
if (!$_user->is_invited_to_date($date))
{
continue;
}
if (!$_user->gets_notified_of_date($date))
{
continue;
}
echo "| - notify<br />\n";
++$date_num;
$_dates[] = '* "' . $date->name . '"'."\n"
. '<' . $date->url->get_built(false, true) . '>';
$_dates_bbc[] = '[*]"[url=' . $date->url->get_built(false, true) . ']' . $date->name . '[/url]"';
}
if (!$date_num)
{
continue;
}
$vars = array(
'DATES' => implode("\n\n", $_dates),
'DATES_BBC' => '[list]' . implode("\n", $_dates_bbc) . '[/list]',
'NOTIFY_DAYS' => $_user->notify_days,
'NOTIFY_DAY' => $day->get_format($_user->day_format)
);
cal_notify::add_msg($_user, 'notify', $vars, false);
echo "notify user<br />\n";
}
}
Code: Alles auswählen
if (cal_config::$last_cronjob == $today_dmY)
{
return false;
}
cal_config::set('last_cronjob', $today_dmY);
Code: Alles auswählen
/*
if (cal_config::$last_cronjob == $today_dmY)
{
return false;
}
cal_config::set('last_cronjob', $today_dmY);
*/
Danke Dir, jetzt kann ich Termine eingeben.BB-BF-BM hat geschrieben:Zunächst die Änderungen wegen "Field '*' doesn't have a default value":
Code: Alles auswählen
ALTER TABLE `phpbb3_cal_user_date_data` CHANGE `notify` `notify` TINYINT( 1 ) NOT NULL DEFAULT '0',
CHANGE `attendance_mode` `attendance_mode` TINYINT( 1 ) NOT NULL DEFAULT '0'
Das Symbol hat bei mir leider keine Wirkung.BB-BF-BM hat geschrieben: Hallo hausmann!
Geburtstage sollten eigentlich standardmäßig angezeigt werden. Sie werden mit dem Symbol [ externes Bild ] gekennzeichnet.
Danke Dir, es klappt.BB-BF-BM hat geschrieben:Dieser SQL-Code dürfte auf die Schnelle das Problem beheben.