Gossamer Forum
Home : Products : Gossamer Links : Discussions :

newest links added question

Quote Reply
newest links added question
Hi
i am using the following sub to display the newest 5 links added to my directory:

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 4');
$sth = $search_db->select ( { isNew => 'Yes'});
while ($link = $sth->fetchrow_hashref) {
$output .= Links::SiteHTML::display ('link1', $link);
}
return $output;
}

is there a way to limit the number of characters being displayed to an x number for each link?
Sort of the sam in yahoo subcategory mod
Some titles are so long and take over 2 lines and the page will look ugly


Regards
KaTaBd

Users plug In - Multi Search And Remote Search plug in - WebRing plug in - Muslims Directory
Subject Author Views Date
Thread newest links added question katabd 1340 Nov 23, 2001, 6:52 PM
Thread Re: [katabd] newest links added question
Paul 1304 Nov 24, 2001, 3:53 AM
Thread Re: [PaulW] newest links added question
katabd 1333 Nov 24, 2001, 4:59 AM
Thread Re: [katabd] newest links added question
BryanL 1277 Nov 25, 2001, 3:35 PM
Thread Re: [BryanL] newest links added question
Paul 1277 Nov 25, 2001, 6:00 PM
Post Re: [PaulW] newest links added question
BryanL 1267 Nov 25, 2001, 8:02 PM