I have updated the "3 Level of New Graphics" mod listed at www.gossamer-threads.com/scripts/resources/Links/Modifications/Version_2.x/ once again.
This update fixes the "What's New" page of Links to use the DateAdded field when building that page (instead of 'Date'). The new code is step 6.d. in the instructions. Both the "UPDATED" stand alone instructions and the "UPDATED" with 3-level "NEW" instructions have the new code.
For those of you who have already installed one of these mods, the changes are:
nph-build.cgi, sub build_new_page
Change:
LINK: for ($i = 0; $i < ($#{$new_links{$category}}+1) / ($#db_cols + 1); $i++) {
$total++;
%tmp = &array_to_hash ($i, @{$new_links{$category}});
${$link_output{$tmp{'Date'}}}{$category} .= &site_html_link (%tmp) . "\n";
$span_totals{$tmp{'Date'}}++;
}
}
To Read:
LINK: for ($i = 0; $i < ($#{$new_links{$category}}+1) / ($#db_cols + 1); $i++) {
$total++;
%tmp = &array_to_hash ($i, @{$new_links{$category}});
${$link_output{$tmp{'DateAdded'}}}{$category} .= &site_html_link (%tmp) . "\n";
$span_totals{$tmp{'DateAdded'}}++;
}
}
Somehow, I just didn't include this with the original instructions. My apologies.
[This message has been edited by Bobsie (edited June 01, 1999).]
This update fixes the "What's New" page of Links to use the DateAdded field when building that page (instead of 'Date'). The new code is step 6.d. in the instructions. Both the "UPDATED" stand alone instructions and the "UPDATED" with 3-level "NEW" instructions have the new code.
For those of you who have already installed one of these mods, the changes are:
nph-build.cgi, sub build_new_page
Change:
Code:
CATEGORY: foreach $category (sort keys %new_links) { LINK: for ($i = 0; $i < ($#{$new_links{$category}}+1) / ($#db_cols + 1); $i++) {
$total++;
%tmp = &array_to_hash ($i, @{$new_links{$category}});
${$link_output{$tmp{'Date'}}}{$category} .= &site_html_link (%tmp) . "\n";
$span_totals{$tmp{'Date'}}++;
}
}
To Read:
Code:
CATEGORY: foreach $category (sort keys %new_links) { LINK: for ($i = 0; $i < ($#{$new_links{$category}}+1) / ($#db_cols + 1); $i++) {
$total++;
%tmp = &array_to_hash ($i, @{$new_links{$category}});
${$link_output{$tmp{'DateAdded'}}}{$category} .= &site_html_link (%tmp) . "\n";
$span_totals{$tmp{'DateAdded'}}++;
}
}
Somehow, I just didn't include this with the original instructions. My apologies.
[This message has been edited by Bobsie (edited June 01, 1999).]