Ryan,
You didn't say whether you were using Links 1 or 2. Here is something you can try using Links v1 and should be easily modified to use with Links v2. In site_html.pl:
Quote:
sub site_html_link {
# --------------------------------------------------------
# This routine is used to display what a link should look
# like. It's a little complex looking just because we have to
# check for blank entries..
my (%rec) = @_;
my $enddate = int(&date_to_unix($rec{$db_enddate}));
my $cutoff = int(&date_to_unix($date));
# Ouput the link only if it is equal to or greater than today's date. Otherwise,
# it has expired.
if ($endate => $cutoff) { $output = qq|
<ul type=disc><li><$font><a href="$build_jump_url?$db_key=$rec{$db_key}">$rec{'Title'}</a></font>|;
if ($rec{'Description'}) { $output .= qq| <$font>- $rec{'Description'}</font>\n|; }
if ($rec{'isNew'} eq "Yes") { $output .= qq| <$font_new><i><b>new</b></i></font>|; }
if ($rec{'isPopular'} eq "Yes") { $output .= qq| <$font_pop><i><b>pop</b></i></font>|; }
$output .= qq| <$font_date><em>(Added: $rec{'Date'} Hits: $rec{'Hits'})</em></font><br>
</ul>
|;
}
else {
$output = "";
}
return $output;
}
I am not exactly sure if this works because I haven't tested it, but it looks right to me. If anyone sees any error in this, please speak up.
I hope this helps.
------------------
Bob Connors
bobsie@orphanage.com www.orphanage.com/goodstuff/ goodstufflists.home.ml.org/ [This message has been edited by Bobsie (edited February 14, 1999).]
[This message has been edited by Bobsie (edited February 14, 1999).]