Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+22 votes
in Plugins by
edited by

There are many reasons to create content programmatically. One of them could be having a new site with a small amount of users. In this case, site owners need to ask and answer their own questions in order to generate content. This process can be bothersome and slow using a web interface.

This is a very common situation most communities face when they are starting from scratch. Bulk Content Generator is a plugin that eases the process of creating content on sites. In short, it allows users to import a spreadsheet that contains questions, answers or comments and turn them into real posts in the site. It is also possible to configure the creation date of the posts (so that they don't look like they were created all in the same day) as well as the user who created them, among many other things.

Plugin features include:

  • Create questions, answers and comments taken from a file
  • All posts can be set an author or be anonymous
  • Questions can be set a category, tags and the Q2A extra value, if configured in the site
  • Answers can be selected
  • Ability to disable notifications on the created posts (to avoid any future email)
  • Ability to disable notifications while creating the posts (to avoid emails only while creating the posts)
  • All posts can be set a particular creation date in the past or it can even be generated randomly
  • Work is split into batches and progress is updated after processing each batch
  • Administrators can select what user levels can perform imports

If you are interested in reading more about the plugin you can check the plugin page. There, you'll find some additional features, screenshots and how to order it. You can also find a plugin demo here.

@pupi1985, do you see any issue with this plugin if Option1:  db setup is used for multiple site and then this plugin is used for content upload?

The plugin should work fine. Each site will have its own posts table. Each site will share the same users table. Each site will not even know of the existence of other sites so the plugin itself won't know that either.
@pupi1985, Ok, thanks!
Installed pupi and not showing up at all. any particular url to access bcg?

4 Answers

+2 votes
I liked this plugin very much! almost all required features are there in this plugin. Great work, keep it up!

> Upgrade system support: The plugin will be able to properly upgrade from previous versions

what does this mean?

Does this plugin add any entry related to this plugin in database?
Thank you. That is mostly focused on DDL changes required when upgrading. There are some plugins that require creating tables and new versions of those plugins might need to add/remove/modify existing fields or tables. All plugins I write handle versioning of the database (in a similar way as how the core does) so any new versions will detect the old database version and upgrade the database, without the need to ask the user to go to PHPMyAdmin and run some queries.

In this particular case, the plugin does not create any table or perform any DDL change to the existing tables. So it could be useless to say so but the end user does not know this so in order to avoid any questions about support for future releases I tried to make it clear that future versions handle the upgrade on their own. Probably, I should rephrase that :)
Thank you for the details. Good to know it is not adding any additional tables or making changes in db.

btw, any discount for earlybirds :)
You are genius  man @pupi
+1 vote
edited by

Good plugin - I liked this plugin very much! 

0 votes
Hi pupi. Id like to know if this plugin is working with q2a latest version and if it

1. creates new users or can be added to random users (without choose one by one)

2. populates only the posts table


 0. Yes, the plugin works with the following Q2A versions (as explained in the wiki): 1.7.*, 1.8.*
 1. This is explained in the wiki. In short, the plugin does not create new (fake) users. Assigning posts to random users seems to be odd because non-fake users would get posts created out of the blue. The safest approach would be to post anonymously. Regarding user creation, there is another plugin that can be used for that. You could create the users with that plugin and then assign them manually to the import file. I'm open to suggestion to this item.

 2. It creates whatever is needed to create a post. For example, if tags are needed, they are created, if new words are added, they are created, etc.
0 votes
Can I have an example of a file to import? Here https://bitbucket.org/pupi1985/q2a-bulk-content-generator-public/wiki/Home is not very clear. And yet, as I understand it, he does not create users, they must be already in advance. And also what about the graphics?
* Regarding the sample file: please, read the wiki carefully. In there, you can see I do provide a link to one
 * Regarding user creation: the plugin does not create users. If you want to create users, you can use a plugin to create users, such as this one: https://github.com/thisliquidspace/q2a-user-import
 * Regarding image creation: the plugin does not create images. The plugin expects ALL post content to be generated by you beforehand. In other words, the plugin expects the HTML to have <img> tags linking to images that you have previously created (either in Q2A or anywhere, anyhow on the Internet)