Project:Archive
Version:6.x-1.3
Component:Block
Category:bug report
Priority:critical
Assigned:cakka
Status:closed (duplicate)

Issue Summary

Hi, i have select blog entry for archive list but in block it was display the number all of nodes.
This is the block content :

---------------------------------------

* January, 2009 (4)
* February, 2009 (33)
* March, 2009 (8)
* April, 2009 (55)
* May, 2009 (38)
* June, 2009 (13)
* July, 2009 (46)
* August, 2009 (6)

---------------------------------------

Node blog is created from August, but in this block it started from January.
And the number of blog node is only 6 .

How to fix this ?
Thanks

Comments

#1

Any ideas for this ?
Are this module is ready to used ?
Thanks

#2

Status:active» closed (won't fix)

Is this still necesarry? You can try the 'Archive: month list' block for this.

#3

#4

Status:closed (won't fix)» active

"Archive: month list" block display counter of all nodes under each month but not of types which i selected in "Archive" module configuration.
I found that problem is with archive_month_list function on line 212:

$node_query = db_query(db_rewrite_sql('SELECT n.created FROM {node} n WHERE n.status = 1 AND DATE(FROM_UNIXTIME(n.created)) BETWEEN DATE_SUB(CURDATE(), INTERVAL 6 MONTH) AND CURDATE() ORDER BY n.created DESC'));

As you can see from this query it return all nodes from your site.

I think that this is critical bug and should be fixed.

#5

Status:active» closed (duplicate)

Sorry, I miss already opened issue "Count incorrect"