sbj
Well-known member
Hello,
I have over 7k data in total I want to insert as Custom Thread Field Choices. Sadly, we can't just copy paste it, we have to enter every single choice manually. Talking about this:
Now I went to the database using phpmyadmin trying to find the choices. The column "field_choices" have the data.
When you edit that one Custom Thread Field, you can upload a BLOB with the choices in it:
This is the content of that file:
I manually inserted the choices b, c, d, e and f. The choice "a" was made in ACP, as all fields require at least 1 choice (and later I added "g").
Now so far so good. Going back to ACP it looks like this:
It seems uploading the editted BLOB file actually made it possible to upload choices.
Now the problem is, when we go back to the forum and want to test the choices, it looks like this:
I already run any cron which has to do with threads and also rebuilt all caches.
What did I miss here? What did I do wrong?
So, my question is, is there a way without writing an addon/php script to actually insert hundreds of choices?
If yes, can you explain?
If no, why not (as I am curious to know).
Thank you.
I have over 7k data in total I want to insert as Custom Thread Field Choices. Sadly, we can't just copy paste it, we have to enter every single choice manually. Talking about this:
Now I went to the database using phpmyadmin trying to find the choices. The column "field_choices" have the data.
When you edit that one Custom Thread Field, you can upload a BLOB with the choices in it:
This is the content of that file:
Code:
{"a":"aa","b":"bb","c":"cc","d":"dd","e":"ee","f":"ff"}
I manually inserted the choices b, c, d, e and f. The choice "a" was made in ACP, as all fields require at least 1 choice (and later I added "g").
Now so far so good. Going back to ACP it looks like this:
It seems uploading the editted BLOB file actually made it possible to upload choices.
Now the problem is, when we go back to the forum and want to test the choices, it looks like this:
I already run any cron which has to do with threads and also rebuilt all caches.
What did I miss here? What did I do wrong?
So, my question is, is there a way without writing an addon/php script to actually insert hundreds of choices?
If yes, can you explain?
If no, why not (as I am curious to know).
Thank you.