Gossamer Forum
Home : Products : Links 2.0 : Installation -- Unix :

Only 1 new link showing

Quote Reply
Only 1 new link showing
Hi,

I'm having trouble getting the new links to show, I seem to only be able to get one of them to appear.

On the date page it says there are 62 new links
http://www.centrefolds.co.uk/site/New/

And also on the actual listing page
http://www.centrefolds.co.uk/site/New/2-Mar-2001.html

but only one of them is showing. I'm not too sure where the problem could be so I've inluding a big chuck of me nph-build.cgi page in the hope it's in there somewhere:

# Then we go through each date, and build the links for that date. If we are spanning
# pages, we will create a seperate page for each date and need to set up a few other
# variables (like title and total). We will also want to reset links_results each time.
DATE: foreach $date (sort { &date_to_unix($b) <=> &date_to_unix($a) } keys %link_output) {
$long_date = &long_date ($date);
if ($build_span_pages) {
$link_results = "";
$total = $span_totals{$date};
$title_linked = &build_linked_title ("New/$date");
}
else {
$link_results .= "<p><strong>$long_date</strong>\n<blockquote>";
}
CATEGORY: foreach $category (sort keys %{$link_output{$date}}) {
$category_clean = &build_clean ($category);
$link_results = qq|<P><FONT face="Verdana, Arial, Helvetica, sans-serif" size="2"><B><A class=links HREF="$build_root_url/$category/$build_index">$category_clean</A><BR>\n|;
$link_results .= ${$link_output{$date}}{$category};
}

# Crete the new page, and do a bit of HTML work for the main page.
if ($build_span_pages) {
open (NEW, ">$build_new_path/$date$build_extension") or cgierr ("unable to open what's new page: $build_new_path/$build_index. Reason: $!");
$use_html ?
print qq|\tNew Links for <FONT face="Verdana, Arial, Helvetica, sans-serif" size="2"><B><a class=links href="$build_new_url/$date$build_extension" TARGET="_blank">$date</a>: $total\n| :
print qq|\tNew Links for $date: $total\n|;
print NEW &site_html_new;
close NEW;
$main_link_results .= qq|<FONT face="Verdana, Arial, Helvetica, sans-serif" size="2"><B><a class=links href="$build_new_url/$date$build_extension">$long_date</a> ($total).|;
$main_total += $total;
}
else {
$link_results .= "</blockquote>";
}
}

if ($build_span_pages) {
$link_results = "<ul>$main_link_results</ul>";
$total = $main_total;
}
$title_linked = &build_linked_title ("New");

# Build the main What's New page.
open (NEW, ">$build_new_path/$build_index") or cgierr ("unable to open what's new page: $build_new_path/$build_index. Reason: $!");
print "\tTotal New Links: $total\n";
print NEW &site_html_new(@new_links);
close NEW;
}

If anyone can help I'd appriciate it :-)

Subject Author Views Date
Thread Only 1 new link showing john8778 2491 Mar 2, 2001, 1:40 PM
Thread Re: Only 1 new link showing
Stealth 2459 Mar 2, 2001, 3:57 PM
Thread Re: Only 1 new link showing
john8778 2423 Mar 2, 2001, 5:27 PM
Thread Re: Only 1 new link showing
Stealth 2443 Mar 2, 2001, 6:05 PM
Post Re: Only 1 new link showing
john8778 2419 Mar 4, 2001, 10:57 AM