Immer der Reihe nach...
Als erstes: Besorg' dir einen ordentlichen Texteditor, falls du noch keinen hast.
Wegen Punkt 5...Öffne die Datei wp-includes/classes.php.
Suche dort die den Codeabschnitt
if (mysql2date('U', $this->posts[0]->post_date_gmt)
Bei WP 2.0.2 ist es Zeile 678.
Und unter dem Abschnitt
} else {
if (mysql2date('U', $this->posts[0]->post_date_gmt) > mysql2date('U', $now)) { //it's future dated
$this->is_preview = true;
fügst du folgendes ein:
/* DIRTY FUTURE-POSTS HACK FOR EC3 */
if (function_exists('ec3_get_calendar')) {
global $ec3;
$ec3_post_0_is_event = intval($wpdb->get_var(
"SELECT COUNT(0) FROM $wpdb->post2cat WHERE post_id="
.$this->posts[0]->ID." AND category_id=$ec3->event_category"));
if ($ec3_post_0_is_event) {
$this->is_preview = false;
}
}
if ($this->is_preview)
/* DIRTY FUTURE-POSTS HACK FOR EC3 */
Alles anzeigen
So dass es so aussieht:
} else {
if (mysql2date('U', $this->posts[0]->post_date_gmt) > mysql2date('U', $now)) { //it's future dated
$this->is_preview = true;
/* DIRTY FUTURE-POSTS HACK FOR EC3 */
if (function_exists('ec3_get_calendar')) {
global $ec3;
$ec3_post_0_is_event = intval($wpdb->get_var(
"SELECT COUNT(0) FROM $wpdb->post2cat WHERE post_id="
.$this->posts[0]->ID." AND category_id=$ec3->event_category"));
if ($ec3_post_0_is_event) {
$this->is_preview = false;
}
}
if ($this->is_preview)
/* DIRTY FUTURE-POSTS HACK FOR EC3 */
if (!current_user_can('edit_post', $this->posts[0]->ID)) {
$this->posts = array ( );
}
Alles anzeigen
Und wie man Termine hinzufügt - RTFM;)
Zitat
Choose one Wordpress category as the 'event' category, and then add posts for
dates in the future.
An event post is a normal blog post that is assigned to the 'Event' category.
In order to set the date, you need to go to the 'Advanced' editing screen and
scroll down until you find the 'Edit time:' field. Select the 'Edit timestamp'
checkbox, set the date and time of your event and click 'Save'. These controls
are only available if your user level is **5 or higher**.
Sprich: Es ist, als würdest du einen normalen Eintrag erstellen. Nur mit dem Unterschied dass du ihn in die Kategorie einträgst in der deine Termine stehen und auf die Eventcalendar zugreifst. Den Datumsstempel änderst du auf die Daten des Termins.