mad-manne wrote: One other thing I started thinking about is related to the integrity of the data. This gets interesting when a template of RAF gets edited, and you already have posts based on that template. Here's a couple of things to look at, and I am interested in your thoughts(if any) without telling you about my concrete thoughts. This way yours won't be contaminated by mine
Well based on the situation, data intergty should not be too hard if you change RAF since someones last post. Just have to use a very good comparsion function.
You could create a comparison function that every single times a user post a new topic it checks to see if the last RAF stored for him is the same, (for the particular forum), or not, if its not the same, it could break it down to the raw array minus the orginal users stored input, and compare the arrays. Then if it is different it populates the new array with what ever exisiting data matchs, and still displays for him to add the new information in to it.
Or instead of it doing this at each post, you could add a resync function in to the admin to resync the new RAF's with the old one. And append the old data with the new one, and have it set to where if the new RAF's is not completely filled out. It promts the user to enter the rest of the required information
You'd prolly have to use another table, as kinda a backup of the last one to compare the new one too.
Now all this comparsion is very dependent on weather or not the RAF's field_ids are static, or not that way it has something to compare it to.
I hope I explained it in a way that is understandable. I can program something, but I'm just not good at explaing how to do it even though I got it in my head.
Anotherway is to discard the old RAF totally and just have the user input all the Required Fields again as a one time thing, till the admin decides to change it again. <- this I think would be the easyiest way.
So we got
- 1. Comparison functions, comparing new RAF, with old, and populating new with old RAF's data (would only work on static names tho.) THen it would ask the user, on thier next post to finish filling the new fields out
- 2. Or Dump the old RAF' completly and have the user fill out the new one totally