My questions are regarding week.module and archive.module.
1. re: week.module
a. Is there a way to specify when the weekly archive can begin? For example, I'd like for the weekly listings to start Jan 2006 when you view the week/node link, but I don't know where the start date is defined.
b. And on that note, is there a way to limit the archive links displayed to only those that actually have results? I'd imagine it's something similar to what archive.module uses to only highlight the calendar dates with content, but I can't figure it out.
I think it may be similar to the days with post code in archive.module:
$days_with_posts = array();
while ($day_with_post = db_fetch_object($result)) {
$daynum = date('j', $day_with_post->created + $user->timezone);
if (isset($days_with_posts[$daynum])) {
$days_with_posts[$daynum]++;
}
else {
$days_with_posts[$daynum] = 1;
}
}
and
$date = mktime(0, 0, 0, $month, $nday, $year) + $user->timezone;
if (isset($days_with_posts[$nday])) {
$daytext = l($nday, "archive/$year/$month/$nday", array("title" => format_plural($days_with_posts[$nday], "1 post", "%count posts")));
$dayclass = 'day-link';
}
else {
$daytext = $nday;
$dayclass = 'day-normal';
}
if ($date == $requested) {
$output .= "
$daytext |
\n";