Eliot,
Thanks for your reply.
I tried the first suggestion and received a error:Undefined subroutine &Links::HTML_Templates::load_links_template called at Links/HTML_Templates.pm line
Does this look right?
# Figure out how many days old it is if it's a new link.
if ($LINKS{build_days_old}) {
if ($rec->{'isNew'}) {
$rec->{'Days_Old'} = &Links::DBSQL::date_diff (&Links::DBSQL::get_date(), $rec->{'Add_Date'});
}
else { $rec->{'Days_Old'} = ''; }
}
my $user = {};
defined $dynamic and &load_user ($dynamic, $user, $rec->{CategoryID});
if ($rec->{'CategoryID'} eq '19') {
$template = "link2.html";
}
else {
$template = "link.html";
}
my $output = &load_links_template ($template, {
detailed_url => "$LINKS{build_detail_url}/$rec->{'ID'}$LINKS{build_extension}",
%$rec,
%$user,
%GLOBALS
}, undef, $template);
# Don't clean output on a single link.
return $output;
}
Thanks for your reply.
I tried the first suggestion and received a error:Undefined subroutine &Links::HTML_Templates::load_links_template called at Links/HTML_Templates.pm line
Does this look right?
# Figure out how many days old it is if it's a new link.
if ($LINKS{build_days_old}) {
if ($rec->{'isNew'}) {
$rec->{'Days_Old'} = &Links::DBSQL::date_diff (&Links::DBSQL::get_date(), $rec->{'Add_Date'});
}
else { $rec->{'Days_Old'} = ''; }
}
my $user = {};
defined $dynamic and &load_user ($dynamic, $user, $rec->{CategoryID});
if ($rec->{'CategoryID'} eq '19') {
$template = "link2.html";
}
else {
$template = "link.html";
}
my $output = &load_links_template ($template, {
detailed_url => "$LINKS{build_detail_url}/$rec->{'ID'}$LINKS{build_extension}",
%$rec,
%$user,
%GLOBALS
}, undef, $template);
# Don't clean output on a single link.
return $output;
}