(07-25-2013 08:37 PM)Anil Gidwani Wrote: Otherwise, the plug in will require extensive modifications by each user of the plugin.
I think this will be required anyway since you don't exactly know what fields a user has.
You probably should be using the CSV header for determining field names, as there's no guarantee what order you'll receive the fields from both the CSV or the database.
But if you're still adamant on your solution, you can read the threadfields cache (see the MyBB cache object) for a list of thread fields. Note that this contains all thread fields across all forums.