Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

Re: [Sutekh] Forum creation via script or command

Quote Reply
Re: [Sutekh] Forum creation via script or command In reply to
A command line script to do this is fairly simple; basically:

perl -I/path/to/admin -e 'use GForum qw/$DB/; GForum::init("/path/to/admin"); my $i = $DB->table("Forum")->add({ forum_name => "Forum Name", cat_id_fk => 24 })'

That will use the defaults for everything other than forum name - take a look at the other columns in the gforum_Forum table to see other values you can pass in. Note that you'll have to specify the bits in red - the forum name, and the category in which to create the forum.

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Subject Author Views Date
Thread Forum creation via script or command Sutekh 2787 Feb 7, 2003, 3:42 PM
Post Re: [Sutekh] Forum creation via script or command
Teambldr 2713 Feb 7, 2003, 4:11 PM
Thread Re: [Sutekh] Forum creation via script or command
Jagerman 2699 Feb 7, 2003, 8:24 PM
Thread Re: [Jagerman] Forum creation via script or command
shiner 2690 Feb 7, 2003, 11:56 PM
Post Re: [shiner] Forum creation via script or command
regert 2643 Feb 16, 2003, 2:16 AM