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 :-)

Quote Reply
Re: Only 1 new link showing In reply to
How many days did you configure for the $db_new_cutoff variable in the links.cfg file?

If you have NOT added any links within that day period, then, of course, those "new" links would no longer considered to be new.

Got it?

Regards,

Eliot Lee
Quote Reply
Re: Only 1 new link showing In reply to
I've got it set to 7. I added all the 62 links on the same day so only one showing up does seem strange. If you have any idea about where the problem is, tell me and I'll post up the cgi code I'm using.

John

Quote Reply
Re: Only 1 new link showing In reply to
In Reply To:
I'll post up the cgi code I'm using.
Not necessary unless you have applied modifications to the default installation of LINKS.

Regards,

Eliot Lee
Quote Reply
Re: Only 1 new link showing In reply to
I haven't used any mods although I have done quite a bit of customizing and I'm assuming I've changed a bit of code that I shouldn't have. I'm not too sure where the code is that deals with the new links so if you need any code posted please tell me :-)

Thanks

John