Bulk loading threads with thread fields
Anil Gidwani Offline
Junior Member
**
Posts: 3
Joined: Jul 2013
Post: #3
RE: Bulk loading threads with thread fields
> $mybb->input['xthreads_myfield'] = 'value'; // sets value for the custom thread field named "myfield"

Is there any way I can loop through all xthreads_myfields and set the value in this array? In other words, can I use xthreads metadata to set up a generic loop to set values for each custom thread field?  Something like

for (i=0 ; i<= xthreads_numfields; i++)
    $mybb->input[xthreads_myfield[i]] = 'value_read_from_csv_file [i]'
  
Otherwise, the plug in will require extensive modifications by each user of the plugin.
07-25-2013 08:37 PM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
RE: Bulk loading threads with thread fields - Anil Gidwani - 07-25-2013 08:37 PM

 Standard Tools
Forum Jump: