Gossamer Forum
Home : Products : Links 2.0 : Customization :

3-Level "New" and "Updated" Mods Upgraded

Quote Reply
3-Level "New" and "Updated" Mods Upgraded
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:

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).]
Quote Reply
Re: 3-Level "New" and "Updated" Mods Upgraded In reply to
The highest compliment I can give is that it worked perfectly the first time.

May I make one very minor suggestion that your instructions also include upgrading from the previous iteration of the mod. I was able to refer to a previous set of instructions that I printed out to interprolate where you were replacing code that was previously replaced.

[This message has been edited by oldmoney (edited June 01, 1999).]
Quote Reply
Re: 3-Level "New" and "Updated" Mods Upgraded In reply to
I didn't do that here because that part of the mod wasn't there before, so there was no old code to show. I will keep that in mind for future changes, though. Thanks for the input.