Thank you for creating this great module.

What would be your recommendation for removing the count after the month. Right now the Arcive will read "April 2008 (3)", and I need to remove the (3).

Thanks in advance for your help!
Adam

Comments

primalmedia’s picture

Title: Best way to remove count (#) from Archive links » Best way to remove count (#) from Monthly Archive links
dean.p’s picture

Hi, the way I did it was to just edit these two lines in the month.module file

Replace

$block_content[] = l(t(date('F',$month_start))." ".date('Y',$month_start).' ('.$month->nodenum.')', 'month/'.date('Y/m',$month_start));

with 

$block_content[] = l(t(date('F',$month_start))." ".date('Y',$month_start), 'month/'.date('Y/m',$month_start));

and

$linklist[] = l(t(date('F', $month_start)) . ' ' . date('Y', $month_start) . ' (' . $month->nodenum .')', 'month/' . date('Y/m', $month_start));

with

$linklist[] = l(t(date('F', $month_start)) . ' ' . date('Y', $month_start), 'month/' . date('Y/m', $month_start));

Save the file and upload it replacing your existing month.module file. I think best practice is to store modules in "sites/all/modules", but any you edit or customise yourself, put in "sites/default/modules".

Later,

Sack.