Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

Enhancing Gossamer Forum

Quote Reply
Enhancing Gossamer Forum
I was browsing throught the help file that comes with GForum, because I am trying to find out what I can do with the forum.

I am impressed with the Plugin system (though I have to figure it out first, i.e. I still have to write my first test plugin).

When I tried to do the example of how to include some code as a global variable, I noticed that the code provided should be (changes in red):

sub {
my $tags = shift;
my $post_db = $DB->table ('Post');
$post_db->select_options ('ORDER BY post_replies DESC', 'LIMIT 5');
my $sth = $post_db->select;
my @output;
while (my $post = $sth->fetchrow_hashref) {
push @output, $post;
return { post_loop => \@output };
I am really looking forward to exploring the possibilities!

Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [yogi] Enhancing Gossamer Forum In reply to

Thanks for the correction, we'll be sure to update it!

I'd be interested on where you run into problems, how we can make things easier, etc.

Once you get your head around the templates, and the globals syntax, it is _really_ easy to pull any sort of information out of the database.


Gossamer Threads Inc.