I saw this glodal in resources and tried it. But not working.
==========================================
Create a global called "newlinks" with the following description:
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 5');
$sth = $search_db->select ( { isNew => 'Yes', isValidated => 'Yes' });
while ($link = $sth->fetchrow_hashref) {
$output .= Links::SiteHTML::display ('link1', $link);
}
return $output;
}
The number "5" can be changed to whatever number of new links you want the global to display. Use a <%newlinks%> tag to display a list of your directory's newest links.
=======================================
I am getting this error like link1.html is not found at line 208 SITEHTML.pm. Then i created a file named link1.html. But not working?
What code i have to keep on the home page to get the new links displayed?
Thanks.
==========================================
Create a global called "newlinks" with the following description:
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 5');
$sth = $search_db->select ( { isNew => 'Yes', isValidated => 'Yes' });
while ($link = $sth->fetchrow_hashref) {
$output .= Links::SiteHTML::display ('link1', $link);
}
return $output;
}
The number "5" can be changed to whatever number of new links you want the global to display. Use a <%newlinks%> tag to display a list of your directory's newest links.
=======================================
I am getting this error like link1.html is not found at line 208 SITEHTML.pm. Then i created a file named link1.html. But not working?
What code i have to keep on the home page to get the new links displayed?
Thanks.