Hallo,
ich such jetzt wirklich schon ewig, vielleicht steh (sitz) ich auch auf der Leitung. Aber langsam dreh ich hier am Rad, finde keine Lösung... ;-)
Mein Problem ist folgendes. Ich möchte Eventcalendar 3.0 in Wordpress 2.2 installieren. Soweit so gut. In der Installationsanleitung steht was vom Hack, den ich im WP_include, classes reinmachen muß. OK. Versteh ich auch alles. Nur leider kann ich den Abschnitt nicht finden, der dort beschrieben ist.
Läuft der Eventcalender überhaupt auf 2.2? Oder bin ich wirklich schon betriebsblind???
Hier die Installationsanleitung für das Hack:
ZitatAlles anzeigenONLY FOR WORDPRESS v2.0+: Patch the file wp-includes/classes.php by adding
lines as below. Add the lines starting with '+', but don't include the '+'
itself:--- wp-includes/classes.php
+++ wp-includes/classes.php
@@ -661,6 +661,18 @@
} 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 ( );
}
LG
Dina