Gossamer Forum
Quote Reply
AutoPosts
Hey,

Is there a way to automatically generate new posts? For example, if I already have a shopping cart application, is it possible to automatically generate a discussion thread for each item on sale, kind of like a user review system. Of course I would have to hack my cart to tell gossamer forum to post a new topic for each item but I'm just wondering if there's already existing hooks for me to interface to.

Thanks.
--
Christianity.com Forums
Quote Reply
Re: [joet] AutoPosts In reply to
Hi,

It would take a little knowledge of perl to do so, but it's pretty straightforward. You could add something like:

use lib '/path/to/gossamer/forum/admin';
use GForum qw/$DB/;
GForum::init('/path/to/gossamer/forum/admin');
$DB->table('Post')->insert( {
post_subject => 'a test post!',
...
});

and that would do it. If your not comfortable with the programming required, you could contact us or post a message in the custom jobs section of the forum.

Cheers,

Alex
--
Gossamer Threads Inc.