higherbeats
Forum Replies Created
-
Forum: Plugins
In reply to: show always all posts, past,present and future…irgendwie schläft hier jeder oder mich will keiner mehr gern lesen hier oder es fehlt allen die bildung. dadurch mal die lösung selbst durch mich und meine freunde nun hier gepostet:
Diff:
— classes_old.php 2007-03-28 22:09:15.000000000 +0200
+++ classes.php 2007-03-28 21:59:02.000000000 +0200
@@ -590,14 +590,14 @@$now = gmdate(‘Y-m-d H:i:59’);
//only select past-dated posts, except if a logged in user is viewing a single: then, if they
//can edit the post, we let them through
– if ($pagenow != ‘post.php’ && $pagenow != ‘edit.php’ && !($this->is_single && $user_ID)) {
– $where .= ” AND post_date_gmt <= ‘$now'”;
– $distinct = ‘DISTINCT’;
– }
+ //if ($pagenow != ‘post.php’ && $pagenow != ‘edit.php’ && !($this->is_single && $user_ID)) {
+ // $where .= ” AND post_date_gmt <= ‘$now'”;
+ // $distinct = ‘DISTINCT’;
+ //}if ( $this->is_attachment ) {
$where .= ” AND (post_status = ‘attachment’)”;
} elseif ($this->is_page) {
$where .= ” AND (post_status = ‘static’)”;naja besser ware es so :if ( ($!show_all) && ($pagenow != ‘post.php’ && $pagenow != ‘edit.php’ && !($this->is_single && $user_ID)) )
nun das —-(!show_all) —-steht fuer die config option die es noch nicht gibt die das einfach ausschaltet !show_all -> nicht show_allfunktioniert als workaround perfekt.
wäre toll, wenn ein developper die show all! varibale als globale in den upstream mit übernehmen würdeund:
in wordpress/wp-includes/template-functions-general.php— template-functions-general_old.php 2007-03-28 23:01:55.000000000 +0200
+++ template-functions-general.php 2007-03-28 22:50:41.000000000 +0200
@@ -328,11 +328,11 @@
$add_minutes = intval(60 * (get_settings(‘gmt_offset’) – $add_hours));$now = current_time(‘mysql’);
if ( ‘monthly’ == $type ) {
– $arcresults = $wpdb->get_results(“SELECT DISTINCT YEAR(post_date) ASyear, MONTH(post_date) ASmonth, count(ID) as posts FROM $wpdb->posts WHERE post_date < ‘$now’ AND post_date != ‘0000-00-00 00:00:00’ AND post_status = ‘publish’ GROUP BY YEAR(post_date), MONTH(post_date) ORDER BY post_date DESC” . $limit);
+ $arcresults = $wpdb->get_results(“SELECT DISTINCT YEAR(post_date) ASyear, MONTH(post_date) ASmonth, count(ID) as posts FROM $wpdb->posts WHERE post_date != ‘0000-00-00 00:00:00’ AND post_status = ‘publish’ GROUP BY YEAR(post_date), MONTH(post_date) ORDER BY post_date DESC” . $limit);
if ( $arcresults ) {
$afterafter = $after;
foreach ( $arcresults as $arcresult ) {
$url = get_month_link($arcresult->year, $arcresult->month);
if ( $show_post_count ) {damit das archiv auch mit funktioniert
Forum: Plugins
In reply to: show future postsirgendwie schläft hier jeder oder mich will keiner mehr gern lesen hier oder es fehlt allen die bildung. dadurch mal die lösung selbst durch mich und meine freunde nun hier gepostet:
Diff:
— classes_old.php 2007-03-28 22:09:15.000000000 +0200
+++ classes.php 2007-03-28 21:59:02.000000000 +0200
@@ -590,14 +590,14 @@$now = gmdate(‘Y-m-d H:i:59’);
//only select past-dated posts, except if a logged in user is viewing a single: then, if they
//can edit the post, we let them through
– if ($pagenow != ‘post.php’ && $pagenow != ‘edit.php’ && !($this->is_single && $user_ID)) {
– $where .= ” AND post_date_gmt <= ‘$now'”;
– $distinct = ‘DISTINCT’;
– }
+ //if ($pagenow != ‘post.php’ && $pagenow != ‘edit.php’ && !($this->is_single && $user_ID)) {
+ // $where .= ” AND post_date_gmt <= ‘$now'”;
+ // $distinct = ‘DISTINCT’;
+ //}if ( $this->is_attachment ) {
$where .= ” AND (post_status = ‘attachment’)”;
} elseif ($this->is_page) {
$where .= ” AND (post_status = ‘static’)”;naja besser ware es so :if ( ($!show_all) && ($pagenow != ‘post.php’ && $pagenow != ‘edit.php’ && !($this->is_single && $user_ID)) )
nun das —-(!show_all) —-steht fuer die config option die es noch nicht gibt die das einfach ausschaltet !show_all -> nicht show_allfunktioniert als workaround perfekt.
wäre toll, wenn ein developper die show all! varibale als globale in den upstream mit übernehmen würdeund:
in wordpress/wp-includes/template-functions-general.php— template-functions-general_old.php 2007-03-28 23:01:55.000000000 +0200
+++ template-functions-general.php 2007-03-28 22:50:41.000000000 +0200
@@ -328,11 +328,11 @@
$add_minutes = intval(60 * (get_settings(‘gmt_offset’) – $add_hours));$now = current_time(‘mysql’);
if ( ‘monthly’ == $type ) {
– $arcresults = $wpdb->get_results(“SELECT DISTINCT YEAR(post_date) ASyear, MONTH(post_date) ASmonth, count(ID) as posts FROM $wpdb->posts WHERE post_date < ‘$now’ AND post_date != ‘0000-00-00 00:00:00’ AND post_status = ‘publish’ GROUP BY YEAR(post_date), MONTH(post_date) ORDER BY post_date DESC” . $limit);
+ $arcresults = $wpdb->get_results(“SELECT DISTINCT YEAR(post_date) ASyear, MONTH(post_date) ASmonth, count(ID) as posts FROM $wpdb->posts WHERE post_date != ‘0000-00-00 00:00:00’ AND post_status = ‘publish’ GROUP BY YEAR(post_date), MONTH(post_date) ORDER BY post_date DESC” . $limit);
if ( $arcresults ) {
$afterafter = $after;
foreach ( $arcresults as $arcresult ) {
$url = get_month_link($arcresult->year, $arcresult->month);
if ( $show_post_count ) {damit das archiv auch mit funktioniert
Forum: Plugins
In reply to: show future postshi there, i want to use my wordpesssite as an dates calender like site as well.
and want to see, future,present and past events all at the i same time as last posts or when i choose a category.
i think calendar 3.0 just creates a new category that shows then only all future posts….any news to our problem?