Home : Products : Gossamer Forum : Development, Plugins and Globals :

Products: Gossamer Forum: Development, Plugins and Globals: Re: [bgkhoo] Scripts for last 10 posting: Edit Log

Here is the list of edits for this post
Re: [bgkhoo] Scripts for last 10 posting
use strict;
use GForum qw/$DB/;

my @posts;
my $db = $DB->table('Post');

$db->select_options("ORDER BY post_time DESC", "LIMIT 10");

my $sth = $db->select('post_id', 'post_subject');

while (my ($tags) = $sth->fetchrow_hashref) {
push @posts, qq|<a href="gforum.cgi?post=| . $tags->{post_id} . qq|;sb=post_latest_reply;so=ASC;forum_view=forum_view_collapsed;">| . $tags->{post_subject} . qq|</a>|;

return join '<br>', @posts;

I'm not in the mood to test it but hope it puts you on the right track.

Last edited by:

PaulW: Dec 3, 2001, 8:18 AM

Edit Log: