Mass creation of topics (at once)

Discussion forum for MOD Writers regarding MOD Development.
Registered User
Posts: 1
Joined: Thu Aug 19, 2010 7:58 pm

Mass creation of topics (at once)

Post by veriberto »

Is it possible to create a large number of topics at once?

For example, if I have a list of 100 topic titles which I want to be opened, how can I do this without having to create them all separately?

Thanks for any help or advice!
User avatar
Former Team Member
Posts: 2082
Joined: Thu Jan 22, 2009 3:59 am
Location: Sacramento, CA
Name: Sam Thompson

Re: Mass creation of topics (at once)

Post by Sam »

Moved to MOD Writers.

Some people (Mod writers) use scripts to do such things for testing, perhaps they would be willing to share.
Registered User
Posts: 1032
Joined: Fri May 08, 2009 9:42 am
Location: Kingdom of Bahrain
Name: Ather Akber

Re: Mass creation of topics (at once)

Post by Ather »

i'll 2nd this, could be handy alot of times
CPL Syed Ather Akbar
Regional Command Southwest
Camp Leatherneck, Afghanistan

My Mods/Snippets
User avatar
Posts: 515
Joined: Tue Mar 27, 2007 11:58 am
Location: Poznan, Poland
Name: Darek

Re: Mass creation of topics (at once)

Post by daroPL »

You can write a script that uses the method $db->sql_multi_insert().
User avatar
Erik Frèrejean
Former Team Member
Posts: 9899
Joined: Tue Oct 09, 2007 9:09 am
Location: The Netherlands, 3.0.x Support Forum
Name: Erik Frèrejean

Re: Mass creation of topics (at once)

Post by Erik Frèrejean »

Have a look at the fill script that is included in the develop folder of phpBB development releases. IIRC there are some issues with it, but you can give it a go on a local testing environment. Do not use this script on a live server.
Support Toolkit | Support Request Template | Knowledge Base | phpBB 3.0.x documentation
I don't give support via PM or IM! (all unsolicited pms will be trashed!)

Return to “[3.0.x] MOD Writers Discussion”