Hi, I've tried "Dump" and found Add_Date and Add_Date1 Add_Date was an empty line but in Add_Date1 was the date ... To answer the question: YES Add_Date is available (but empty ...) and yes, the field is in the DB and with content in it. Then I've searched the forum and found that maybe the Days Old-Plugin is responsible for that. I've uninstalled it. Now add_date1 is away but add_date isn't working and "Dump" shows an empty line, either in dynamic new, search and cool and in the static-version of theses pages. In the category-pages it works fine. It should have something to do with the way how cool, search and new are build. Maybe there's an influence from one global which I use to display newest links:
Code:
sub {
# Displays the newest links on the home page.
my ($output,$sth,$link);
my $search_db = $DB->table('Links');
$search_db->select_options ('ORDER BY Add_Date DESC Limit 10');
$sth = $search_db->select ( { isValidated => 'Yes' });
while ($link = $sth->fetchrow_hashref) {
if (length $link->{Title} > 50) {
$link->{Title} = substr($link->{Title}, 0, 50) . '...';
}
$output .= Links::SiteHTML::display ('new_links', $link);
}
return $output;
}
I display it with this template:
Code:
<li class="linkliste">
<a class="noline" href="<%db_cgi_url%>/detail_page.cgi?ID=<%ID%>"><%Title%></a>
<br class="half">
<span class="greytext">-> Seit: <%GT::Date::date_transform($Add_Date, '%yyyy%-%mm%-%dd%', '%dd%.%mm%.%yyyy%')%></span>
</li>
There the date is displayed correct.
Kai ___________________________________________
http://www.westalgarve.de http://www.portugalforum.org http://www.portugal-links.de ___________________________________________
http://www.westalgarve.de http://www.portugalforum.org http://www.portugal-links.de