Attached to this post is an updated conditions plugin. A few changes:
- includes an installer file that will include the column conditionid if it doesnt exist in fields and field_values.
- modified the .xml and remove the uninstall queries (good idea if it's for upgrading)
- modified conditions.php so it works during registration without the need for hacking.
One problem about the plugin is that whenever the admin re-saves a cb field, all conditions in that field disappears. This can be pretty inconvenient in the case of a dropdown list, with different values appearing for different selection made in another dropdown list. The user will have to re-enter every conditionid in field_values all over again.
I managed to get around this with alot of CB core files hacks, but it'll be great if the changes are made in the next CB release. Basically what's causing this is whenever the admin re-saves a field, CB will totally remove the existing field, and then create a new one. Probably a better idea if a row update is done.
Regards, Mike
Attachment conditions-ff1272b73ac58f3580626875e3fcd9d1.zip not found
Post edited by: p9939068, at: 2007/02/06 06:33